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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: netaddr-0.10.0.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.0.tar.gz
Algorithm Hash digest
SHA256 4c30c54adf4ea4318b3c055ea3d8c7f6554a50aa2cd8aea4605a23caa0b0229e
MD5 9e6716e481d201675b70bf70a4640fdd
BLAKE2b-256 3ece6aad902173f1c16dd2eddcc1ce1974104509a9e8c1593489114ede82c76c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netaddr-0.10.0-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.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8752f96c8fc24162edbf5b73d3e464b5d88e62869917582daa37b2695b65afb4
MD5 c84322ab862ff5334047fe60413c5ca9
BLAKE2b-256 7861a433f52891b4fb4bc77c16836128b001a4e633b9f2b48b4361963cdaf085

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