# HTTPX

> A next-generation HTTP client for Python

Source: https://talira.ai/catalog/httpx-3a8ssvwd
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [libraries / http clients](https://talira.ai/categories/libraries/http-clients), [languages / python](https://talira.ai/categories/languages/python)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Encode](https://talira.ai/orgs/encode.md)

HTTPX is a fully featured HTTP client for Python 3 from Encode, with sync and async APIs and support for HTTP/1.1 and HTTP/2. Its API is broadly compatible with Requests, and it adds strict timeouts everywhere, full type annotations, and the ability to send requests directly to WSGI or ASGI applications. It has connection pooling, cookie-persisting sessions, proxies (HTTP, HTTPS and, optionally, SOCKS), streaming downloads, multipart uploads and automatic decompression, with optional brotli and zstandard decoders and an optional command-line client. It requires Python 3.9 or later and is BSD-3-Clause licensed.

## Links

- Website: https://www.python-httpx.org/
- GitHub: https://github.com/encode/httpx
- Docs: https://www.python-httpx.org/

## Ways to install

### Package managers

- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/source/stable/httpx>[^1]

## Problems it solves

- make async HTTP requests in Python with a Requests-like API
- an HTTP client for Python that supports HTTP/2
- test my ASGI app by calling it directly without running a server

## Features

- sync and async APIs in one client
- HTTP/1.1 and optional HTTP/2
- a broadly Requests-compatible API
- strict timeouts everywhere and full type annotations
- send requests straight to WSGI or ASGI apps for testing
- optional command-line client with httpx[cli]

## Trust

Overall: 0.60 out of 1.
Signals: maintenance 0.64, adoption 0.84, momentum 0.68, community 0.96, backing 0.30, extensibility 0.00.

- last commit 3 days ago
- 6 commits in the last 90 days
- latest release 0.29.0 3 days ago
- 15.9k GitHub stars
- 248 contributors
- accepts sponsorship (Github)
- backed by Encode

## Alternatives

- [aiohttp](https://talira.ai/catalog/aiohttp-bskxhtdn.md): Asynchronous HTTP client/server framework for asyncio and Python
- [Requests](https://talira.ai/catalog/requests-ja553s1k.md): HTTP for humans: the standard HTTP client library for Python

## Sources

[^1]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 27 Nov 2026)
[^2]: https://github.com/encode/httpx/blob/master/LICENSE.md (checked 27 Nov 2026)
