skillfed

types-httplib2

Typing stubs for httplib2

types-httplib2 v0.32.0.20260720 2.8M downloads/30d#2,888 on PyPI37
Permissive license Apache-2.0 Active released

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-httplib2

uv

uv add types-httplib2

poetry

poetry add types-httplib2

Installing 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

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

type stubs httplib2httplib2 typing annotationsmypy httplib2 typesstatic type checking http clientpyright httplib2 stubshttplib2 type hints
type-stubsstatic-analysis

More Software Development packages