--- id: types-httplib2 version: "0.32.0.20260720" license: Apache-2.0 license_treatment: permissive maintenance: active --- # types-httplib2 — Typing stubs for httplib2 License: permissive · Maintenance: active · Downloads: 2.8M/mo ## 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 above — 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 pip install types-httplib2 uv add types-httplib2 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_current - Install friction: low - Maintenance: active - Downloads: 2.8M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags type stubs httplib2, httplib2 typing annotations, mypy httplib2 types, static type checking http client, pyright httplib2 stubs, httplib2 type hints, type-stubs, static-analysis [View on SkillFed](https://skillfed.io/packages/types-httplib2) · [View on PyPI](https://pypi.org/project/types-httplib2/)