Skip to main content

proto4webrtc (Python)

Typed mediasoup producer runtime (pymediasoup) for code generated from protobuf messages annotated with proto4webrtc options. The TypeScript consumer counterpart is the npm package protoc-gen-proto4webrtc-ts.

pip install proto4webrtc              # runtime only (ship this)
pip install proto4webrtc[compiler]    # + the code generator (build time)
python -m proto4webrtc_codegen --proto path/to/protos --out out/
from proto4webrtc_gen import Proto4WebrtcProducer, Telemetry

client = Proto4WebrtcProducer(signaling_url="ws://localhost:3000/api/sfu")
client.run_forever()  # blocking: connects, reconnects on drop, until stop()

client.telemetry.send(Telemetry(stamp=time.time(), value0=0.4))

Proto4WebrtcProducer owns the whole client — signaling, device/transport setup, and the reconnect loop. send()/push() are safe to call from any thread, anytime (a no-op before the first connection).

Streams declared lazy are produced only while a consumer keeps pinging "<label>-pings"; the runtime starts and stops them for you. Test client.<stream>.producing to skip the work behind a message while nobody is watching.

The generator lives in the separate distribution proto4webrtc-codegen (pulled in by the [compiler] extra), so production images can install the runtime alone.

Full docs: https://github.com/Emil1483/proto4webrtc

Metadata

Release files for proto4webrtc 1.12.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 proto4webrtc 1.12.0
File Size Uploaded Provenance Actions
proto4webrtc-1.12.0.tar.gz 33.7 kB Without provenance Details for proto4webrtc-1.12.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for proto4webrtc 1.12.0
File Interpreter ABI Platform Actions
proto4webrtc-1.12.0-py3-none-any.whl Python 3 none any Details for proto4webrtc-1.12.0-py3-none-any.whl

Total release size: 62.0 kB

Release files / proto4webrtc-1.12.0.tar.gz

Download URL proto4webrtc-1.12.0.tar.gz
Size 33.7 kB
Tags Source
SHA-256 checksum
How to use checksums
03541a42f50a664f0a9c3a057afd21414e6502baf5ad71e206aaa49a8c4396f8
BLAKE2b-256 checksum
How to use checksums
78db3610ff69d10e3717e9c1542b19eb9b07150e0aacbb3c214799be1e226a9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.14.7 Linux/7.2.5-3-omarchy

Release files / proto4webrtc-1.12.0-py3-none-any.whl

Download URL proto4webrtc-1.12.0-py3-none-any.whl
Size 28.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
572c88a7b1f11fd42f84b633b4b20a2efb5004079606b96b27748b7f6279e61a
BLAKE2b-256 checksum
How to use checksums
2e6c9a504bc0f93ce67be68d44f85177e75f74d7ca524693a01841a1aa9ae660
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.14.7 Linux/7.2.5-3-omarchy

Security for proto4webrtc 1.12.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

1.12.0 This release

2 release files No 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