Re: Whither paramiko?

2012-04-19 Thread Richard Shea
On Apr 16, 1:42 am, Bryan bryanjugglercryptograp...@yahoo.com wrote:
 Paramiko is a Python library for SSH (Secure Shell). Over about the
 last year, I've grown dependent upon it. Its home page is still easy
 to search up, but the links to its mailing list and repository don't
 work.

 Paramiko depends on PyCrypto, and not so long ago that dependency was
 the stated reason why paramiko did not yet play with Python 3. Even
 more recently, PyCrypto has gone green on the Python 3 Wall of Shame.

 Anyone know recent news on the status of paramiko?

You may have already tried this but on the web page ( 
http://www.lag.net/jaramiko/
)for Jaramiko, the Java port of Paramiko, there's an email address for
the author - maybe you could try that ? The email address quoted is :
robey at lag.net .

What's a bit odd is that, as you mentioned, the repository is
mentioned as being at : http://github.com/robey/paramiko/ but comes up
404. However the user robey (robeypointer at gmail.com) is still on
GitHub (and has been there since 2008) but there's no mention of
anything related to Paramiko on his page.

If you do find anything maybe you could update this thread as I'm just
about to start using the library and I'd like to know a little more
about where it might be going in future.

regards

Richard.



-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Whither paramiko?

2012-04-19 Thread Richard Shea
On Apr 19, 8:28 pm, Richard Shea shearich...@gmail.com wrote:
 On Apr 16, 1:42 am, Bryan bryanjugglercryptograp...@yahoo.com wrote: 
 Paramiko is a Python library for SSH (Secure Shell). Over about the
  last year, I've grown dependent upon it. Its home page is still easy
  to search up, but the links to its mailing list and repository don't
  work.

  Paramiko depends on PyCrypto, and not so long ago that dependency was
  the stated reason why paramiko did not yet play with Python 3. Even
  more recently, PyCrypto has gone green on the Python 3 Wall of Shame.

  Anyone know recent news on the status of paramiko?

 You may have already tried this but on the web page 
 (http://www.lag.net/jaramiko/
 )for Jaramiko, the Java port of Paramiko, there's an email address for
 the author - maybe you could try that ? The email address quoted is :
 robey at lag.net .

 What's a bit odd is that, as you mentioned, the repository is
 mentioned as being at :http://github.com/robey/paramiko/but comes up
 404. However the user robey (robeypointer at gmail.com) is still on
 GitHub (and has been there since 2008) but there's no mention of
 anything related to Paramiko on his page.

 If you do find anything maybe you could update this thread as I'm just
 about to start using the library and I'd like to know a little more
 about where it might be going in future.

 regards

 Richard.

Just another data point . I've just taken a look at the bundled
documention of the 1.7.7.1 release and in there the robeypointer @
gmail.com is cited as being the contact point for the developer .

regards

Richard.


-- 
http://mail.python.org/mailman/listinfo/python-list


Suggest design to accomodate non-unix platforms ?

2012-04-18 Thread Richard Shea
On a *nix box this is a reasonable bit of Python :

cmd = ssh -o StrictHostKeyChecking=no -i %s %s@%s '%s'  %s % (key,
user, dns, echo CONNECTION READY, tmp_file)
result = os.system(cmd)

... on a Windows box it will fail because 'ssh' isn't part of Windows.

There *are* ways of achieving the equivalent functionality in Windows,
eg

putty.exe -ssh user@host

... and that's only one of them.

So I'm interested in suggestions/examples where a user can update a
config file to specify by which means they want (in this case) the ssh
functionality to be supplied.

I'm thinking of something in a config file like this ...

ssh_dropin = {exec: 'putty.exe -ssh %s@%s', args:['auser','somehost']}

... which I think would work and be sufficiently flexible to deal with
alternatives to putty.exe but is there a more established (...
better !) way of doing this stuff ?

Thanks

Richard.



-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Suggest design to accomodate non-unix platforms ?

2012-04-18 Thread Richard Shea
On Apr 19, 1:56 am, Irmen de Jong irmen.nos...@xs4all.nl wrote:
 On 18-4-2012 15:35, Richard Shea wrote:

  ... which I think would work and be sufficiently flexible to deal with
  alternatives to putty.exe but is there a more established (...
  better !) way of doing this stuff ?

 Perhaps install Cygwin and use its ssh.exe?
 Or use the paramiko library? (which, I believe, implements SSH directly)

 Irmen

OK I didn't know about Paramiko, that looks good - I will investigate.
I didn't want to go to as far as Cygwin because it's a bit much to
make that a requirement when installing a library.

More generally though I'd be interested to see patterns which would
allow a plugin alternative to be used for a system utility on which a
library is dependent.

I've realised that my example isn't much good because the values in
the args list would in fact have to equate to the variables already in
place within the relevant function - it's pretty late where I am so I
probably shouldn't be trying to think up new ideas but I'd be
interested to hear from others about how they might do this.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Suggest design to accomodate non-unix platforms ?

