skillfed

httpx

The next generation HTTP client.

httpx Permissive license BSD-3-Clause Active 15,417 v0.28.1 released

Install

httpx on PyPI

pip

pip install httpx

uv

uv add httpx

poetry

poetry add httpx

Package 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

Development Status :: 4 - BetaEnvironment :: Web EnvironmentFramework :: AsyncIOFramework :: TrioIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP

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:

&gt;&gt;&gt; import httpx
&gt;&gt;&gt; r = httpx.get('https://www.example.org/')
&gt;&gt;&gt; r
&lt;Response [200 OK]&gt;
&gt;&gt;&gt; r.status_code
200
&gt;&gt;&gt; r.headers['content-type']
'text/html; charset=UTF-8'
&gt;&gt;&gt; r.text
'&lt;!doctype html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;title&gt;Example Domain&lt;/title&gt;...'

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.
http client library pythonasync http requestshttp/2 support pythonrequests-compatible apipython http client sync asynccommand line http clienthttp/1.1 http/2 client

Similar packages