|resources:||Home Installation Downloads Samples Tutorials Source Code Members Mailing List Bugs|
Provides a shell like window that enables you to interact with the PyXPCOM Python interpreter and perform Python instructions. It provides tab completions through object inspection and has the ability to interact with the application through XPCOM. Check out the source.
PyShell in action, saying a hello from Python through the XPCOM nsIPromptService. The code for this:
promptSvc = components.classes["@mozilla.org/embedcomp/prompt-service;1"].\ getService(Components.interfaces.nsIPromptService) promptSvc.alert(None, 'Greeting...', "Hello from Python")
Adds SFTP (Secure FTP) and SSH (Secure Shell) protocols to Mozilla based applications. For example, after installing this extension you can type in a SFTP url into the Firefox url textbox and it will connect using the SFTP protocol and display directory contents and allow you to view and download files. Further to this, the extension also provides the ability to run remote commands over SSH. Check out the source, including the tests directory which shows off the example usage of the protocol.
The SSH Console extension, is a great companion to this extension and will enable you to start remote SSH console sessions.
This shows off how you can use a Python UDP socket to communicate (send and receive) with a remote host. Check out the code.
After installing this extension in Firefox, type in the following url to access the python/xul test page, then use the "Run Tests" button to run all of the tests.