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.1.zip (211.8 kB view details)

Uploaded Source

netaddr-0.5.1.tar.gz (157.4 kB view details)

Uploaded Source

Built Distribution

netaddr-0.5.1.win32.exe (84.0 kB view details)

Uploaded Source

File details

Details for the file netaddr-0.5.1.zip.

File metadata

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

File hashes

Hashes for netaddr-0.5.1.zip
Algorithm Hash digest
SHA256 7ca32f30533858756ae24bee9e3c1156533b06fcdf7f77e07aa588bbf057eca0
MD5 7961ee399445d364fe5e6cf4a1836c93
BLAKE2b-256 c25ae223666002029978a55bf06dbb9448aeb7dba22351623a82e3a00ff8aef7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for netaddr-0.5.1.tar.gz
Algorithm Hash digest
SHA256 56a6b3801a39af3879fc4b4df66244a7bf95fa992564cfd5b19ea547457fac38
MD5 9a8261b90fe810e55990e92cdda79a28
BLAKE2b-256 8abeaacbd9e0ec709016ae2278ad947985904202f93c2ba5b6a19574b12dbc4a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for netaddr-0.5.1.win32.exe
Algorithm Hash digest
SHA256 115f948af805f7efa939f41b8599d57de880bf466fb6d0348a880ee9a741b3df
MD5 75c77808635c80d9456515a4467819eb
BLAKE2b-256 5c862ec1cb16bf54539efcc6d770c71f3f16dcb1e70bdc932785cf730b3daae0

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