Parsing JSON and XML data with Python
How to parse, read and write JSON and XML in Python with the standard library: json.loads, json.dump, ElementTree find/findall, plus real network-device examples and mistakes to avoid.
How to parse, read and write JSON and XML in Python with the standard library: json.loads, json.dump, ElementTree find/findall, plus real network-device examples and mistakes to avoid.
How REST APIs work on network devices and controllers, with Python requests examples for reading, updating and authenticating safely.
What an API is, why network engineers need them, and how to make your first REST and RESTCONF calls from Python without screen-scraping the CLI.
Step-by-step guide to configuring routers and switches with Python using Netmiko send_config_set, NAPALM candidate configs with diffs, and Jinja2 templates.
How to extract interface status, counters, IP and MAC addresses from Cisco show command output using Python regular expressions, with runnable examples and pitfalls.
A hands-on comparison of Paramiko and Netmiko for connecting to network devices over SSH and Telnet, with runnable Python examples and troubleshooting tips.
Learn how to automate routers and switches with Python across configuration, monitoring, testing and visualisation using Netmiko, NAPALM, Nornir and Scapy.