Skip to main content

A network address manipulation library for Python

Project description

https://codecov.io/gh/netaddr/netaddr/branch/master/graph/badge.svg https://github.com/netaddr/netaddr/workflows/CI/badge.svg https://img.shields.io/pypi/v/netaddr.svg https://img.shields.io/pypi/pyversions/netaddr.svg

A Python library for representing and manipulating network addresses.

Provides support for:

Layer 3 addresses

  • IPv4 and IPv6 addresses, subnets, masks, prefixes

  • iterating, slicing, sorting, summarizing and classifying IP networks

  • dealing with various ranges formats (CIDR, arbitrary ranges and globs, nmap)

  • set based operations (unions, intersections etc) over IP addresses and subnets

  • parsing a large variety of different formats and notations

  • looking up IANA IP block information

  • generating DNS reverse lookups

  • supernetting and subnetting

Layer 2 addresses

  • representation and manipulation MAC addresses and EUI-64 identifiers

  • looking up IEEE organisational information (OUI, IAB)

  • generating derived IPv6 addresses

Documentation: https://netaddr.readthedocs.io/en/latest/ Source code repository <https://github.com/netaddr/netaddr/> PyPI page: https://pypi.org/project/netaddr/

Share and enjoy!

Project details


Download files

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

Source Distribution

netaddr-1.1.0.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

netaddr-1.1.0-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netaddr-1.1.0.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for netaddr-1.1.0.tar.gz
Algorithm Hash digest
SHA256 eabeba62193525757ed3ab4aacc4ab8089f84e57059fd41fde58df95c128a26d
MD5 b87c483bc8943811a8d87ed8a5c6a2e7
BLAKE2b-256 d479a9b05aa527c0032c0eb6c20d70c0a1335d1dadf000b789d9bbfb8993168c

See more details on using hashes here.

File details

Details for the file netaddr-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: netaddr-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for netaddr-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d542c37909f1624665ec7f59ea2e388a20eb678188f1b0c4cb50fdd600f89264
MD5 af499f2379856e45edb5127388ff920a
BLAKE2b-256 7fe11b7ebbccd9262cd08f8fde49a2632724268e952a1613bcad0de6062b0cc4

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 Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page