# MagicStack/httptools

Fast HTTP parser

Repository: https://github.com/MagicStack/httptools
Canonical: https://ross.abutalabs.com/products/httptools
Language: Python
License: MIT
License Family: permissive
Last push: 2026-05-25T22:16:53+00:00

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

## Adoption (not part of the score)
Stars 1324, forks 104 (observed 2026-08-28T04:04:22.375126+00:00)

## What it is
httptools is a Python binding for Node.js's fast HTTP parsers (llhttp and http-parser), providing request/response parser classes and a URL parsing function. It is a framework-independent library designed for building high-performance HTTP servers and protocol tooling.

## Use cases
- parse http requests in python fast
- build a high-performance http server in python
- parse http responses from raw bytes
- parse urls into structured components
- handle chunked transfer encoding and http upgrades
- replace slow pure-python http parsing in an asyncio server

## When to choose
- you need maximum HTTP parsing speed in Python (e.g., uvicorn-style servers)
- you want callback-driven incremental parsing of streaming HTTP data
- you need framework-independent HTTP protocol utilities

## When to avoid
- you just need an HTTP client or full server framework rather than a low-level parser
- you prefer pure-Python code without C extension dependencies
- you need HTTP/2 or HTTP/3 support

## Facets
- artifact type: library
- maturity: stable
- function: parser, http-server, developer-tools
- domain: web-development, backend, apis, performance
- platform: python, cross-platform
- tags: http-parser, llhttp, binding, cython, asyncio-friendly

## Member repositories
- MagicStack/httptools (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:22.375126+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-30T04:46:40.702789+00:00, confidence not recorded.
  - readme: https://github.com/MagicStack/httptools (fetched 2026-08-28T04:04:22.375126+00:00, sha 7a01c1c52a59)
  - registry_pypi: https://pypi.org/pypi/httptools/json (fetched 2026-08-29T12:05:37.039935+00:00, sha 7e4392040cd0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
