httpx2
The next generation HTTP client.
Decision gist · record as of 2026-08-14
Yes. HTTPX2 is actively maintained by Pydantic, has zero known vulnerabilities, low installation friction, and is production-stable. It offers a requests-compatible API with modern features (HTTP/2, async, CLI) and is well-suited for new projects or migration from older HTTP clients. Install it unless you have a specific reason to stay with an older HTTP library.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction installation with a pure-wheel distribution.
- Actively maintained by Pydantic with a recent release (5 days old) and no known vulnerabilities.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is a permissive open-source license that allows commercial and private use with minimal restrictions, making it safe for most projects.
last release 2026-08-09 (5 days) · last repo commit 2026-08-13 · 911 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 55,998,124 downloads/mo, #530 on PyPI
Alternatives
Verify before relying
pip install httpx2
import httpx2
r = httpx2.get('https://www.example.org/')
print(r.status_code)
print(r.text)- Performance characteristics compared to the original HTTPX or other HTTP clients under various workloads.
- Stability and compatibility guarantees for code written against the original HTTPX library.
- Timeline and scope for future breaking changes under Pydantic stewardship.
What it is and what it does
HTTPX2 is a modern HTTP client library that provides a requests-compatible API while adding support for HTTP/2, async operations, and a command-line interface. It sits on top of httpcore2 for transport, anyio for concurrency primitives, and truststore for SSL verification, giving you both synchronous and asynchronous ways to make HTTP requests with strict timeouts, connection pooling, cookie persistence, and browser-style SSL verification.
The package is maintained by Pydantic as a continuation of the original HTTPX project, ensuring timely security updates and active development. It supports modern Python versions (3.10 through 3.15), works with both asyncio and trio, and can make requests to WSGI and ASGI applications directly. Optional extras enable HTTP/2 support, SOCKS proxies, a CLI, and various compression formats.
Use it for
- Building web scrapers or API clients that need both sync and async support with HTTP/2 capability.
- Writing command-line tools that make HTTP requests using the integrated CLI without additional dependencies.
- Testing WSGI or ASGI applications directly without spinning up a server.
- Migrating from the original requests or HTTPX library while maintaining API compatibility.
- Applications requiring strict timeout enforcement and connection pooling for production reliability.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
HTTPX2 is actively maintained by Pydantic, has zero known vulnerabilities, low installation friction, and is production-stable. It offers a requests-compatible API with modern features (HTTP/2, async, CLI) and is well-suited for new projects or migration from older HTTP clients. Install it unless you have a specific reason to stay with an older HTTP library.
Install
httpx2 on PyPI
Before you install
Low friction installation with a pure-wheel distribution. Actively maintained by Pydantic with a recent release (5 days old) and no known vulnerabilities. The package has 6 runtime dependencies, all of which are standard networking and concurrency libraries.
Requires Python 3.10 or later.
License in practice
BSD-3-Clause is a permissive open-source license that allows commercial and private use with minimal restrictions, making it safe for most projects.
Quickstart
pip install httpx2
import httpx2
r = httpx2.get('https://www.example.org/')
print(r.status_code)
print(r.text)
Verify before relying
- Performance characteristics compared to the original HTTPX or other HTTP clients under various workloads.
- Stability and compatibility guarantees for code written against the original HTTPX library.
- Timeline and scope for future breaking changes under Pydantic stewardship.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesanyiohttpcore2httpx2-jsfetchidnatruststoretyping-extensions |
| Maintenance | Actively maintained 5 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 55,998,124 / month, #530 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: AnyIOFramework :: 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.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Topic :: Internet :: WWW/HTTP |
Evidence: httpx2-2.10.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “requests-compatible http client”
- httpx2HTTPX2 is a fully featured HTTP client library for Python that…
- requests-gssapiAdds GSSAPI/Kerberos authentication support to the requests HTTP…
- geventhttpclientA concurrent HTTP client for gevent that handles high-throughput…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
A minimal, low-level HTTP client library providing thread-safe and task-safe connection pooling with support for HTTP/1.1, HTTP/2, sync and async interfaces, and HTTP(S) and SOCKS proxies.
See also httpx · httpx-aiohttp · urllib3-future · aiosonic · httpr · httpx-socks · pytest-httpx2 · opentelemetry-instrumentation-httpx