types-ipaddress
Typing stubs for ipaddress
Decision gist · record as of 2026-08-14
Yes, if you use a static type checker on code that imports ipaddress. It has no runtime cost, no dependencies, and a permissive license. The main caveat is that the package has not been released since 2022-01-30; verify that type coverage matches your Python version and ipaddress usage patterns before relying on it in production type-checking workflows.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction installation with no runtime dependencies.
- Maintenance is active with recent repository commits, though the package itself has not been released since 2022-01-30.
License · maintenance · safety
Apache-2.0 license (permissive) — Apache-2.0 permissive license allows use in most projects without restriction, including commercial and proprietary software.
last release 2022-01-30 (1657 days) · last repo commit 2026-08-14 · 5,108 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 737,271 downloads/mo, #5,188 on PyPI
Alternatives
Verify before relying
pip install types-ipaddress
# Then use in your code with type checking enabled:
import ipaddress
addr = ipaddress.ip_address('example')- Whether type stub coverage is complete for all ipaddress module features in current Python versions
- Compatibility with Python versions released after the 2022-01-30 package date
- Whether the stubs reflect changes to ipaddress since the last package release
What it is and what it does
This package provides PEP 561 type stub definitions for Python's standard library ipaddress module. Type stubs are metadata files that describe the types and signatures of functions and classes, allowing static type checkers to understand and validate code that uses ipaddress without needing to analyze the standard library source itself.
The stubs are maintained as part of the typeshed project and are generated from its repository. When installed, they enable tools like mypy, PyCharm, and pytype to catch type errors in code working with IP addresses, networks, and related operations. This is particularly useful in larger codebases where type safety helps prevent bugs before runtime.
Use it for
- Enable mypy or pyright to type-check code that parses or validates IP addresses
- Provide IDE autocomplete and type hints for ipaddress module usage in development environments
- Enforce type safety in network utilities or infrastructure-as-code tools that work with IP ranges
- Validate IP address handling in security or networking libraries during development
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use a static type checker on code that imports ipaddress.
It has no runtime cost, no dependencies, and a permissive license. The main caveat is that the package has not been released since 2022-01-30; verify that type coverage matches your Python version and ipaddress usage patterns before relying on it in production type-checking workflows.
Install
types-ipaddress on PyPI
Before you install
Low friction installation with no runtime dependencies. Maintenance is active with recent repository commits, though the package itself has not been released since 2022-01-30.
License in practice
Apache-2.0 permissive license allows use in most projects without restriction, including commercial and proprietary software.
Quickstart
pip install types-ipaddress
# Then use in your code with type checking enabled:
import ipaddress
addr = ipaddress.ip_address('example')
Verify before relying
- Whether type stub coverage is complete for all ipaddress module features in current Python versions
- Compatibility with Python versions released after the 2022-01-30 package date
- Whether the stubs reflect changes to ipaddress since the last package release
Package facts
| License | Apache-2.0 license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 1,657 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 737,271 / month, #5,188 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseTyping :: Stubs Only |
Evidence: types_ipaddress-1.0.8-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 ipaddress”
- types-ipaddressProvides type stubs for Python's standard library ipaddress module,…
- cached-ipaddressCaches IP address object construction and property lookups to avoid…
- ipaddressProvides IPv4 and IPv6 address manipulation for Python 2.6, 2.7, 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 types-backports · types-dataclasses · types-attrs · types-jwt · types-cryptography · types-Flask · types-Werkzeug · types-geoip2 · typepy · cached-ipaddress