types-httplib2
Typing stubs for httplib2
What it is and what it does
This package provides type stub files (.pyi) for httplib2, a mature HTTP client library. Type stubs are metadata files that tell static type checkers like mypy and pyright what types httplib2's functions and classes accept and return, without modifying httplib2 itself. The stubs are maintained as part of typeshed, the community repository of type information for popular Python packages.
When installed alongside httplib2, this package allows your IDE and type checker to catch type errors in code that uses httplib2—for example, passing the wrong argument type to http.request() or accessing non-existent attributes on response objects. The stubs are tested against mypy 2.3.0 and pyright 1.1.411, and track httplib2 version 0.32.0.
Use it for:
- Enable mypy or pyright to type-check code that calls httplib2 methods and functions
- Catch type errors in HTTP client code before runtime in a CI/CD pipeline
- Get IDE autocomplete and inline type hints when working with httplib2 in an editor that supports type stubs
- Verify that your code passes httplib2 the correct argument types and uses its return values correctly
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for the httplib2 HTTP client library, enabling static type checkers like mypy and pyright to validate code that uses httplib2.
Yes, if you use httplib2 and run static type checking. This is a lightweight, actively maintained stub package with no dependencies and permissive licensing. Install it alongside httplib2 to enable type checkers to validate your HTTP client code. Not necessary if you don't use type checking or don't use httplib2.
Install
types-httplib2 on PyPI
pip
pip install types-httplib2uv
uv add types-httplib2poetry
poetry add types-httplib2Installing types-httplib2
Before you install
Low install friction with no runtime dependencies. Actively maintained as part of typeshed, with a recent release 25 days ago and ongoing repository activity.
License in practice
Apache-2.0 permissive license allows use in most projects without significant restrictions.
Quickstart
pip install types-httplib2
# In your code, type checkers will now understand httplib2:
import httplib2
http = httplib2.Http()
response, content = http.request('http://example.com')
Requires Python 3.10 or later. The package itself is stubs-only and does not provide runtime functionality; httplib2 must be installed separately.
Verify before relying
- Whether the stubs cover the full public API of httplib2 0.32.0 or only a subset
- Compatibility with httplib2 versions other than 0.32.0
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 — 25 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,789,324/month — #2,888 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_httplib2-0.32.0.20260720-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-oauthlibProvides type stubs for the oauthlib package,…
permissive · top 5,000 on PyPI
types-pycurlProvides type hints for the pycurl HTTP client…
permissive · top 15,000 on PyPI
types-boltonsProvides type stubs for the boltons library,…
permissive · top 15,000 on PyPI
types-passlibProvides type stubs for the passlib…
permissive · top 5,000 on PyPI
types-requestsProvides type annotations for the requests…
permissive · top 1,000 on PyPI
types-pyflakesProvides type stubs for the pyflakes static…
permissive · top 15,000 on PyPI
types-psycopg2Provides type hints for psycopg2, enabling…
permissive · top 5,000 on PyPI
types-fpdf2Provides type stubs for the fpdf2 PDF…
permissive · top 15,000 on PyPI
types-netaddrProvides type stubs for the netaddr package,…
permissive · top 15,000 on PyPI
types-AuthlibProvides type stubs for Authlib, enabling…
permissive · top 5,000 on PyPI