Abstract transport to connect to remote servers with performance in mind
sudo apt-get install make
python setup.py installInstall the dependencies.
pip install .[ssh2,paramiko]Run one of the examples in the examples folder.
env PYTHONPATH=$PYTHONPATH:$(pwd) examples/telnet_ls_shell.pyConfiguring Telnet connection Hostname: localhost Port: 23 Username: user Password: Creating Telnet connection object Connecting Sending 'ls' Receiving output bin dev home lib64 mnt proc run srv tmp var boot etc lib media opt root sbin sys usr Disconnecting Done
Install tests requirements.
sudo apt-get install make
pip install -r requirements/dev.txtRun Nose and Flake 8.
nosetests
flake8 *.py harbinger docsIf you are running Python 3.6+, install and execute Black.
pip install blackblack --exclude harbinger/execeptions.py --diff --check -l 79 *.py harbinger docsThe documentation is available on ReadTheDocs: https://harbinger.readthedocs.io/en/latest/
Install Sphinx requirements.
sudo apt-get install make
pip install sphinxRun Sphinx.
make -C docs htmlThe resulting HTML pages are available in docs/build/html.
