Skip to main content

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 Telemetry, TelemetryProducer

producer = await TelemetryProducer.create(send_transport)
producer.send(Telemetry(stamp=time.time(), value0=0.4))

Also installs the raw protoc plugin protoc-gen-proto4webrtc_python (--proto4webrtc_python_out).

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

proto4webrtc-0.1.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

proto4webrtc-0.1.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file proto4webrtc-0.1.0.tar.gz.

File metadata

  • Download URL: proto4webrtc-0.1.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for proto4webrtc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e13c07e70dcef2c1eebdf79f308ead9310e3faf87834cd45440be8d9177f0449
MD5 2d05d8f0aa11bf89581a939c458b54e4
BLAKE2b-256 a5497f007a21e9a63327a65e177e8139a457613407a9e9a01b6254caefaf98fb

See more details on using hashes here.

File details

Details for the file proto4webrtc-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: proto4webrtc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for proto4webrtc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ade5bb77b924d545daf1a5aaf31f4ae80beffe728df25a1f1a87b66132b419a
MD5 24709db7da788e60dbca06d0f963350d
BLAKE2b-256 71ab84f883eb622789816619cbbb7d135749055a4f767d44441af7d7c5482873

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page