Metadata-Version: 1.1
Name: cannon
Version: 0.0.18
Summary: cannon
Home-page: http://github.com/mpenning/cannon
Author: David Michael Pennington
Author-email: mike@pennington.net
License: GPL
Description: Introduction
        ============
        
        cannon is a wrapper around pexpect_ to connect with remote server or network 
        devices with ssh.
        
        Example Usage
        =============
        
        .. code:: python
        
            from cannon import Shell, Account
        
            sess = Shell(
                host='route-views.oregon-ix.net',
                credentials=(
                    Account(user='rviews', passwd=''),
                ),
        
                log_screen=False,
                log_file="~/mylog.txt",
                auto_priv_mode=False,
                debug=False,
                )
        
            sess.execute('term len 0')
            sess.sync_prompt() # Manually sync prompts... sometimes this is reqd
        
            # template is a TextFSM template
            values = sess.execute('show ip int brief',
                template="""Value INTF (\S+)\nValue IPADDR (\S+)\nValue STATUS (up|down|administratively down)\nValue PROTO (up|down)\n\nStart\n  ^${INTF}\s+${IPADDR}\s+\w+\s+\w+\s+${STATUS}\s+${PROTO} -> Record""")
            print("VALUES "+str(values))
            sess.close()
        
        .. _pexpect: https://pypi.python.org/pypi/pexpect
        
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Plugins
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
