Skip to main content

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

proto4webrtc_codegen-1.9.0.tar.gz (30.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

proto4webrtc_codegen-1.9.0-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

Details for the file proto4webrtc_codegen-1.9.0.tar.gz.

File metadata

  • Download URL: proto4webrtc_codegen-1.9.0.tar.gz
  • Upload date:
  • Size: 30.8 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

Hashes for proto4webrtc_codegen-1.9.0.tar.gz
Algorithm Hash digest
SHA256 f24cb849e05c3d3857963f4b723c660cf1606469443ef4f7bcf0e89122a7d6c1
MD5 07bef92cb7c6679c99431bc2d71fe14f
BLAKE2b-256 98111363643ba6119558a8425b9bc26d1cffe51777cd58f84193ce3d3a27e866

See more details on using hashes here.

File details

Details for the file proto4webrtc_codegen-1.9.0-py3-none-any.whl.

File metadata

  • Download URL: proto4webrtc_codegen-1.9.0-py3-none-any.whl
  • Upload date:
  • Size: 30.6 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

Hashes for proto4webrtc_codegen-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7af07ff07b8562a443091facbde0135d5b9e72ba306aea2be3fc5d2309e1d2cd
MD5 3a9a479f00c548df16f2db75ad9cfdad
BLAKE2b-256 3e7c2cd883565644f20717310b257aa663db9f5af490e46a6b7fe215a1793afa

See more details on using hashes here.

Release history Release notifications | RSS feed

1.11.2

2 files

1.11.1

2 files

1.11.0

2 files

1.10.3

2 files

1.10.2

2 files

1.10.1

2 files

1.10.0

2 files

This release

1.9.0 This release

2 files

1.8.3

2 files

1.8.2

2 files

1.8.1

2 files

1.8.0

2 files

1.7.4

2 files

1.7.3

2 files

1.7.2

2 files

1.7.1

2 files

1.7.0

2 files

1.6.0

2 files

1.5.1

2 files

1.5.0

2 files

1.4.1

2 files

1.4.0

2 files

1.3.2

2 files

1.3.1

2 files

1.3.0

2 files

1.2.0

2 files

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