Google's IP address manipulation library
ipaddr.py is a library for working with IP addresses, both IPv4 and IPv6.
It has been superseded by ipaddress from the Python 3 standard library, and its Python 2 backport.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.