httptools
A collection of framework independent HTTP protocol utils.
Decision gist · record as of 2026-08-14
Yes. httptools is actively maintained, carries no known vulnerabilities, uses a permissive MIT license, and ranks in the top 1000 PyPI packages by download volume. It is worth installing if you need fast, callback-driven HTTP parsing in a custom framework or protocol handler. The medium install friction (compiled wheels) is standard for performance-critical C-bound libraries and is well-mitigated by pre-built wheels for common platforms.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; compiled wheels are provided for common platforms but source builds require a C compiler.
- Medium install friction due to compiled wheels for multiple Python versions and platforms.
- The package is actively maintained with recent releases and no known vulnerabilities.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects with minimal attribution requirements.
last release 2026-05-25 (81 days) · last repo commit 2026-05-25 · 1,322 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 250,228,975 downloads/mo, #157 on PyPI
Alternatives
Verify before relying
pip install httptools
import httptools
class Protocol:
def on_message_begin(self): pass
def on_url(self, url): pass
def on_headers_complete(self): pass
def on_message_complete(self): pass
parser = httptools.HttpRequestParser(Protocol())
parser.feed_data(b'GET / HTTP/1.1\r\nHost: example.com\r\n\r\n')- Whether the package's performance characteristics (speed vs. pure-Python parsers) are documented or benchmarked.
- Compatibility with async frameworks beyond what the description excerpt shows.
What it is and what it does
httptools wraps the Node.js HTTP parser (llhttp) and http-parser libraries to provide fast, standards-compliant HTTP request and response parsing in Python. It exposes two main parser classes—HttpRequestParser and HttpResponseParser—that accept callback-based protocol objects and emit parsed data through methods like on_url, on_header, on_body, and on_message_complete. It also includes a parse_url function for structured URL decomposition.
The package is designed for frameworks and applications that need efficient HTTP parsing without reimplementing the protocol logic. It has no runtime dependencies and is actively maintained, supporting Python 3.9 and later across macOS, Linux, and Windows platforms. The callback-driven API allows integration into event-driven or streaming HTTP processing pipelines.
Use it for
- Parsing incoming HTTP requests in a custom web server or async framework.
- Extracting structured data from raw HTTP response streams in a client library.
- Decomposing URLs into components (schema, host, port, path, query, fragment) for routing or validation.
- Building protocol handlers that need to detect HTTP upgrade requests or manage keep-alive connections.
- Streaming HTTP body data through callbacks without buffering entire messages in memory.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
httptools is actively maintained, carries no known vulnerabilities, uses a permissive MIT license, and ranks in the top 1000 PyPI packages by download volume. It is worth installing if you need fast, callback-driven HTTP parsing in a custom framework or protocol handler. The medium install friction (compiled wheels) is standard for performance-critical C-bound libraries and is well-mitigated by pre-built wheels for common platforms.
Install
httptools on PyPI
Before you install
Medium install friction due to compiled wheels for multiple Python versions and platforms. The package is actively maintained with recent releases and no known vulnerabilities.
Requires Python 3.9 or later; compiled wheels are provided for common platforms but source builds require a C compiler.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects with minimal attribution requirements.
Quickstart
pip install httptools
import httptools
class Protocol:
def on_message_begin(self): pass
def on_url(self, url): pass
def on_headers_complete(self): pass
def on_message_complete(self): pass
parser = httptools.HttpRequestParser(Protocol())
parser.feed_data(b'GET / HTTP/1.1\r\nHost: example.com\r\n\r\n')
Verify before relying
- Whether the package's performance characteristics (speed vs. pure-Python parsers) are documented or benchmarked.
- Compatibility with async frameworks beyond what the description excerpt shows.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 81 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 250,228,975 / month, #157 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 EnvironmentIntended Audience :: DevelopersOperating System :: MacOS :: MacOS XOperating System :: POSIXProgramming Language :: Python :: 3 |
Evidence: httptools-0.8.0-cp310-cp310-macosx_10_9_universal2.whl; httptools-0.8.0-cp310-cp310-macosx_11_0_arm64.whl; httptools-0.8.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; httptools-0.8.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; httptools-0.8.0-cp310-cp310-musllinux_1_2_aarch64.whl; httptools-0.8.0-cp310-cp310-musllinux_1_2_x86_64.whl; httptools-0.8.0-cp310-cp310-win_amd64.whl; httptools-0.8.0-cp311-cp311-macosx_10_9_universal2.whl; httptools-0.8.0-cp311-cp311-macosx_11_0_arm64.whl; httptools-0.8.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; httptools-0.8.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; httptools-0.8.0-cp311-cp311-musllinux_1_2_aarch64.whl; httptools-0.8.0-cp311-cp311-musllinux_1_2_x86_64.whl; httptools-0.8.0-cp311-cp311-win_amd64.whl; httptools-0.8.0-cp312-cp312-macosx_10_13_universal2.whl; httptools-0.8.0-cp312-cp312-macosx_11_0_arm64.whl; httptools-0.8.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; httptools-0.8.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; httptools-0.8.0-cp312-cp312-musllinux_1_2_aarch64.whl; httptools-0.8.0-cp312-cp312-musllinux_1_2_x86_64.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 › “HTTP response parser”
- httptoolshttptools provides Python bindings for parsing HTTP requests and…
- cookiesParses and renders HTTP Cookie and Set-Cookie headers according to…
- sseclient-pyParses Server-Sent Events (SSE) from HTTP response streams, yielding…
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.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
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.
See also git-url-parse · wadllib · urllib3-mock · responses · hatch-nodejs-version · httplib2 · gunicorn_h1c · s3urls · geventhttpclient