Rust-backed sans-IO HTTP/2 codec for Python, wrapping the h2 crate
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rh2-0.0.2.tar.gz.
File metadata
- Download URL: rh2-0.0.2.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c3b45f87aa2a3e3be6c39628553edd3ca1a1d5d8e6a086b305f07c2819c9ebe
|
|
| MD5 |
dd2b5736d0b21270554cc5dd76c09dc2
|
|
| BLAKE2b-256 |
6f949ca8dd007a64edadbb49f2e16907474ed22c0cd8a0e4a04f63c17a0225e1
|
Provenance
The following attestation bundles were made for rh2-0.0.2.tar.gz:
Publisher:
publish.yml on Kludex/rh2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rh2-0.0.2.tar.gz -
Subject digest:
5c3b45f87aa2a3e3be6c39628553edd3ca1a1d5d8e6a086b305f07c2819c9ebe - Sigstore transparency entry: 2084241170
- Sigstore integration time:
-
Permalink:
Kludex/rh2@1406bc5afb5a90ce2baed96daed89bdc1ebfd9a7 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/Kludex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1406bc5afb5a90ce2baed96daed89bdc1ebfd9a7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rh2-0.0.2-cp39-abi3-win_amd64.whl.
File metadata
- Download URL: rh2-0.0.2-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 317.6 kB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ec195ef991ecdd99918f5914d0b72560b35b6be4d408505ad540f2ffe17630d
|
|
| MD5 |
ab9f1f106160ebe85bb2b516e532c5aa
|
|
| BLAKE2b-256 |
94d5940a3d3a86ba69a63532da3f431aa6b52116d0a5a46ba18439e11546a22c
|
Provenance
The following attestation bundles were made for rh2-0.0.2-cp39-abi3-win_amd64.whl:
Publisher:
publish.yml on Kludex/rh2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rh2-0.0.2-cp39-abi3-win_amd64.whl -
Subject digest:
4ec195ef991ecdd99918f5914d0b72560b35b6be4d408505ad540f2ffe17630d - Sigstore transparency entry: 2084241198
- Sigstore integration time:
-
Permalink:
Kludex/rh2@1406bc5afb5a90ce2baed96daed89bdc1ebfd9a7 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/Kludex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1406bc5afb5a90ce2baed96daed89bdc1ebfd9a7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rh2-0.0.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rh2-0.0.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 434.5 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b18f95b17f20e41b295c69253c185cdc1123d9f426d867758379d12cc39db12
|
|
| MD5 |
8813e783055f36120d720f2c0c154d93
|
|
| BLAKE2b-256 |
9635b265e88d6837fd148c65586e80b46ed0c7f5b1ba2ba939d12301474cd6a7
|
Provenance
The following attestation bundles were made for rh2-0.0.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
publish.yml on Kludex/rh2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rh2-0.0.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
9b18f95b17f20e41b295c69253c185cdc1123d9f426d867758379d12cc39db12 - Sigstore transparency entry: 2084241204
- Sigstore integration time:
-
Permalink:
Kludex/rh2@1406bc5afb5a90ce2baed96daed89bdc1ebfd9a7 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/Kludex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1406bc5afb5a90ce2baed96daed89bdc1ebfd9a7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rh2-0.0.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: rh2-0.0.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 425.9 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0ce02e0156dffc490f722be892cefc6928392dd6dfe31c08a887ff2fba41876
|
|
| MD5 |
91ef4234888ee14f62755627f836dfef
|
|
| BLAKE2b-256 |
1cb3f0ad9267bb2b44bdc64fd818e8bdf892863a78cd49a710e6ae8df4371df3
|
Provenance
The following attestation bundles were made for rh2-0.0.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
publish.yml on Kludex/rh2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rh2-0.0.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
d0ce02e0156dffc490f722be892cefc6928392dd6dfe31c08a887ff2fba41876 - Sigstore transparency entry: 2084241210
- Sigstore integration time:
-
Permalink:
Kludex/rh2@1406bc5afb5a90ce2baed96daed89bdc1ebfd9a7 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/Kludex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1406bc5afb5a90ce2baed96daed89bdc1ebfd9a7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rh2-0.0.2-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: rh2-0.0.2-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 395.3 kB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c3e7355695519591f7f10d19502b10988aee267d74f41407cc7bea21ce2ae55
|
|
| MD5 |
1579f6264e455842e25f1468073e7e4f
|
|
| BLAKE2b-256 |
5847a4f82ea713423e00767fc71be3b077a9bd1eefda117ed51963425e10fe82
|
Provenance
The following attestation bundles were made for rh2-0.0.2-cp39-abi3-macosx_11_0_arm64.whl:
Publisher:
publish.yml on Kludex/rh2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rh2-0.0.2-cp39-abi3-macosx_11_0_arm64.whl -
Subject digest:
5c3e7355695519591f7f10d19502b10988aee267d74f41407cc7bea21ce2ae55 - Sigstore transparency entry: 2084241180
- Sigstore integration time:
-
Permalink:
Kludex/rh2@1406bc5afb5a90ce2baed96daed89bdc1ebfd9a7 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/Kludex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1406bc5afb5a90ce2baed96daed89bdc1ebfd9a7 -
Trigger Event:
release
-
Statement type: