httpx
The next generation HTTP client.
Install
httpx on PyPI
pip
pip install httpxuv
uv add httpxpoetry
poetry add httpxPackage facts
| License | BSD-3-Clause (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — anyio, certifi, httpcore, idna |
| Maintenance | actively maintained — 615 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the 100 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: httpx-0.28.1-py3-none-any.whl
About httpx
from the package's own PyPI description — quoted content, verbatim
<p align="center"> <a href="https://www.python-httpx.org/"><img width="350" height="208" src="https://raw.githubusercontent.com/encode/httpx/master/docs/img/butterfly.png" alt='HTTPX'></a> </p>
<p align="center"><strong>HTTPX</strong> <em>- A next-generation HTTP client for Python.</em></p>
<p align="center"> <a href="https://github.com/encode/httpx/actions"> <img src="https://github.com/encode/httpx/workflows/Test%20Suite/badge.svg" alt="Test Suite"> </a> <a href="https://pypi.org/project/httpx/"> <img src="https://badge.fury.io/py/httpx.svg" alt="Package version"> </a> </p>
HTTPX is a fully featured HTTP client library for Python 3. It includes an integrated command line client, has support for both HTTP/1.1 and HTTP/2, and provides both sync and async APIs.
Install HTTPX using pip:
$ pip install httpx
Now, let's get started:
>>> import httpx
>>> r = httpx.get('https://www.example.org/')
>>> r
<Response [200 OK]>
>>> r.status_code
200
>>> r.headers['content-type']
'text/html; charset=UTF-8'
>>> r.text
'<!doctype html>\n<html>\n<head>\n<title>Example Domain</title>...'
Or, using the command-line client.
```shell $...
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
HTTPX is a fully featured HTTP client library for Python 3 with support for both HTTP/1.1 and HTTP/2, offering sync and async APIs plus an integrated command-line client.
Low friction installation with four lightweight runtime dependencies (anyio, certifi, httpcore, idna). Actively maintained with recent commits; development status classified as Beta.
BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and disclaimer.
Usage
pip install httpx
import httpx
r = httpx.get('https://www.example.org/')
print(r.status_code)
Requires Python 3.8 or later.
Verdict: HTTPX is a production-ready package with zero known vulnerabilities, permissive licensing, and low install friction. Its active maintenance status, broad HTTP/2 support, and requests-compatible API make it a solid choice for modern Python HTTP workflows.
Needs verification
- GitHub repository star count and its significance for adoption confidence.
- Whether the 615-day gap since last release reflects deliberate stability or reduced development activity.
- Performance characteristics compared to other async HTTP clients in your use case.
Similar packages
permissive · top 1,000 on PyPI
python-telegram-botcopyleft · top 1,000 on PyPI
requestspermissive · top 100 on PyPI
zeeppermissive · top 1,000 on PyPI
respxpermissive · top 1,000 on PyPI
pybase64permissive · top 1,000 on PyPI
idnapermissive · top 100 on PyPI
pytest-httpxpermissive · top 1,000 on PyPI
httpcorepermissive · top 100 on PyPI
uvicornpermissive · top 100 on PyPI