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.
Pass --ros-package my_interfaces to python -m proto4webrtc_codegen or
python -m proto4webrtc_codegen.cpp to generate the conversions too:
message.to_ros() returns the ROS2 message, and
build_<message>_proto_from_ros(ros_message) returns the proto one.
Full docs (CMake boilerplate, the mapping, and what it refuses to translate): https://github.com/Emil1483/proto4webrtc
Full docs: https://github.com/Emil1483/proto4webrtc
Metadata
Release files for proto4webrtc-codegen 1.12.0
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 |
|---|---|---|---|---|
| proto4webrtc_codegen-1.12.0.tar.gz | 53.4 kB | Without provenance | Details for proto4webrtc_codegen-1.12.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| proto4webrtc_codegen-1.12.0-py3-none-any.whl | Python 3 | none | any | Details for proto4webrtc_codegen-1.12.0-py3-none-any.whl |
Total release size: 108.4 kB
Release files / proto4webrtc_codegen-1.12.0.tar.gz
| Download URL | proto4webrtc_codegen-1.12.0.tar.gz |
|---|---|
| Size | 53.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b828b507f5a9c20531e6ca1f02762df3fb008e1cc522152e4c828446d6d55ec
|
|
BLAKE2b-256 checksum How to use checksums |
dc064f393badc0cc5b3d83a342f410eb3e63ae66a18b4a6a07b2edf969b310fc
|
| 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_codegen-1.12.0-py3-none-any.whl
| Download URL | proto4webrtc_codegen-1.12.0-py3-none-any.whl |
|---|---|
| Size | 55.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c271700feb922164737de7222cb98fa578c0fdbe8aa8d87d7690de4ed543e9fd
|
|
BLAKE2b-256 checksum How to use checksums |
cb8bbdaca6cd4409b45f1b27c98022bfcca1c9767a3592ca744e2197975f08fd
|
| 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-codegen 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.