Skip to main content

Actor RTC bindings for Python

Project description

actor-rtc python binding

简介

actor-rtc-py 是一个将 Rust 编写的 actor-rtc 库包装为 Python 模块的项目,使用 PyO3 框架创建高性能 Python 绑定。 它基于 Actor 模型实现 WebRTC 点对点通信,为 Python 应用提供简单高效的实时通信功能。

特性

  • Actor 模型:采用 Actor 编程模型,每个参与者(Actor)拥有独立的状态和行为,通过消息传递进行通信
  • WebRTC 通信:尽量利用 WebRTC 技术实现点对点通信,无需中心服务器中转数据
  • 高性能:核心逻辑由 Rust 实现,提供卓越的性能和内存安全
  • 类型支持:自动生成 .pyi 文件,提供完整的类型提示
  • 错误处理:Rust 错误被优雅地转换为 Python 异常

安装

pip install actor_rtc

构建项目

使用示例:examples/main.py 生成 pyi 文件:actor-rtc-py 目录下,执行 cargo run --bin stub_gen

python -m venv .env
source .env/bin/activate
pip install maturin
maturin develop
python examples/main.py

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

actor_rtc-0.1.0.tar.gz (60.7 kB view details)

Uploaded Source

Built Distributions

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

actor_rtc-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (4.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

actor_rtc-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

File details

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

File metadata

  • Download URL: actor_rtc-0.1.0.tar.gz
  • Upload date:
  • Size: 60.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.3

File hashes

Hashes for actor_rtc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9918ec7b869497063c7467e221a15640354c3e475847c969c1aae2a1ca9464a2
MD5 7110a9dda2aaed87d6725f513a42ea6b
BLAKE2b-256 baa0a2b0fcdb2f687dca3024fea76f1544606716cd7a03489002f9cde5e3ed81

See more details on using hashes here.

File details

Details for the file actor_rtc-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for actor_rtc-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8680ed5d3e307e4868961f7e1d4674220e0ebf37a74b67774874b5921cb48c8c
MD5 7c2fe5e6797b77446e436b8bc7afe1b8
BLAKE2b-256 e8fb298b3aa187381286eeb23feac23691063cf1f9c3eb89cb08941832bff98d

See more details on using hashes here.

File details

Details for the file actor_rtc-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for actor_rtc-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a2def4a98b5b23c9e7f9e7137b361098f9de471710f67513bea1f255af958111
MD5 4d21760f2ddf2b64330469f51a7b99da
BLAKE2b-256 af61c0fc0b4f4bc737829da2309e08731cba104ce179439fc9b43ce4134c9c56

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