PrettyTable – Printing anything in Table
Hi,
As the scripting and programming deals in logging into the device and fetching data, there will be a time where presentability of Data matters. PrettyTable is one such package which greatly helps in reading things
A simple example, re-visiting the code to get the list of routes from the Device
PrettyTable will help in tabulating the Data, the installation and usage can be found here
Pip Package – https://pypi.org/project/PrettyTable/
Usage – http://zetcode.com/python/prettytable/
Once we have the code, let take a look at how the program looks
The Table form looks something like this
Hope this help for anyone who gets started with presentability of Data, honestly, there was one time I got crazy with the print statement just to make the data presentable.