---
id: httpx
version: "0.28.1"
license: BSD-3-Clause
license_treatment: permissive
maintenance: active
---
# httpx — The next generation HTTP client.
License: permissive · Maintenance: active · Popularity: top 100 on PyPI
## Install
pip install httpx
uv add httpx
poetry add httpx
## Description
HTTPX - A next-generation HTTP client for Python.
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:
```shell
$ pip install httpx
```
Now, let's get started:
```pycon
>>> import httpx
>>> r = httpx.get('https://www.example.org/')
>>> r
>>> r.status_code
200
>>> r.headers['content-type']
'text/html; charset=UTF-8'
>>> r.text
'\n\n\nExample Domain...'
```
Or, using the command-line client.
```shell
$...
## AI interpretation — verify before relying
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.
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.
[View on SkillFed](https://skillfed.io/packages/httpx) · [View on PyPI](https://pypi.org/project/httpx/)