Tag Archives: Python

BWTop | CLI tool to monitor network traffic rate

BWTop is my latest project in my Python learning path, I hope you all enjoy it 🙂


BWTop’s default behaviour is to monitor all interfaces and return with a KB/s rate every one second in a nice colourful output..

However you can customize the behaviour of the tool according to your needs by specifying some more options:

-i INTERFACE, –interface INTERFACE #This will return the statistics for the iface provided instead of all ifaces.

-t TIMEOUT, –timeout TIMEOUT #This will set the timeout to the provided value instead of 1s.

-d, –disable-colors #Disable colored output “enabled by default”

-s, –single-output #Print the output single time and exit

The tool is stable, you can rely on it..

Don’t forget to star it on GitHub if you liked it 😉



ifinfo | Simple Python3 script to retrieve the network interface information in user friendly output.

If you are old sysadmin -like me- then you are familiar with “ifconfig” output,

but since “ifconfig” now is obsolete, so you’ve to stop using it, and rely on the stuff from ” iproute2″ package,

From my point of view “ifconfig” out put is more user-friendly than “iproute2”, so I’ve created “ifinfo” to generate a fancy & user-friendly output based on “ip addr show” + some text processing to produce this fancy & colourful output:


You can install it by doing the following steps:

wget https://raw.githubusercontent.com/mahmoudadel2/ifinfo/master/ifinfo -O /usr/local/bin/ifinfo

chmod +x /usr/local/bin/ifinfo

If you liked it star it on GitHub 😉