Skip to main content

ph11-rs

CI PyPI Python Versions License: MIT

Fast drop-in replacement for h11 that speeds up HTTP/1.1 request and response parsing and serialization by up to 13.7x.

Install

pip install ph11-rs

Prebuilt wheels are included for Linux, macOS, and Windows (Python 3.9+, no Rust toolchain needed).

Usage

import ph11

conn = ph11.Connection(ph11.SERVER)
conn.receive_data(b"GET / HTTP/1.1\r\nHost: example.com\r\n\r\n")
request = conn.next_event()

Performance

Workload h11 ph11 (x86-64) ph11 (Apple M4)
Small Request (parse+send) 44.49 us 3.24 us (13.73x) 2.41 us (6.97x)
Medium Request (8 hdrs+256B) 57.71 us 4.23 us (13.64x) 3.34 us (6.92x)
Large Chunked Resp (16 KiB) 105.61 us 7.67 us (13.77x) 5.79 us (8.88x)

Under the hood

  • Written in Rust (PyO3) with zero external runtime dependencies and runtime SIMD dispatch (AVX2 / SSE2 / ARM64 NEON)
  • Compact cp39-abi3 wheel with PEP 561 type stubs (py.typed + __init__.pyi)
  • Verified with Hypothesis differential fuzzing against h11, 8-thread concurrency tests, and tracemalloc leak checks

License

MIT

Metadata

Release files for ph11-rs 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ph11-rs 0.1.0
File Size Uploaded Provenance Actions
ph11_rs-0.1.0.tar.gz 32.4 kB With provenance Details for ph11_rs-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ph11-rs 0.1.0
File Actions
ph11_rs-0.1.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for ph11_rs-0.1.0-cp39-abi3-win_amd64.whl
ph11_rs-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details for ph11_rs-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
ph11_rs-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details for ph11_rs-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
ph11_rs-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for ph11_rs-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
ph11_rs-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for ph11_rs-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
ph11_rs-0.1.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for ph11_rs-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
ph11_rs-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for ph11_rs-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 2.4 MB

Release files / ph11_rs-0.1.0.tar.gz

Download URL ph11_rs-0.1.0.tar.gz
Size 32.4 kB
Tags Source
SHA-256 checksum
How to use checksums
559f9f95b43aa4b8facc5b3a02e2f18fd4c56baadca97f12d3d01e639ed33fe4
BLAKE2b-256 checksum
How to use checksums
f95db447daead7e768ccf9478c73afbbbc77ef2d12650d77ad64f6c7bcf5379b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / ph11_rs-0.1.0-cp39-abi3-win_amd64.whl

Download URL ph11_rs-0.1.0-cp39-abi3-win_amd64.whl
Size 222.7 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
853499095fdbb795d1a3386e8c0710a7f33177d0aa2f2c4bd6b0d2513ff22878
BLAKE2b-256 checksum
How to use checksums
ae8ca72e77a67502dfbdf30547b81fb3e12a224420cf31a3fab453642a4f7560
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / ph11_rs-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL ph11_rs-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
Size 443.8 kB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
ebce043b31880b6f048e7e4f54fba8344a6b9ea665cf060437ef8f1c98f00570
BLAKE2b-256 checksum
How to use checksums
027048651168f25ffa3501adfe9d0242cdbfb2d92da772cc80ab390b22fb1c0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / ph11_rs-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL ph11_rs-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
Size 429.0 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
9e2e712a4e4bee91f436bb4ba5ab1f0e8977ec6c46e8a79344ef66c43a46018c
BLAKE2b-256 checksum
How to use checksums
cb058abaf93b4cb74585684792e4f7c5d389a7a86ab37ea4601fc099a0b32564
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / ph11_rs-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL ph11_rs-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 339.0 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
7069103b4e8a67cafa26d98e0eaf0cafef979196c47655264c9dc60ac8857a0c
BLAKE2b-256 checksum
How to use checksums
9ec32165db77bf1f36059eb8dd6b4aeedeeb6185128808f7be00ee193fe0945a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / ph11_rs-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL ph11_rs-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 333.2 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
4f3d9b80a2eb6ea49ec5e337456a9a56ebfbd54caed7ef6a44e76004709a9844
BLAKE2b-256 checksum
How to use checksums
d0af6cab80e8ea230cefb9c4a30c26c1a8ac7bc80f4b07ca674c89d9ca278129
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / ph11_rs-0.1.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL ph11_rs-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
Size 304.8 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2fa454a54fb4e6d0b9d834c5769b93168628a0e888c2811860422fe20e90d15c
BLAKE2b-256 checksum
How to use checksums
4d88d158110db723bda865c750e744b8e2717ea82eca1d73a8c13e8292b4a58c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / ph11_rs-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL ph11_rs-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 319.0 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
0cf9f39060b81edfa3613461342adaa862d39ea33fc0ec832078d5b651a6a644
BLAKE2b-256 checksum
How to use checksums
e8a40a36ccd8688af8e45af235fa2a4624257345cbb346525bfb940cf27b56b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for ph11-rs 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 8 files in this release have been uploaded with provenance metadata.

Select from 8 files

Attestation for ph11_rs-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

8 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page