Skip to main content

netaddr

A system-independent network address manipulation library for Python 2.7 and 3.5+. (Python 2.7 and 3.5 support is deprecated).

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

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

Starting with Python 3.3 there’s an ipaddress module in the Python standard library which provides layer 3 address manipulation capabilities overlapping netaddr.

Documentation

Latest documentation https://netaddr.readthedocs.io/en/latest/

Share and enjoy!

Metadata

Release files for netaddr 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netaddr 0.8.0
File Size Uploaded Provenance Actions
netaddr-0.8.0.tar.gz 1.9 MB Without provenance Details for netaddr-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for netaddr 0.8.0
File Interpreter ABI Platform Actions
netaddr-0.8.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for netaddr-0.8.0-py2.py3-none-any.whl

Total release size: 3.8 MB

Release files / netaddr-0.8.0.tar.gz

Download URL netaddr-0.8.0.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
d6cc57c7a07b1d9d2e917aa8b36ae8ce61c35ba3fcd1b83ca31c5a0ee2b5a243
BLAKE2b-256 checksum
How to use checksums
c33bfe5bda7a3e927d9008c897cf1a0858a9ba9924a6b4750ec1824c9e617587
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.8

Release files / netaddr-0.8.0-py2.py3-none-any.whl

Download URL netaddr-0.8.0-py2.py3-none-any.whl
Size 1.9 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9666d0232c32d2656e5e5f8d735f58fd6c7457ce52fc21c98d45f2af78f990ac
BLAKE2b-256 checksum
How to use checksums
ffcd9cdfea8fc45c56680b798db6a55fa60a22e2d3d3ccf54fc729d083b50ce4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.8

Security for netaddr 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files No provenance

0.7.9

0.7.8

0.7.7

0.7.6

0.7.5

0.7.4

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page