Skip to main content

rh2

A Rust-backed, sans-IO HTTP/2 codec for Python, wrapping the h2 crate (the HTTP/2 implementation behind hyper/reqwest) via PyO3.

The h2 crate drives a connection over an async transport; rh2 runs it sans-IO by backing that transport with in-memory buffers and pumping the state machine by hand. The Python API mirrors hyper-h2:

import rh2

conn = rh2.H2Connection()
events = conn.receive_data(data_from_socket)
for event in events:
    if isinstance(event, rh2.RequestReceived):
        conn.send_headers(event.stream_id, 200, [(b"content-type", b"text/plain")])
        conn.send_data(event.stream_id, b"hello", end_stream=True)
socket.sendall(conn.data_to_send())

Status

Experimental. Server-side only.

Metadata

Release files for rh2 0.0.2

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

Source distribution (sdist)

Source distribution for rh2 0.0.2
File Size Uploaded
rh2-0.0.2.tar.gz 11.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for rh2 0.0.2
File
rh2-0.0.2-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
rh2-0.0.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details
rh2-0.0.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
rh2-0.0.2-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details

Total release size: 1.6 MB

Release files / rh2-0.0.2.tar.gz

Download URL rh2-0.0.2.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5c3b45f87aa2a3e3be6c39628553edd3ca1a1d5d8e6a086b305f07c2819c9ebe
BLAKE2b-256 checksum
How to use checksums
6f949ca8dd007a64edadbb49f2e16907474ed22c0cd8a0e4a04f63c17a0225e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 6, 2026.

Transparency log

Release files / rh2-0.0.2-cp39-abi3-win_amd64.whl

Download URL rh2-0.0.2-cp39-abi3-win_amd64.whl
Size 317.6 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
4ec195ef991ecdd99918f5914d0b72560b35b6be4d408505ad540f2ffe17630d
BLAKE2b-256 checksum
How to use checksums
94d5940a3d3a86ba69a63532da3f431aa6b52116d0a5a46ba18439e11546a22c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 6, 2026.

Transparency log

Release files / rh2-0.0.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL rh2-0.0.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 434.5 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
9b18f95b17f20e41b295c69253c185cdc1123d9f426d867758379d12cc39db12
BLAKE2b-256 checksum
How to use checksums
9635b265e88d6837fd148c65586e80b46ed0c7f5b1ba2ba939d12301474cd6a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 6, 2026.

Transparency log

Release files / rh2-0.0.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL rh2-0.0.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 425.9 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
d0ce02e0156dffc490f722be892cefc6928392dd6dfe31c08a887ff2fba41876
BLAKE2b-256 checksum
How to use checksums
1cb3f0ad9267bb2b44bdc64fd818e8bdf892863a78cd49a710e6ae8df4371df3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 6, 2026.

Transparency log

Release files / rh2-0.0.2-cp39-abi3-macosx_11_0_arm64.whl

Download URL rh2-0.0.2-cp39-abi3-macosx_11_0_arm64.whl
Size 395.3 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5c3e7355695519591f7f10d19502b10988aee267d74f41407cc7bea21ce2ae55
BLAKE2b-256 checksum
How to use checksums
5847a4f82ea713423e00767fc71be3b077a9bd1eefda117ed51963425e10fe82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.2 This release

5 release files

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