Skip to main content

Mediasoup producer runtime (pymediasoup) for proto4webrtc-annotated protofiles

Project description

proto4webrtc (Python)

Typed mediasoup producer runtime (pymediasoup) for code generated from protobuf messages annotated with proto4webrtc options. The TypeScript consumer counterpart is the npm package protoc-gen-proto4webrtc-ts.

pip install proto4webrtc              # runtime only (ship this)
pip install proto4webrtc[compiler]    # + the code generator (build time)
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).

The generator lives in the separate distribution proto4webrtc-codegen (pulled in by the [compiler] extra), so production images can install the runtime alone.

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-1.5.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

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

proto4webrtc-1.5.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: proto4webrtc-1.5.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.10.12 Linux/6.1.0-50-amd64

File hashes

Hashes for proto4webrtc-1.5.0.tar.gz
Algorithm Hash digest
SHA256 8127b35beafb3c09720c020b1ff3d0ec6ed6c714bce4846d2a5eec9c707d9593
MD5 f29d1bdd12f558033418e2576d3906b4
BLAKE2b-256 5d1035d7212e4f01e2656c4f704e0a8678e6e7e6a60c40bb8e44a0d9b30666ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: proto4webrtc-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.10.12 Linux/6.1.0-50-amd64

File hashes

Hashes for proto4webrtc-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e2b36e727b5ad7b3767b4c8db2f90d41e063114909398e391626e04a852e0b6
MD5 7a3616ba9bea319976c5135d4c098219
BLAKE2b-256 73d50220e178952f243d9ebe669d998708931e7214db9a70bd382ff2c9f7bdd8

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