Skip to main content

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).

Streams declared lazy are produced only while a consumer keeps pinging "<label>-pings"; the runtime starts and stops them for you. Test client.<stream>.producing to skip the work behind a message while nobody is watching.

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

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.10.1.tar.gz (27.7 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.10.1-py3-none-any.whl (53.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: proto4webrtc-1.10.1.tar.gz
  • Upload date:
  • Size: 27.7 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-1.10.1.tar.gz
Algorithm Hash digest
SHA256 71f7e340ae4f0e2b93f2f91f80e2968701fc42523d707d5bdd5ccba75061acf0
MD5 1ae6f94b18f13c8cb588c4e6e1dd332b
BLAKE2b-256 055a6896e06596b09392406c7e4c06696d9cdad312b5e1fe6414b1e5ab0bd977

See more details on using hashes here.

File details

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

File metadata

  • Download URL: proto4webrtc-1.10.1-py3-none-any.whl
  • Upload date:
  • Size: 53.4 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-1.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 72c75bbbaa10168a69dadc2fa7e19a66c0b055d720c3bf1c2c8f986f52f6d32d
MD5 3742caf437d3ca5779f91ac36eb12ec8
BLAKE2b-256 c8a1be8d75fc021bb4468dc3945bbc8837cb859bb6b7e2fc50d76ee46167de33

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

This release

1.10.1 This release

2 files

1.10.0

2 files

1.9.0

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

1.1.0

2 files

1.0.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.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