This release is a pre-release and may not be stable for production use.
zenoh-grpc-python
Python bindings for zenoh-plugin-grpc.
Install
From this directory:
maturin develop
Or build a wheel:
maturin build
Or simply pip install:
pip install -e .
Start A Server First
Use either:
cargo run -p zenoh-bridge-grpc
or zenohd with the plugin loaded.
Minimal Example
import zenoh_grpc
with zenoh_grpc.Session.connect() as session:
pub = session.declare_publisher("demo/example", encoding="text/plain")
pub.put(b"hello", encoding="text/plain")
Session.connect() defaults to unix:///tmp/zenoh-grpc.sock, so the shortest form is:
with zenoh_grpc.Session.connect() as session:
...
Python-Style Optional Parameters
The binding keeps Python-style direct function calls and exposes extra gRPC options as optional keyword arguments. If you omit them, the plugin now falls back to Zenoh's native defaults instead of hard-coded wrapper defaults.
put/delete/reply* calls are enqueue-style: success means the request entered a local bounded queue. Slow receivers are also isolated behind local bounded queues, and when a queue is full the oldest item is dropped. Subscriber.dropped_count(), QueryStream.dropped_count(), ReplyStream.dropped_count(), Publisher.send_dropped_count(), and Queryable.send_dropped_count() expose those counters.
declare_subscriber(key_expr, callback=None, ...) and declare_queryable(key_expr, callback=None, ...) support inline callbacks. When a callback is provided, the binding runs it on a dedicated OS thread for that object and acquires the GIL for each event. Callback mode is exclusive with manual receive APIs. Queryables expose receiver() for pull mode, yielding a QueryStream that produces Query objects, and Session.get() / Querier.get() return iterable ReplyStream objects.
After replying to a query, call query.drop() when you are done, or use with receiver.recv() as query: so the query is finalized automatically on context-manager exit.
import zenoh_grpc
with zenoh_grpc.Session.connect() as session:
pub = session.declare_publisher(
"demo/example",
encoding="text/plain",
express=True,
)
pub.put(b"hello", encoding="text/plain")
for reply in session.get("demo/example", timeout_ms=3000):
if reply.ok:
print(reply.sample.key_expr, reply.sample.payload)
Supported endpoint formats:
unix:///tmp/zenoh-grpc.socktcp://127.0.0.1:7335
Examples
See:
examples/pub.pyexamples/sub.pyexamples/sub_callback.pyexamples/queryable.pyexamples/queryable_callback.pyexamples/querier.pyexamples/get.py
Metadata
Release files for zenoh-grpc 1.10.1.dev2026100601
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 |
|---|---|---|---|---|
| zenoh_grpc-1.10.1.dev2026100601.tar.gz | 44.0 kB | With provenance | Details for zenoh_grpc-1.10.1.dev2026100601.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zenoh_grpc-1.10.1.dev2026100601-cp38-abi3-manylinux_2_31_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.31+ x86-64 | Details for zenoh_grpc-1.10.1.dev2026100601-cp38-abi3-manylinux_2_31_x86_64.whl |
| zenoh_grpc-1.10.1.dev2026100601-cp38-abi3-manylinux_2_31_aarch64.whl | CPython 3.8 | abi3 | Linux glibc 2.31+ ARM64 | Details for zenoh_grpc-1.10.1.dev2026100601-cp38-abi3-manylinux_2_31_aarch64.whl |
Total release size: 4.1 MB
Release files / zenoh_grpc-1.10.1.dev2026100601.tar.gz
| Download URL | zenoh_grpc-1.10.1.dev2026100601.tar.gz |
|---|---|
| Size | 44.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26313bcfc97ead356906d7c70c687595e7c0986116c3181976b316d02eb2630e
|
|
BLAKE2b-256 checksum How to use checksums |
d0d07a4f41ade7a53e5ae34d932d0e9b556b6bd669b3e0846836b05cd2dad93e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 6, 2026.
Transparency logRelease files / zenoh_grpc-1.10.1.dev2026100601-cp38-abi3-manylinux_2_31_x86_64.whl
| Download URL | zenoh_grpc-1.10.1.dev2026100601-cp38-abi3-manylinux_2_31_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.8 Linux glibc 2.31+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
58ed97b05897da4120859eb68c1bbde20c20845e0d04c68beaf98482e7a980b8
|
|
BLAKE2b-256 checksum How to use checksums |
cdb4d76bd80c0be70336407b2e93a47d14bd127d49a8d0c50f2028b300e78f0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 6, 2026.
Transparency logRelease files / zenoh_grpc-1.10.1.dev2026100601-cp38-abi3-manylinux_2_31_aarch64.whl
| Download URL | zenoh_grpc-1.10.1.dev2026100601-cp38-abi3-manylinux_2_31_aarch64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.8 Linux glibc 2.31+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
01984739265dbaf923d07d839e99aaf94ae91c8bf54ea35217a7c9fdb61d4577
|
|
BLAKE2b-256 checksum How to use checksums |
90cbc49dc988c35bbdc6db975ab96ff74eabe98b4f712de1a8516db6b848a25a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 6, 2026.
Transparency logSecurity for zenoh-grpc 1.10.1.dev2026100601
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 3 files in this release have been uploaded with provenance metadata.
Attestation for zenoh_grpc-1.10.1.dev2026100601.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 Oct 6, 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.