Python for Network & Systems Engineering
This is a course for network engineers and systems engineers who are interested in learning Python for network automation, security, testing, and SDN.
Some familiarity with programming concepts (in any language) is assumed.
By the end of the course, you will have all the knowledge you need to write and interact with Python code for a variety of purposes, with a particular focus on string manipulation and interacting with APIs. You will understand the elegance and power of Python and have had experience using several important modules in the Python standard library, including for regular expression matching, working with IP addresses, and interacting with log files. You will also have learned about consuming and creating web APIs and learned about some best practices in Python for testing, debugging, and maintainability.
Day 1: Python basics
Day 1 covers how to use Python for general programming tasks, including tips and tricks for making this easy.
Why use Python? What’s possible? Python versus other languages …
Setting up your Python development environment (IDE, Jupyter notebook)
Python syntax and concepts: an introduction through examples
Functions and their arguments
Essential data types, tips and tricks: strings, tuples, lists
String methods; input and output of text data (including CSV files)
Dictionaries and their applications
Worked example: consuming web APIs
Day 2: Further Python essentials
Day 2 introduces further important concepts and tools for making the most of Python.
Further important data types: sets and collections
Classes and objects
Modules and packages
Raising and handling exceptions
Tour of the amazing standard library:
Parsing log files with regular expressions
Handling dates and times
Working with IP addresses, file paths, command-line script arguments
Cryptographic hashing of file contents (SHA256, SHA1, MD5, ...)
Compressing and uncompressing data
Day 3: Real-world programming in Python
Day 3 introduces how to create web APIs and the basics of creating web interfaces using Python. It also shows some “best practices” of software development using Python.
Review of consuming web APIs with the requests package
Creating web APIs with Flask
Templating with Jinja2; creating web-based reporting interfaces
Network automation via SSH with Fabric
Python developer tools and debugging tools
Best practices; tips and tricks
We will supply you with printed course notes and a USB stick containing a complete Python environment based on VirtualBox. This saves time in the course and allows us to focus on using Python rather than installing it.
The USB stick also contains kitchen-sink Python installers for multiple platforms, solutions to the programming exercises, several written tutorials, and reference documentation on Python and the third-party packages covered in the course.
- Personal help:
- Your trainer(s) will be available after the course each day for you to ask any one-on-one questions you like — whether about the course material and exercises or about specific problems you face in your work and how to use Python to solve them.
- Food and drink:
- We will provide lunch, morning and afternoon tea, and drinks.
- The course will run from 9:00 to roughly 17:00 each day, with a breaks of an hour for lunch and 15 minutes each for morning and afternoon tea.
Please contact us to register your interest.