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/

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

Uploaded Source

Built Distribution

netaddr-0.10.1-py2.py3-none-any.whl (2.2 MB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for netaddr-0.10.1.tar.gz
Algorithm Hash digest
SHA256 f4da4222ca8c3f43c8e18a8263e5426c750a3a837fdfeccf74c68d0408eaa3bf
MD5 c0d7b080da18c851ea436389813d7652
BLAKE2b-256 af96f4878091248450bbdebfbd01bf1d95821bd47eb38e756815a0431baa6b07

See more details on using hashes here.

File details

Details for the file netaddr-0.10.1-py2.py3-none-any.whl.

File metadata

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

File hashes

Hashes for netaddr-0.10.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9822305b42ea1020d54fee322d43cee5622b044c07a1f0130b459bb467efcf88
MD5 f4d396bfa4594f1476924e18b131c2f6
BLAKE2b-256 b6a6aa2c645188e00f7db040d1b0b1dd353b5b51c67984ada4f6d60aa388982f

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