Date created: 09/07/18 09:36:37. Last modified: 01/10/19 16:23:31

--Python Notes--

Style Guides:

https://google.github.io/styleguide/pyguide.html

https://github.com/google/styleguide/blob/gh-pages/pyguide.md

 

Linting:

https://black.readthedocs.io/en/stable/

 

venv:

$ sudo apt-get install virtualenv

$ virtualenv -p `which python3` v1

$ cd v1/

$ source bin/activate

...

$ deactivate

 

Testing a specific branch in a venv:

$ mkdir napalm-text

$ git clone -b confirm_username_fix https://github.com/napalm-automation/napalm.git ./napalm-text/

$ cd napalm-text/

$ virtualenv -p `which python3` ./

$ source bin/activate

$ sudo -H pip3 install ./

...

$ deactivate

$ cd ../

$ rm -rf napalm-text/

 

 


Previous page: Problem 20
Next page: Basic Netmiko Example