netaddr

manipulation of various common network address notations (Python 2)

Install

All systems
curl cmd.cat/netaddr.sh
Debian Debian
apt-get install python-netaddr
Ubuntu
apt-get install python-netaddr
Arch Arch Linux
pacman -S python-netaddr
image/svg+xml Kali Linux
apt-get install python-netaddr
CentOS
yum install python-netaddr
Fedora
dnf install python-netaddr
Windows (WSL2)
sudo apt-get update sudo apt-get install python-netaddr
Raspbian
apt-get install python-netaddr

python-netaddr

manipulation of various common network address notations (Python 2)

netaddr is a Python library for the manipulation of various common network address notations and representations. It takes the hassle out of fiddling with enumerable variations of network addresses presenting a consistent, extensible, easy-to-use and (above all) Pythonic API. With it you can validate, convert, categorise, iterate, generate, slice (and dice): - MAC (Media Access Control) - IEEE EUI-48 and EUI-64 - IP version 4 - IP version 6 - CIDR (Classless Inter-Domain Routing) This is the Python 2 version of the package.

python2-netaddr

Pure Python network address representation and manipulation library