Monthly Archive: August 2020

PIP

how to use pip : pip install “package” pip install –upgrade “package” pip install “package”==”version” pip list pip uninstall “package”

Complex Data Structure

When dealing with very large output data structure , and need to extract data from it : Example : Devices = { ‘sw1’: { ‘ip_addr’: ‘10.10.10.1’, ‘username’: ‘admin’, ‘password’: ‘cisco’, ‘bgp_peer’: ‘10.10.20.1’, ‘10.10.30.1’, ‘10.10.40.1’}, ‘sw2’: { ‘ip_addr’: ‘10.10.10.2’, ‘username’: ‘admin’,…
Read more

YAML Basics

Example of a YAML file : List : — – 10.10.10.1 – 10.10.10.2 – 10.10.10.3 Dictionary : — Key:value device1: 10.10.10.1 device2: this is a string device3: “this can nclude special characters” device4: True or true or yes or no…
Read more