{"library":"httpx","type":"library","category":null,"description":"Fully featured next-generation HTTP client for Python 3. Provides both synchronous and asynchronous APIs with HTTP/1.1 and HTTP/2 support. Current version is 0.28.1 (December 2024). Pre-1.0: minor version bumps may introduce breaking changes.","language":"python","status":"active","version":"0.28.1","tags":["http","requests","async","asyncio","http2","client","rest","python"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install httpx","imports":["import httpx","with httpx.Client() as client:\n    r = client.get('https://example.com')","async with httpx.AsyncClient() as client:\n    r = await client.get('https://example.com')","httpx.Client(timeout=httpx.Timeout(5.0, connect=2.0))","httpx.Client(auth=('user', 'pass'))\n# or\nhttpx.Client(auth=httpx.BasicAuth('user', 'pass'))"]},{"cmd":"pip install 'httpx[http2]'","imports":[]},{"cmd":"pip install 'httpx[cli]'","imports":[]},{"cmd":"pip install 'httpx[brotli]'","imports":[]},{"cmd":"pip install 'httpx[zstd]'","imports":[]}],"homepage":"https://www.python-httpx.org","github":"https://github.com/encode/httpx","docs":"https://www.python-httpx.org","changelog":"https://github.com/encode/httpx/blob/master/CHANGELOG.md","pypi":"https://pypi.org/project/httpx/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":2.4,"avg_import_s":0.25,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/httpx/compatibility"}}