netaddr is a Python library for representing and manipulating
network addresses.

It support the ability to work and interact with the following:
 - IPv4 and IPv6 addresses and subnets
 - MAC addresses, OUI and IAB identifiers, IEEE EUI-64 identifiers
 - arbitrary (non-aligned) IP address ranges and IP address sets
 - various non-CIDR IP range formats such as nmap and glob-style formats

Homepage:
https://github.com/drkjam/netaddr
