ipaddr.py is Google's library for manipulating IP
addresses in Python. It supports validation,
subnet operations, and summarization. It works
with both IPv4 and IPv6, has a comprehensive test
suite, and is one of the fastest libraries for
common operations.