proto4webrtc-codegen
Generates typed mediasoup producer code
(pymediasoup) from protobuf messages annotated with proto4webrtc options.
The generated code runs on the proto4webrtc pip package (the runtime),
which this distribution deliberately does not depend on — generate at build
time, ship only the runtime:
pip install proto4webrtc[compiler] # runtime + this generator
python -m proto4webrtc_codegen --proto path/to/protos --out out/
Writes proto4webrtc_gen/producers.py under --out (plus an __init__.py
re-export). proto4webrtc/options.proto is bundled, so your proto root only
needs to import it.
Also installs the raw protoc plugin protoc-gen-proto4webrtc_python
(--proto4webrtc_python_out).
ROS2 interfaces
proto4webrtc_codegen.ros2 renders ROS2 .msg/.srv from the same protos, so
an ament interface package can be generated at colcon build time instead of
hand-maintained. Optional and dependency-free — nothing imports it unless you
do — and the proto4webrtc annotations are not required, so it also works on
plain protos:
python -m proto4webrtc_codegen.ros2 --proto path/to/protos --out src/my_interfaces
Writes msg/<Message>.msg and srv/<RpcMethod>.srv under --out, removing
generated files that are no longer produced and leaving hand-written ones alone.
Full docs (CMake boilerplate, the mapping, and what it refuses to translate):
https://github.com/Emil1483/proto4webrtc
Full docs: https://github.com/Emil1483/proto4webrtc
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_codegen-1.10.0.tar.gz.
File metadata
- Download URL: proto4webrtc_codegen-1.10.0.tar.gz
- Upload date:
- Size: 31.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.4.1 CPython/3.13.0 Linux/6.1.0-51-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7db5a2d75a3239b033451e7cc891930e70eb17f3df61120496887d1d65a1ead5
|
|
| MD5 |
f864fd8e8b8484fe4fb3fc390b21e841
|
|
| BLAKE2b-256 |
c545f52ed83c67b1257f40167501a5d67e5f6095c3c45b178f8d95c250350c9f
|
File details
Details for the file proto4webrtc_codegen-1.10.0-py3-none-any.whl.
File metadata
- Download URL: proto4webrtc_codegen-1.10.0-py3-none-any.whl
- Upload date:
- Size: 70.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.4.1 CPython/3.13.0 Linux/6.1.0-51-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1b31227d217713da057525bd69c450762674a0216c9354eace4fb979f6a7a56
|
|
| MD5 |
ec41c66f79005d8a75e5c9d50b1cb20b
|
|
| BLAKE2b-256 |
ed1feacbc080108ed02c09c159afafacb747e71924765caf6e3d71e1ea5645f7
|