Generate mediasoup producer code (pymediasoup) from proto4webrtc-annotated protofiles
Project description
proto4webrtc (Python)
Generates typed mediasoup producer code
(pymediasoup) from protobuf messages annotated with proto4webrtc options.
The TypeScript consumer counterpart is the npm package
protoc-gen-proto4webrtc-ts.
pip install proto4webrtc
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).
Also installs the raw protoc plugin protoc-gen-proto4webrtc_python
(--proto4webrtc_python_out).
Full docs: https://github.com/Emil1483/proto4webrtc
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 Distribution
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 proto4webrtc-0.4.0.tar.gz.
File metadata
- Download URL: proto4webrtc-0.4.0.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed712207bf3cc50471883715dd7f4f471f62b33759e54ace3c7dc3603da10c27
|
|
| MD5 |
8d89c9e5c4c9c5d99722f0fb8e9d81bb
|
|
| BLAKE2b-256 |
a0b3e69e1e0f750c861b90d776bd1cd04e6effc80445708cfac8ac1529ffc555
|
File details
Details for the file proto4webrtc-0.4.0-py3-none-any.whl.
File metadata
- Download URL: proto4webrtc-0.4.0-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8d86f0e95ac42194830f655148caf92ed77a506df2d29b7625b264d6de44d2c
|
|
| MD5 |
ae9a689f32e724d68dfb051392e82ea1
|
|
| BLAKE2b-256 |
1da0204b10c99c9312338fb463a22abd28fe25d33525bd233e35a15ae5d3ecbd
|