Monthly Archive: August 2020

Virtual Environment

Install : apt-get update apt install python3-virtualenv cd ~ cd VENV virtualenv virtualenv-3.6 -p /usr/bin/python36 “virtual env name” ll or ls -lart This is going to create a new sandbox source “virtual env name”/bin/activate  <— this is to active it which…
Read more

Complex Data Structure

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

YAML Basics

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