skip to navigation
skip to content

netaddr 0.5

Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses

Latest Version: 0.7.3

a library providing Pythonic manipulation, validation and classification of common networking address notations, including :-

  • IPv4
  • IPv6
  • CIDR (Classless Inter-Domain Routing)
  • IEEE EUI-48, EUI-64 and MAC (Media Access Control)

Each object represents an individual address or address range and behaves as you would expect when treated like standard Python types. For example :-

If you call list() on a CIDR object, it provides an iterator yielding IP addresses.

Calling len() returns the number of addresses found within the range.

Indexing and/or slicing returns the addresses you'd expect. int() and hex() return the numerical value of an address in network byte order in the respective formats.

File Type Py Version Uploaded on Size # downloads
netaddr-0.5.win32.exe (md5)
netaddr release 0.5 (MS Windows Installer)
MS Windows installer 2.4 2008-09-20 00:49:06 81KB 52
netaddr-0.5.zip (md5)
netaddr release 0.5 (zip archive)
Source 2008-09-20 00:50:24 206KB 63
netaddr-0.5.tar.gz (md5)
netaddr release 0.5 (tarball)
Source 2008-09-20 00:49:44 153KB 92

Log in to rate this package.