IPyA Python class and tools for handling of IPv4 and IPv6 addresses and networks | |
Download |
IPy Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- Victor Stinner
- Publisher web site:
- http://fusil.hachoir.org/trac
IPy Tags
IPy Description
A Python class and tools for handling of IPv4 and IPv6 addresses and networks IPy is a Python class and tools for handling of IPv4 and IPv6 addresses and networks. The script is similar to the Net::IP Perl module.The IP class allows a comfortable parsing and handling for most notations in use for IPv4 and IPv6 Addresses and Networks. It was greatly inspired bei RIPE's Perl module NET::IP's interface but doesn't share the Implementation. It doesn't share non-CIDR netmasks, so funky stuff lixe a netmask 0xffffff0f can't be done here.>>> from IPy import IP>>> ip = IP('127.0.0.0/30')>>> for x in ip:... print x...127.0.0.0127.0.0.1127.0.0.2127.0.0.3>>> ip2 = IP('0x7f000000/30')>>> ip == ip21>>> ip.reverseNames()>>> ip.reverseName()'0-3.0.0.127.in-addr.arpa.'>>> ip.iptype()'PRIVATE' Requirements: · Python What's New in This Release: · New "major" version because it may break compatibility · Fix __cmp__(): IP('0.0.0.0/0') and IP('0.0.0.0') are not equal · Fix IP.net() of the network "::/0": "::" instead of "0.0.0.0". IPy 0.63 should fix this bug, but it wasn't.
IPy Related Software