types-netaddr
Typing stubs for netaddr
Decision gist · record as of 2026-08-14
Yes, if you use netaddr and want static type checking. It has no runtime cost, low friction, and is actively maintained as part of typeshed. Install it alongside netaddr in any project using a type checker. If you don't use a type checker or don't use netaddr, it's not needed.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low install friction with no runtime dependencies.
- Actively maintained as part of typeshed, with a recent release 21 days ago and tested against mypy 2.3.0 and pyright 1.1.411.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in most projects without restriction.
last release 2026-07-24 (21 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 151,579 downloads/mo, #10,926 on PyPI
Alternatives
Verify before relying
pip install types-netaddr
# In your code, import netaddr normally; type checkers will use the stubs
import netaddr
addr = netaddr.IPAddress('10.0.0.1')- Whether the stubs cover all netaddr 1.3.* APIs or only a subset of the public interface.
- How frequently the stubs are updated when netaddr itself is updated.
- Whether installing types-netaddr automatically enables type checking without additional configuration.
What it is and what it does
types-netaddr is a type stub package that provides type annotations for the netaddr library, allowing static type checkers like mypy and pyright to understand and validate code that uses netaddr. Since netaddr itself does not include inline type hints, these stubs are necessary for type-aware development and IDE support.
The package is maintained as part of the typeshed project, the canonical repository of type stubs for the Python ecosystem. It has no runtime dependencies and is designed purely to improve the development experience by enabling static type checking. The stubs target netaddr version 1.3.* and have been validated against mypy 2.3.0 and pyright 1.1.411.
Use it for
- Enable mypy or pyright to type-check code that imports and uses netaddr for network operations.
- Catch type errors in network address handling code before runtime in a CI/CD pipeline.
- Provide IDE autocomplete and type hints when working with netaddr in editors that support type stubs.
- Validate that network address objects are used correctly in type-strict projects.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use netaddr and want static type checking.
It has no runtime cost, low friction, and is actively maintained as part of typeshed. Install it alongside netaddr in any project using a type checker. If you don't use a type checker or don't use netaddr, it's not needed.
Install
types-netaddr on PyPI
Before you install
Low install friction with no runtime dependencies. Actively maintained as part of typeshed, with a recent release 21 days ago and tested against mypy 2.3.0 and pyright 1.1.411.
Requires Python 3.10 or later.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in most projects without restriction.
Quickstart
pip install types-netaddr
# In your code, import netaddr normally; type checkers will use the stubs
import netaddr
addr = netaddr.IPAddress('10.0.0.1')
Verify before relying
- Whether the stubs cover all netaddr 1.3.* APIs or only a subset of the public interface.
- How frequently the stubs are updated when netaddr itself is updated.
- Whether installing types-netaddr automatically enables type checking without additional configuration.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 21 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 151,579 / month, #10,926 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_netaddr-1.3.0.20260724-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 › “type stubs netaddr”
- types-netaddrProvides type stubs for the netaddr package, enabling static type…
- netaddrRepresents and manipulates IPv4, IPv6, MAC addresses and related…
- oslo.configParses command-line arguments and .ini-style configuration files for…
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 types-mypy-extensions · types-pyasn1 · types-google-cloud-ndb · types-pyflakes · types-networkx · types-pytz · types-httplib2 · types-oauthlib · types-boltons · types-waitress