# encode/httpx

A next generation HTTP client for Python. 🦋

Repository: https://github.com/encode/httpx
Canonical: https://ross.abutalabs.com/products/httpx
Homepage: https://www.python-httpx.org/
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: python, http, trio, asyncio
Last push: 2026-03-29T00:19:16+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 74, release rhythm 40, longevity 100
- inputs: {"age_days": 2708, "days_push": 158, "days_rel": 635, "gap_med": 8, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 15439, forks 1259 (observed 2026-08-28T04:11:09.831267+00:00)

## What it is
HTTPX is a fully featured HTTP client library for Python 3 with sync and async APIs, HTTP/1.1 and HTTP/2 support, and a requests-compatible interface. It also ships an optional integrated command-line client for making HTTP requests from the terminal.

## Use cases
- make http requests in python
- async http client for asyncio
- python alternative to requests with http2 support
- call rest apis from python
- test wsgi or asgi apps directly
- send http requests from the command line
- stream large file downloads in python

## When to choose
- you want a modern requests-like API with async support
- you need HTTP/2, strict timeouts, or proxy support in Python
- you want to make requests against WSGI/ASGI apps in tests

## When to avoid
- you need a full browser automation or scraping engine
- your project is pinned to Python < 3.9
- you only need a simple low-level socket transport (use httpcore)

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

## Member repositories
- encode/httpx (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:09.831267+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-29T17:05:53.230794+00:00, confidence not recorded.
  - readme: https://github.com/encode/httpx (fetched 2026-08-28T04:11:09.831267+00:00, sha 9d6bb5d7e0e1)
  - homepage: https://www.python-httpx.org/ (fetched 2026-08-29T08:04:01.851050+00:00, sha 9f959f7b15b2)
  - site_page: https://www.python-httpx.org/quickstart (fetched 2026-08-29T08:04:01.860454+00:00, sha c579d863a601)
  - registry_pypi: https://pypi.org/pypi/httpx/json (fetched 2026-08-29T08:04:01.862835+00:00, sha b8156fd9969e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
