⚠️There's a newer version (0.7.2) of this package.Take me there.
iptools (version 0.2.0)
Manipulate, Validate and Resolve IP Addresses
Description
A toolkit for manipulating,
validating and testing IP addresses and ranges, along with
datasets relating to IP addresses. While it primarily has
support for the IPv4 address space, more extensive IPv6 support
is intended.