# pydantic/httpx2

A next generation HTTP client for Python. 🦋

Repository: https://github.com/pydantic/httpx2
Canonical: https://ross.abutalabs.com/products/httpx2
Homepage: https://httpx2.pydantic.dev
Language: Python
License: BSD-3-Clause
License Family: permissive
Last push: 2026-08-25T13:00:01+00:00

## Health v2 (maintenance only)
Score: 80/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 98, longevity 8
- inputs: {"age_days": 114, "days_push": 8, "days_rel": 15, "gap_med": 5.0, "n_releases_24m": 15}
- flags: young
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1013, forks 57 (observed 2026-08-28T04:03:13.429856+00:00)

## What it is
HTTPX2 is a fully featured HTTP client library for Python, maintained by Pydantic as a continuation of HTTPX. It offers sync and async APIs, HTTP/1.1 and HTTP/2 support, a requests-compatible interface, and an integrated command-line client.

## Use cases
- make http requests in python
- call rest apis from python
- async http client for python
- migrate from requests to a maintained http client
- test wsgi or asgi apps with a real client
- send http requests from the command line

## When to choose
- you need a maintained, security-patched successor to HTTPX
- you want requests-like ergonomics with async and HTTP/2 support
- you need to test ASGI/WSGI applications directly

## When to avoid
- you are happy with HTTPX or aiohttp and don't need a new steward
- you need a minimal dependency-free client like urllib

## Facets
- artifact type: library
- maturity: active
- function: http-client, cli
- domain: web-development, developer-tools, apis
- platform: python, cli, cross-platform
- tags: http2, async, requests-compatible, pydantic, wsgi, asgi

## Member repositories
- pydantic/httpx2 (main) score 80

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:13.429856+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:11:41.367082+00:00, confidence not recorded.
  - readme: https://github.com/pydantic/httpx2 (fetched 2026-08-28T04:03:13.429856+00:00, sha 5c6f75497f47)
  - homepage: https://httpx2.pydantic.dev (fetched 2026-08-29T13:11:13.692253+00:00, sha 3698569d3d1f)
  - site_page: https://httpx2.pydantic.dev/quickstart (fetched 2026-08-29T13:11:13.702071+00:00, sha 8919f7ca6b2b)
  - registry_pypi: https://pypi.org/pypi/httpx2/json (fetched 2026-08-29T13:11:13.704217+00:00, sha aedf2184a6bd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
