From: Rasjid W. <ra...@op...> - 2002-09-06 14:04:04
|
Hello all, Due to other commitments (mainly maintaining Webware, also on Sourceforge), Chuck has passed over maintenance of PySSH to myself. I have basically completed version PySSH 0.2. The library has been completely re-written from the ground up, and addresses some of the problems with the initial version. In particular, it no longer uses time.sleep, but instead create 'non-blocking' pipe objects to allow more controlled reading of the banner and any password prompts. Its other two main new features are: * Alpha support for MS Windows using plink.exe (part of the Putty suite). * Support for using SSH from within a Python GUI interface (such as wxWindows or Tinker) through the use of a callback function when user interaction is required. Fully automated operation is supported either via standard SSH key-agent or identity files, or by defining the callback to work in a non-interactive way (ie, when asked for a password, send <somepassword>, and if that doesn't work, abort). There are a number of features that were in the 0.1 version that I have not done yet. In particular, there is no documentation and no setup.py routine. For the moment, read the code for doco (and look at the detailed test() function), and install it manually. The main code no longer uses fork, but a new popen2 like function I have put into a modified version of pty.py. As a result, the main code should be able to be followed easily. This is also the change that allows MS Windows support. As a result, the API is quite different. If you want some of the original features, let me know, and I'll see what I can do. I'm still learning about putting up files on Sourceforge etc, so there is no official release yet. However, you can get PySSH 0.2 from http://www.openminddev.net/files/pyssh-0.2.zip with a little more info from http://www.openminddev.net/twiki/bin/view/Main/PythonPage I have never release public code before, so please let me know if I have messed up the packaging etc. It is just a plain zip file, so should be easy enough to extract under both Windows and Linux etc. *** Any feedback would be greatly appreciated. *** Rasjid. |