IPy
IPy are a Python class and tools for handling of IPv4 and IPv6 addresses and networks. It is similar to 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.0 127.0.0.1 127.0.0.2 127.0.0.3 >>> ip2 = IP('0x7f000000/30') >>> ip == ip2 1 >>> ip.reverseNames() ['0.0.0.127.in-addr.arpa.', '1.0.0.127.in-addr.arpa.', '2.0.0.127.in-addr.arpa.', '3.0.0.127.in-addr.arpa.'] >>> ip.reverseName() '0-3.0.0.127.in-addr.arpa.' >>> ip.iptype() 'PRIVATE'
Get full documentation in source code: README or IPy.html.
Download
This Python module is under BSD license: see COPYING file.
- Download last version on CheeseShop
- Download IPy-0.70.tar.gz
- Read the ChangeLog
- Linux users:
- Debian: IPy .deb package
- Debian Sarge : Our download section (INL packages)
- Mandriva: IPy .rpm package
- Gentoo: IPy portage
- Ubuntu: Edgy package, Feisty package
- Fedora: yum install python-IPy
Source code
Download development version of IPy using Subversion :
svn co http://software.inl.fr/svn/mirror/tools/ipy/trunk ipy
You can also browse source code online.
Contact
IPy maintainer is now Victor Stinner, email:
victor.stinner AT inl.fr
News
- 2009-10-29: Release of IPy 0.70
- 2009-08-19: Release of IPy 0.64
- 2009-06-23: Release of IPy 0.63
- 2008-07-15: Release of IPy 0.62
Tickets
No results
Old page
IPy used to be hosted on http://c0re.23.nu/c0de/IPy/. The author has stopped to maintain the project and INL has obtained from him to continue the project. Yes, this is an authorized "fork"!
See also
Similar libraries:
