types-urllib3
Typing stubs for urllib3
Decision gist · record as of 2026-08-14
Yes, if you use urllib3 and rely on static type checking. The package is actively maintained, has no security vulnerabilities, and installs without friction. However, if you use urllib3 2.0.0 or later, which includes native type annotations, this package is redundant.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, though the latest release was 2023-07-20; note that urllib3 2.0.0+ includes its own type annotations, making this package unnecessary for newer urllib3 versions.
License · maintenance · safety
Apache-2.0 license (permissive) — Apache-2.0 is permissive; you may use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
last release 2023-07-20 (1121 days) · last repo commit 2026-08-14 · 5,108 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 24,183,245 downloads/mo, #924 on PyPI
Alternatives
Verify before relying
pip install types-urllib3
import urllib3
http = urllib3.PoolManager()
response = http.request('GET', 'https://example.com')- Whether partial stub coverage is sufficient for your codebase's urllib3 usage patterns.
- Compatibility with urllib3 versions 2.0.0+ where native type annotations are now included.
What it is and what it does
types-urllib3 is a PEP 561 type stub package that provides type annotations for the urllib3 HTTP client library. It allows static type checkers like mypy, pyright, and pytype to understand and validate code that uses urllib3, catching type errors before runtime. The stubs are generated from typeshed and marked as partial, meaning some annotations may be incomplete.
This package is primarily useful for projects using urllib3 versions before 2.0.0, which did not include native type annotations. The package has no runtime dependencies and installs with minimal friction. Maintenance is active with the repository at https://github.com/python/typeshed.
Use it for
- Enable type checking in a project using urllib3 with mypy or pyright.
- Catch type errors in urllib3-based HTTP client code during development rather than at runtime.
- Provide IDE autocomplete and type hints for urllib3 methods in PyCharm or other type-aware editors.
- Validate third-party code that depends on urllib3 in a strictly typed codebase.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use urllib3 and rely on static type checking.
The package is actively maintained, has no security vulnerabilities, and installs without friction. However, if you use urllib3 2.0.0 or later, which includes native type annotations, this package is redundant.
Install
types-urllib3 on PyPI
Before you install
Low friction installation with no runtime dependencies. Maintenance is active, though the latest release was 2023-07-20; note that urllib3 2.0.0+ includes its own type annotations, making this package unnecessary for newer urllib3 versions.
License in practice
Apache-2.0 is permissive; you may use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install types-urllib3
import urllib3
http = urllib3.PoolManager()
response = http.request('GET', 'https://example.com')
Verify before relying
- Whether partial stub coverage is sufficient for your codebase's urllib3 usage patterns.
- Compatibility with urllib3 versions 2.0.0+ where native type annotations are now included.
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,121 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 24,183,245 / month, #924 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 LicenseProgramming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_urllib3-1.26.25.14-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 › “urllib3 type stubs”
- types-urllib3Provides type stubs for urllib3 to enable static type checking with…
- types-influxdb-clientProvides type stubs for influxdb-client, enabling static type…
- types-requestsProvides type annotations for the requests library, enabling type…
Give your agent the search over MCP, or paste the wish link into any chat.
Similar packages
Provides type stubs for caldav, enabling static type checkers like mypy, pyright, and pytype to validate code using caldav.
Provides type stubs for influxdb-client, enabling static type checkers like mypy, pyright, and pytype to validate code using the InfluxDB client library.
Provides type stubs for pyOpenSSL to enable static type checking with mypy, pyright, pytype, and other type checkers.
Provides type stubs for the redis package, enabling static type checking of redis code with mypy, pyright, pytype, and other type checkers.
However, uninstall it if you upgrade to redis 5.0.0 or later, as redis now includes native type annotations and this stub package may conflict.
Provides type stubs for the typed-ast package, enabling static type checkers like mypy, pyright, and pytype to understand code using typed-ast.
Provides type hints for beautifulsoup4 code via PEP 561 stubs, enabling static type checkers to validate code that uses beautifulsoup4.
Install only if your project targets beautifulsoup4 4.12; uninstall if you upgrade to 4.13.0 or later, which includes native type annotations.
See also types-stripe · types-DateTimeRange · types-contextvars · types-python-slugify