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.5.2.zip (213.3 kB view details)

Uploaded Source

netaddr-0.5.2.tar.gz (158.7 kB view details)

Uploaded Source

Built Distribution

netaddr-0.5.2.win32.exe (84.1 kB view details)

Uploaded Source

File details

Details for the file netaddr-0.5.2.zip.

File metadata

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

File hashes

Hashes for netaddr-0.5.2.zip
Algorithm Hash digest
SHA256 ca735e2f592bf8bdcb44caca4dffe8c9723431f4358ffcc932cd5913bf2cb973
MD5 4df05f58e84ddfdffa342426f7122429
BLAKE2b-256 fae9e9fdba56c32abc2ca03e02a5136bc91feafe6a8f6958300b9fe59b476b39

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for netaddr-0.5.2.tar.gz
Algorithm Hash digest
SHA256 ae48c99818195e04ff1e2167212da3c9e9f3cf465379114e13cd7a972844c86c
MD5 94154b32c371a1b1f4d11beda853017f
BLAKE2b-256 3edf2173a9ebc3db21b7238fd7b54d33396d38e55c9775ca2b09ff78f4ffd345

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for netaddr-0.5.2.win32.exe
Algorithm Hash digest
SHA256 f0baa605a9e40a93c2eece35e07d231b38963ffc31d4c36b87518ee3eecf5b6f
MD5 38786e79792e853f5593ffe39019072b
BLAKE2b-256 2149e6ce79a0b14d12da25646190a9999976bb3284ddc0b8a0f41a056ead1852

See more details on using hashes here.

Supported by

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