Skip to main content

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

Project description

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

netaddr-0.4.zip (167.8 kB view details)

Uploaded Source

netaddr-0.4.tar.gz (125.9 kB view details)

Uploaded Source

Built Distribution

netaddr-0.4.win32.exe (81.1 kB view details)

Uploaded Source

File details

Details for the file netaddr-0.4.zip.

File metadata

  • Download URL: netaddr-0.4.zip
  • Upload date:
  • Size: 167.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for netaddr-0.4.zip
Algorithm Hash digest
SHA256 c08fed39330d7e95a1c85583cf8e94e8b1b3ece2e2514c0d02496925076acd60
MD5 e2a0f3da789e8bfcb56194cf7854d0cf
BLAKE2b-256 fe82277ff0585e04ed4bda3d033799ad156098eeac940581c3a3c4e5d407721f

See more details on using hashes here.

File details

Details for the file netaddr-0.4.tar.gz.

File metadata

  • Download URL: netaddr-0.4.tar.gz
  • Upload date:
  • Size: 125.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for netaddr-0.4.tar.gz
Algorithm Hash digest
SHA256 efcf7c2ad85989469e1d9635a23d0011b5298b76474a4337b762fc112cd91e66
MD5 9f6450c2b868964afea248fa2a2af0f4
BLAKE2b-256 84404addc5ebcfceae61967fdc66696c42b07d60a13fb00450ee63b0283b10cc

See more details on using hashes here.

File details

Details for the file netaddr-0.4.win32.exe.

File metadata

  • Download URL: netaddr-0.4.win32.exe
  • Upload date:
  • Size: 81.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for netaddr-0.4.win32.exe
Algorithm Hash digest
SHA256 281e84769e9eb2588dfaab3106c7789fbf40520e838db86dce126e63323c5959
MD5 77c28e03c14e081b3339118fad7f1bce
BLAKE2b-256 0be7b3ae29e71ab43a48a87aa19db5596384f315ff70d2bd8be2f417842b964b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page