2012-04-18 Thread Richard Shea
On Apr 19, 2:28 am, tinn...@isbd.co.uk wrote:
 Richard Shea shearich...@gmail.com wrote:
  On a *nix box this is a reasonable bit of Python :

  cmd = ssh -o StrictHostKeyChecking=no -i %s %s@%s '%s'  %s % (key,
  user, dns, echo CONNECTION READY, tmp_file)
  result = os.system(cmd)

  ... on a Windows box it will fail because 'ssh' isn't part of Windows.

 ssh isn't guaranteed to be part of Unix/Linux systems surely.

 --
 Chris Green

Ha ! Ok I didn't know that (or more to the point hadn't really thought
about it). But anyway my more general point was looking for a design
pattern which would accommodate the use of system utilities across
multiple platforms which has sufficiently similar functionality that
they were functionally identical but which would have to be invoked in
different ways
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: understanding a program project

2012-01-14 Thread Richard Shea
On Jan 14, 9:29 am, Tracubik affdfsdfds...@b.com wrote:
 Hi all,
 i hope not to be too much OT with this request.
 I'ld like to modify/contribute some open source in python, but first i've
 to read and understand the code.
 So, is there some guide lines / procedure to follow to help me in this
 process.
 I remember at school time there was some schema or something to create to
 display the interaction of different functions / modules

 My idea was to create a model with all the methods and arrows to link
 they...

 any link of post explaining some learning procedure or programs
 schema would be really appreciated

I don't know of a general answer to your question. I've seen tools
such as you're describing but they tend to be languages other than
Python (eg Java or C#).

There are tools such as :

 * Sphinx
 * EpyDoc
 * pycco

all of which will produce friendly documentation automatically but the
quality of the doco is dependent somewhat upon the amount and nature
of comments originally put into the code.

I don't think that's much help but I hope it may be some.

regards

Richard.


-- 
http://mail.python.org/mailman/listinfo/python-list


Interpreting Surface Weather Stations reports (FM 12–XIV SYNOP)

2012-01-13 Thread Richard Shea
Does anyone have some code which interprets Surface Weather Stations
reports (formally termed 'FM 12–XIV SYNOP' reports) ? I've tried the
cheese shop but no joy.

I've seen PyMetar (http://schwarzvogel.de/software-pymetar.shtml) but
I don't believe it covers this format.

I can't believe I'm the first person who wished to parse these reports
so I'm hoping there's someone out there who's willing to share.

I've been referred to 
http://www.wmo.int/pages/prog/www/WMOCodes/Manual/Volume-I-selection/Sel2.pdf
as an explanation of their structure but I would prefer not to delve
into that if I could avoid it.



-- 
http://mail.python.org/mailman/listinfo/python-list


wxPython/IEHtmlWindow documentation (what events are available ?)

2005-02-27 Thread Richard Shea
Hi - I've got a script which is making use of ...

import  wx.lib.iewinas  iewin

... and so ...

self.ie = iewin.IEHtmlWindow(self, -1, style =
wx.NO_FULL_REPAINT_ON_RESIZE)

... but I can't find any documentation about what a IEHtmlWindow
object might do - in particular what I might do with the events.

I have some sample code and I've taken a look at iewin.py but what I
would like to know is when the various events are going to fire ?
'DOCUMENTCOMPLETE' seems fairly self-explanatory but others such as
'BEFORENAVIGATE2' and 'STATUSTEXTCHANGE' are less guessable.

I've looked at (what I think is) the MS documentation but I cannot
find references to any of these events - can anyone point me
information please ?

Thanks

Richard.
-- 
http://mail.python.org/mailman/listinfo/python-list


setup.py - just what is it for ?

2004-12-17 Thread Richard Shea
Hi - This is probably quite a stupid question but I've never
understood what setup.py does. I've got a situation at the moment
where I would like to use a script (which someone else has written and
made available) to do CGI on a shared webserver to which I do not have
shell access.

The install instructions say run python setup.py but as far as I'm
aware I cannot do that.

There is only one script involved (except for the setup.py !) and so
I'm probably just going to copy it into my cgi-bin and give it a go
but I'd like to know for future reference just how bad could it be if
I did this ? Are there circumstances where you must use setup.py to
have any hope of the code working ?

BTW here is the setup.py in question ...

from distutils.core import setup

classifiers = \
Development Status :: 5 - Production/Stable
Environment :: Web Environment
Intended Audience :: Developers
License :: OSI Approved :: GNU General Public License (GPL)
Operating System :: OS Independent
Topic :: Internet :: WWW/HTTP
Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI
Tools/Libraries

import sys
if sys.version_info  (2, 3):
_setup = setup
def setup(**kwargs):
if kwargs.has_key(classifiers):
del kwargs[classifiers]
_setup(**kwargs)

setup(name=cgi_app,py_modules=[cgi_app],
version=1.3,
maintainer=Anders Pearson,
maintainer_email=[EMAIL PROTECTED],
url = http://thraxil.org/code/cgi_app/;,
license = http://www.gnu.org/licenses/gpl.html;,
platforms = [any],
description = CGI and mod_python MVC application framework,
long_description = framework for building MVC CGI and
mod_python
applications. based on the perl CGI::Application module but
more
pythonic.,
classifiers = filter(None, classifiers.split(\n)))


... I would appreciate any information about this (or any tips on how
to deal with no shell access).

thanks

richard
-- 
http://mail.python.org/mailman/listinfo/python-list