{"id":22502,"library":"types-python-http-client","title":"types-python-http-client","description":"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.","status":"active","version":"3.3.7.20260408","language":"python","source_language":"en","source_url":"https://github.com/python/typeshed","tags":["typeshed","stubs","typing","sendgrid","http-client"],"install":[{"cmd":"pip install types-python-http-client","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"The stubs are for this library; runtime dependency for actual HTTP calls.","package":"python-http-client","optional":false}],"imports":[{"wrong":"from python_http_client-stubs import HTTPClient","symbol":"HTTPClient","correct":"from python_http_client_stubs import HTTPClient"}],"quickstart":{"code":"from python_http_client import HTTPClient\n\nclient = HTTPClient(host='https://api.sendgrid.com', request_headers={'Authorization': 'Bearer ' + os.environ.get('SENDGRID_API_KEY', '')})\nresponse = client.get('/v3/mail/send')\nprint(response.status_code)","lang":"python","description":"Minimal usage of HTTPClient with SendGrid API. Requires python-http-client installed."},"warnings":[{"fix":"Install python-http-client separately: pip install python-http-client","message":"Stubs are for type checking only. They do not replace the runtime library python-http-client.","severity":"gotcha","affected_versions":"all"},{"fix":"Pin both packages to compatible versions. Check typeshed version against python-http-client version.","message":"Changes in stubs may not match the installed version of python-http-client, leading to type errors.","severity":"breaking","affected_versions":">=3.10"}],"env_vars":null,"search_vec":"'3.3.7.20260408':25 'check':17 'client':5,13,22,39 'current':23 'enabl':15 'http':4,12,21,38 'http-client':37 'librari':14 'part':28 'period':32 'python':3,11 'python-http-cli':10 'releas':26 'sendgrid':19,36 'stub':7,34 'type':2,6,16,35 'types-python-http-cli':1 'typesh':30,33 'updat':31 'version':24","created_at":"2026-04-27T17:05:30.999490+00:00","updated_at":"2026-04-27T17:05:30.999490+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'python_http_client_stubs'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"3.3.7.20260518","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/typeshed-internal/stub_uploader","docs":null,"changelog":"https://github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/python-http-client.md","pypi":"https://pypi.org/project/types-python-http-client/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs","http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}