netaddr
A network address manipulation library for Python
Decision gist · record as of 2026-08-14
Yes. netaddr is a stable, dependency-free library for a well-defined problem (network address manipulation) with no known vulnerabilities. Its dormant maintenance is not a blocker for stable use cases; the API is mature and the task domain is not rapidly evolving. Install if you need to work with IP addresses, subnets, or MAC addresses in Python.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.7 or later.
- Low friction install with no runtime dependencies.
- Dormant maintenance (last commit 2024-07-05, 808 days since release) but marked Production/Stable; suitable for stable, well-defined network tasks rather than rapidly evolving features.
License · maintenance · safety
BSD License (permissive) — BSD License (permissive); you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2024-05-28 (808 days) · last repo commit 2024-07-05 · 827 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 13,958,594 downloads/mo, #1,256 on PyPI
Alternatives
Verify before relying
pip install netaddr
from netaddr import IPNetwork, IPAddress
net = IPNetwork('10.0.0.0/8')
for ip in net:
print(ip)- Whether the 808-day gap since last release reflects intentional stability or abandonment risk for future Python versions.
- Performance characteristics for large-scale IP range operations or set operations on many subnets.
- Real-world usage patterns and whether the library remains actively maintained despite dormant status.
What it is and what it does
netaddr is a pure-Python library for parsing, representing, and manipulating network addresses at Layer 2 and Layer 3. It handles IPv4 and IPv6 addresses, subnets, and masks; MAC and EUI-64 identifiers; and provides utilities like CIDR parsing, IANA block lookups, and DNS reverse-lookup generation. The library has no runtime dependencies and installs cleanly on Python 3.7 and later.
Typical use is in network automation, infrastructure tooling, and systems administration where you need to work with IP ranges, validate addresses, perform subnet calculations, or look up organizational information tied to IP blocks or MAC vendors. It supports set-based operations (unions, intersections) over address ranges and can parse multiple formats including CIDR, arbitrary ranges, and nmap notation.
Use it for
- Validate and parse user-supplied IP addresses or CIDR blocks in network configuration tools.
- Iterate over all hosts in a subnet or check membership of an IP in a range.
- Perform supernetting or subnetting calculations for network planning.
- Look up IANA IP block ownership or IEEE OUI/IAB information for network diagnostics.
- Generate DNS reverse-lookup zones from IP ranges in DNS management scripts.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
netaddr is a stable, dependency-free library for a well-defined problem (network address manipulation) with no known vulnerabilities. Its dormant maintenance is not a blocker for stable use cases; the API is mature and the task domain is not rapidly evolving. Install if you need to work with IP addresses, subnets, or MAC addresses in Python.
Install
netaddr on PyPI
Before you install
Low friction install with no runtime dependencies. Dormant maintenance (last commit 2024-07-05, 808 days since release) but marked Production/Stable; suitable for stable, well-defined network tasks rather than rapidly evolving features.
Requires Python 3.7 or later.
License in practice
BSD License (permissive); you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install netaddr
from netaddr import IPNetwork, IPAddress
net = IPNetwork('10.0.0.0/8')
for ip in net:
print(ip)
Verify before relying
- Whether the 808-day gap since last release reflects intentional stability or abandonment risk for future Python versions.
- Performance characteristics for large-scale IP range operations or set operations on many subnets.
- Real-world usage patterns and whether the library remains actively maintained despite dormant status.
Package facts
| License | BSD License permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 808 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 13,958,594 / month, #1,256 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchIntended Audience :: System AdministratorsIntended Audience :: Telecommunications IndustryLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: CommunicationsTopic :: DocumentationTopic :: EducationTopic :: Education :: TestingTopic :: Home AutomationTopic :: InternetTopic :: Internet :: Log AnalysisTopic :: Internet :: Name Service (DNS)Topic :: Internet :: Proxy ServersTopic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: Indexing/SearchTopic :: Internet :: WWW/HTTP :: Site ManagementTopic :: SecurityTopic :: Software DevelopmentTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Quality AssuranceTopic :: Software Development :: TestingTopic :: Software Development :: Testing :: Traffic GenerationTopic :: System :: BenchmarkTopic :: System :: ClusteringTopic :: System :: Distributed ComputingTopic :: System :: Installation/SetupTopic :: System :: LoggingTopic :: System :: MonitoringTopic :: System :: NetworkingTopic :: System :: Networking :: FirewallsTopic :: System :: Networking :: MonitoringTopic :: System :: Networking :: Time SynchronizationTopic :: System :: Recovery ToolsTopic :: System :: ShellsTopic :: System :: Software DistributionTopic :: System :: System ShellsTopic :: System :: Systems AdministrationTopic :: Text ProcessingTopic :: Text Processing :: FiltersTopic :: Utilities |
Evidence: netaddr-1.3.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “IPv4 IPv6 subnet CIDR”
- netaddrRepresents and manipulates IPv4, IPv6, MAC addresses and related…
- django-allow-cidrA Django middleware that extends ALLOWED_HOSTS validation to support…
- iptoolsProvides utilities for parsing, validating, and manipulating IPv4 and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also ciscoconfparse · django-netfields · infoblox-client · ipaddr · isc-dhcp-leases · jaraco.net · censys · django-allow-cidr · cidr-trie · ipaddress