Functions and Modules — Building Reusable Network Helpers
Day 6 of the Python for Network Engineers series. Define functions, use *args/**kwargs the way Netmiko expects, write your first reusable module, and learn the __name__ == '__main__' guard.
Day 6 of the Python for Network Engineers series. Define functions, use *args/**kwargs the way Netmiko expects, write your first reusable module, and learn the __name__ == '__main__' guard.
Day 5 of the Python for Network Engineers series. if/elif/else, for, while, break, continue, plus enumerate/zip/range — wired against a real device inventory.
Day 4 of the Python for Network Engineers series. The four built-in containers — list, tuple, dict, set — and which one to reach for when modeling devices, inventories, VLAN lists, and config drift.
Day 3 of the Python for Network Engineers series. Indexing, slicing, split/strip/replace/join, and f-string formatting — the small set of built-in string operations that handles most CLI-output parsing.
Day 2 of the Python for Network Engineers series. Variables, types, indentation, the colon, truthiness, and the handful of syntactic rules that account for 90 percent of beginner mistakes.
Day 1 of a 21-post daily series. Why Python beats Bash and Tcl for network work, how to install it cleanly with a virtualenv, choose an editor, and pick a lab you can break.