Skip to main content

A system-independent network address manipulation library for Python 2.7 and 3.5+. (Python 2.7, 3.5 and 3.6 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.9.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.9.0
File Size Uploaded
netaddr-0.9.0.tar.gz 2.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for netaddr 0.9.0
File Interpreter ABI Platform
netaddr-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.4 MB

Release files / netaddr-0.9.0.tar.gz

Download URL netaddr-0.9.0.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
7b46fa9b1a2d71fd5de9e4a3784ef339700a53a08c8040f08baf5f1194da0128
BLAKE2b-256 checksum
How to use checksums
484c2491bfdb868c3f40d985037fa64a3903c125f45d7d3025640e05715db7a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / netaddr-0.9.0-py3-none-any.whl

Download URL netaddr-0.9.0-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5148b1055679d2a1ec070c521b7db82137887fabd6d7e37f5199b44f775c3bb1
BLAKE2b-256 checksum
How to use checksums
684aaa1a61a8cdfc533020012594b006bbb3e7680326e1c247f63e711be5ab76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.10.0

2 release files

This release

0.9.0 This release

2 release files

0.8.0

2 release files

0.7.20

2 release files

0.7.19

2 release files

0.7.17

4 release files

0.7.16

4 release files

0.7.15

4 release files

0.7.14

4 release files

0.7.13

4 release files

0.7.11

3 release files

0.7.9

0.7.8

0.7.7

0.7.6

0.7.5

0.7.4

0.7.3

6 release files

0.7.2

6 release files

0.7.1

6 release files

0.7

6 release files

0.6.4

6 release files

0.6.3

6 release files

0.6.2

6 release files

0.6.1

6 release files

0.6

4 release files

0.5.2

3 release files

0.5.1

3 release files

0.5

3 release files

0.4

3 release files

0.3.1

3 release files

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