Registry / type-stubs / types-python-http-client

types-python-http-client

JSON →
library3.3.7.20260518pypypiunverified

Typing stubs for the python-http-client library, enabling type checking for SendGrid's HTTP client. Current version: 3.3.7.20260408. Released as part of typeshed, updated periodically.

pip install types-python-http-client
INSTALL
IMPORT
SIG · TYPES-PYTHON-HTTP-
T
types-python-http-client
type-stubspythonv3.3.7.20260518
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.3.7.20260518 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HTTPClient
from python_http_client_stubs import HTTPClient
from python_http_client-stubs import HTTPClient

Minimal usage of HTTPClient with SendGrid API. Requires python-http-client installed.

from python_http_client import HTTPClient client = HTTPClient(host='https://api.sendgrid.com', request_headers={'Authorization': 'Bearer ' + os.environ.get('SENDGRID_API_KEY', '')}) response = client.get('/v3/mail/send') print(response.status_code)
Debug
Known issues
gotchaStubs are for type checking only. They do not replace the runtime library python-http-client.
fix
Install python-http-client separately: pip install python-http-client
affects: all
breakingChanges in stubs may not match the installed version of python-http-client, leading to type errors.
fix
Pin both packages to compatible versions. Check typeshed version against python-http-client version.
affects: >=3.10
Upgrade
Version history
3.3.7.20260518latest on PyPI · released May 18, 2026
Audit
Dependencies
python-http-clientrequiredThe stubs are for this library; runtime dependency for actual HTTP calls.
Agent activity
34 hits · last 30 days
node
28
OpenAI (training)
1
Resources
types-python-http-client — pip install types-python-http-client · libregistry