Skip to main content

A network address manipulation library for Python

Reason this release was yanked:

Uploaded with unwanted content in the documentation source

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

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.2.0.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: netaddr-1.2.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.2

File hashes

Hashes for netaddr-1.2.0.tar.gz
Algorithm Hash digest
SHA256 ac0d67722a977a5cee6e63688e72625812dd67510cd9bd002dfc0f5c5a706ebe
MD5 33b9a3fe12014ccfbb842600967269c1
BLAKE2b-256 5266c73031b4723a1a3e8f6356d00d43407dbb19f2e50c4367d5483f135d4625

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netaddr-1.2.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.2

File hashes

Hashes for netaddr-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d31a2b1697f10de78251984f0a2d9e87ce1b1a3702b72efb6204cbcc7f670113
MD5 c082bbbca0ea9de4d4f1cff9a7d4140e
BLAKE2b-256 373d0e55a5d82e2a56477dec577815ccf21247e3c535716d424c4ae3de61f0ca

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