napalm==2.4.0
ncclient==0.6.3
netmiko==2.3.3
pyang==1.7.5
pyats==19.0
PyYAML==5.1
requests==2.21.0
urllib3==1.24.1
virlutils==0.8.4
xmltodict==0.12.0
If you are building your own code and want to save the
current modules configured in your virtual environment,
you can use the freeze command and have it
automatically populate the requirements.txt file:
Click here to view code image
pip freeze > requirements.txt
UNDERSTANDING PYTHON SYNTAX
The word syntax is often used to describe structure in a
language, and in the case of programming syntax, is used
in much the same way. Some programming languages
are very strict about how you code, which can make it
challenging to get something written. While Python is a
looser language than some, it does have rules that should
be followed to keep your code not only readable but
functional. Keep in mind that Python was built as a
language to enhance code readability and named after
Monty Python (the British comedy troop) because the
original architects of Python wanted to keep it fun and
uncluttered. Python is best understood through its core
philosophy (The Zen of Python):
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Readability counts.