fastgrpc3-transport
A gRPC server transport for fastgrpc3 on
tonic (Rust, tokio), with the handlers still written in
Python. HTTP/2, gRPC framing, TLS, compression and flow control run in Rust; the asyncio
loop receives the calls by batches and runs them through fastgrpc3's own runtime, so
services, dependencies, hooks, middlewares and errors behave as on grpc.aio.
Status: experimental. Wheels for Linux (x86_64, aarch64), macOS (arm64, x86_64) and Windows (x86_64), CPython 3.12 to 3.14, each tested in CI, on PyPI. See
KNOWN_ISSUES.mdand the parity matrixdocs/PARITY.md.
Use it
You do not import this package: fastgrpc3 selects it.
pip install "fastgrpc3[tonic]"
fastgrpc3 run myapp.main:app --transport tonic
or FASTGRPC_TRANSPORT=tonic, or GrpcApp(..., transport="tonic").
On one core, fastgrpc3 serves a unary echo 8 to 14 times faster on tonic than on
grpc.aio under concurrency (16 to 64 clients; 62,000 calls/s on small messages), with up
to 17 times less CPU per call, and about 2 times faster with one client
(bench/results/2026-10-30-lot9.md).
Layout
| Path | What |
|---|---|
src/python.rs |
the PyO3 extension fastgrpc3_transport: Server, the routes, the event queue shared by tokio and asyncio (take), Call (answers, streams, metadata, deadline, peer) |
src/peer.rs |
the mTLS client identity and auth_context, with grpc's keys |
src/echo.rs, src/bin/echo.rs |
a pure-Rust server answering every unary call with its request bytes: the transport's ceiling |
fastgrpc3_transport.pyi |
the extension's types |
docs/ARCHITECTURE.md |
how a call travels between tokio and asyncio |
docs/PARITY.md |
each common feature with grpc.aio, its test, and the differences |
tests/ |
the echo server through a tonic client (cargo test), the bridge through a grpc.aio client (pytest) |
bench/ |
benchmarks against grpc.aio, and their results |
fastgrpc3's side is src/fastgrpc3/transport/tonic.py in its repository; its test suite
runs on both transports.
Build and test
With a Rust toolchain and maturin, next to a checkout of
fastgrpc3 (../fastgrpc):
cargo fmt --all -- --check
cargo clippy --all-targets --features python -- -D warnings
cargo test --all-targets
# This checkout into fastgrpc3's environment (`uv sync --extra tonic` there installs the
# version on PyPI instead); add `--features variant-a` for the variant A benchmark.
maturin build --release -i ../fastgrpc/.venv/bin/python --out dist
uv pip install --python ../fastgrpc/.venv --reinstall dist/fastgrpc3_transport-*.whl
../fastgrpc/.venv/bin/python -m pytest ../fastgrpc/tests # fastgrpc3, on both transports
../fastgrpc/.venv/bin/python -m pytest tests/python
Benchmark
bench/s4_bench.py reuses fastgrpc3's harness (benches/e2e_bench.py): each server is
pinned to CPUs, ghz loads it from others with pre-encoded requests.
cargo build --release --bin echo
../fastgrpc/.venv/bin/python bench/s4_bench.py --servers raw fastgrpc3 tonic-echo tonic-B
../fastgrpc/.venv/bin/python bench/stream_bench.py
fastgrpc3 itself on each transport: FASTGRPC_TRANSPORT=tonic python benches/e2e_bench.py --modes fastgrpc3 in its repository.
License
MIT.
Metadata
Release files for fastgrpc3-transport 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastgrpc3_transport-0.1.1.tar.gz | 84.9 kB | With provenance | Details for fastgrpc3_transport-0.1.1.tar.gz |
Built distributions (wheels)
Total release size: 26.3 MB
Release files / fastgrpc3_transport-0.1.1.tar.gz
| Download URL | fastgrpc3_transport-0.1.1.tar.gz |
|---|---|
| Size | 84.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9db3b5260bd2e81936eb579079a1c04041d0a98809ade9ea0908da56a9bd9fa6
|
|
BLAKE2b-256 checksum How to use checksums |
581ece005da637edf8c2018947cb2c36eaea2de3dd9367ee55f07860510fa32c
|
| 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 2, 2026.
Transparency logRelease files / fastgrpc3_transport-0.1.1-cp314-cp314-win_amd64.whl
| Download URL | fastgrpc3_transport-0.1.1-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
59c3bb6c944c4467c73a1857065ff9a5f2a7852c7fb8bced0ed9ee8b0cab5af8
|
|
BLAKE2b-256 checksum How to use checksums |
2e98b671e156f48e5755d0442c529559e8b23e7fccd263705ec1f459c58111e0
|
| 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 2, 2026.
Transparency logRelease files / fastgrpc3_transport-0.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | fastgrpc3_transport-0.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.14 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
726bb565fcc92e88bc5ccf28794431ac9c5a4eb8bc4c53a3270542abb876ba96
|
|
BLAKE2b-256 checksum How to use checksums |
45ca037a72fa6d0dc1bfa30d2f2543f8b180a255bb81885a22cd733ac60d9e4e
|
| 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 2, 2026.
Transparency logRelease files / fastgrpc3_transport-0.1.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | fastgrpc3_transport-0.1.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.14 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
8fe43a1f17e7f4325bd35b86f62f5ac9051e35d2876aacd380764bbf0121bd80
|
|
BLAKE2b-256 checksum How to use checksums |
c82401898f8bf270a5e441265c29900f93f8f190b698a29612b59f25966dc939
|
| 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 2, 2026.
Transparency logRelease files / fastgrpc3_transport-0.1.1-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | fastgrpc3_transport-0.1.1-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
43899ca7333e80d4a91b693c1e1b7ef21f3561ee5999afa9a5ee5364aa9dba21
|
|
BLAKE2b-256 checksum How to use checksums |
0caa7765dbd0d8c502a0e4f6c02cb561e279f75367cde55964a0ab5ef2a7d05d
|
| 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 2, 2026.
Transparency logRelease files / fastgrpc3_transport-0.1.1-cp314-cp314-macosx_10_12_x86_64.whl
| Download URL | fastgrpc3_transport-0.1.1-cp314-cp314-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.14 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
78135d254c52ecb771534747659c253abb913a65e33c287f860b142a8523d92c
|
|
BLAKE2b-256 checksum How to use checksums |
634cf7f0a8585e069881cc82f64e58fa7c671c825138c163b9611fe865151b09
|
| 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 2, 2026.
Transparency logRelease files / fastgrpc3_transport-0.1.1-cp313-cp313-win_amd64.whl
| Download URL | fastgrpc3_transport-0.1.1-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f5730a0f702b0d18e1b0003d593f4baa60729025a0689528b89b97c55f573628
|
|
BLAKE2b-256 checksum How to use checksums |
700b07c5404ad44a69223048ab93252d145830992bfbf18c1e588cf35160fbe5
|
| 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 2, 2026.
Transparency logRelease files / fastgrpc3_transport-0.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | fastgrpc3_transport-0.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
67f383b4a16fbd33017afbd51261414f9388ffc0f40ad45a71adfa75bdd35723
|
|
BLAKE2b-256 checksum How to use checksums |
23ba0bacc776bceb6681e44d408a2734ed126a6b4287fcf14a303aa778b4e419
|
| 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 2, 2026.
Transparency logRelease files / fastgrpc3_transport-0.1.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | fastgrpc3_transport-0.1.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
aa1ebde1c2857a9114bfcec703cc81ca0536f920404af757b274473f9555f550
|
|
BLAKE2b-256 checksum How to use checksums |
cb3abc03cd4edc6c7556ac30edaceeb13f915128cd95aff0535b0659858054f9
|
| 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 2, 2026.
Transparency logRelease files / fastgrpc3_transport-0.1.1-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | fastgrpc3_transport-0.1.1-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
81e008cf0b4f939063f8cc654792d406e400e1de818733eb4e19df57310fb05a
|
|
BLAKE2b-256 checksum How to use checksums |
974cc0104ab7a31251be18ab9f117104519ef586cee56fedc0dfaa83fdc6558a
|
| 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 2, 2026.
Transparency logRelease files / fastgrpc3_transport-0.1.1-cp313-cp313-macosx_10_12_x86_64.whl
| Download URL | fastgrpc3_transport-0.1.1-cp313-cp313-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.13 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
0af98843fb9d8cb765a94b10d3570fe4cacd1faf733b5d6fd8b210c9a63972b3
|
|
BLAKE2b-256 checksum How to use checksums |
9df2ceb82d147157d484279c3815e51de9ff5c80605296ac8916ab3ec0ea9915
|
| 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 2, 2026.
Transparency logRelease files / fastgrpc3_transport-0.1.1-cp312-cp312-win_amd64.whl
| Download URL | fastgrpc3_transport-0.1.1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1333c6f5b75109c50457ead0221c5c803415f1fc9a2559faecc1d39c502e03a6
|
|
BLAKE2b-256 checksum How to use checksums |
dfcc601fa00ea30954bd69b8b74a76390be694aa98f29c9039aea36f6ae6c478
|
| 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 2, 2026.
Transparency logRelease files / fastgrpc3_transport-0.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | fastgrpc3_transport-0.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
c468225d0bb299b3e52dcc9fa0aeb4a6bd16d446f83748a50baa964066121412
|
|
BLAKE2b-256 checksum How to use checksums |
2dfe6572de8b40c7243d37cca8444cb28e8ebbd96cc95b9e4e1e1d5f9d47b76c
|
| 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 2, 2026.
Transparency logRelease files / fastgrpc3_transport-0.1.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | fastgrpc3_transport-0.1.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
dccc3d8852ceb1af04e397b6ce9a7b70140a815b6c191bec205586f72e488ae2
|
|
BLAKE2b-256 checksum How to use checksums |
46fbaad425e45286d88b1fc8dfb1103694eac4b0a3518f1d6a78d73b99671f36
|
| 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 2, 2026.
Transparency logRelease files / fastgrpc3_transport-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | fastgrpc3_transport-0.1.1-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f92d1ce053fb226d3522db215e821eb763832e99a032301070b585d03e084343
|
|
BLAKE2b-256 checksum How to use checksums |
e925bb3b080bc22b0f1f104fc7512e4481c1074f27b1ffe254eb777dca0dcd84
|
| 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 2, 2026.
Transparency logRelease files / fastgrpc3_transport-0.1.1-cp312-cp312-macosx_10_12_x86_64.whl
| Download URL | fastgrpc3_transport-0.1.1-cp312-cp312-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.12 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
25c9a33d120ea53c56f29902fcc4b9082493eed046bde186366f5f0212e97973
|
|
BLAKE2b-256 checksum How to use checksums |
9c8cd9eaea8937da0ad60543dab1fe8d55702c5cb0aedc6b421200a73f6e1774
|
| 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 2, 2026.
Transparency logSecurity for fastgrpc3-transport 0.1.1
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 16 files in this release have been uploaded with provenance metadata.
Attestation for fastgrpc3_transport-0.1.1.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 2, 2026.
Transparency logA 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.