Skip to main content

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

Metadata

Release files for actor-rtc 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for actor-rtc 0.1.0
File Size Uploaded Provenance Actions
actor_rtc-0.1.0.tar.gz 60.7 kB Without provenance Details for actor_rtc-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for actor-rtc 0.1.0
File Interpreter ABI Platform Actions
actor_rtc-0.1.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for actor_rtc-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
actor_rtc-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.34+ x86-64 Details for actor_rtc-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl

Total release size: 8.8 MB

Release files / actor_rtc-0.1.0.tar.gz

Download URL actor_rtc-0.1.0.tar.gz
Size 60.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9918ec7b869497063c7467e221a15640354c3e475847c969c1aae2a1ca9464a2
BLAKE2b-256 checksum
How to use checksums
baa0a2b0fcdb2f687dca3024fea76f1544606716cd7a03489002f9cde5e3ed81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.8.3

Release files / actor_rtc-0.1.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL actor_rtc-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Size 4.2 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8680ed5d3e307e4868961f7e1d4674220e0ebf37a74b67774874b5921cb48c8c
BLAKE2b-256 checksum
How to use checksums
e8fb298b3aa187381286eeb23feac23691063cf1f9c3eb89cb08941832bff98d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.8.3

Release files / actor_rtc-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl

Download URL actor_rtc-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl
Size 4.6 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
a2def4a98b5b23c9e7f9e7137b361098f9de471710f67513bea1f255af958111
BLAKE2b-256 checksum
How to use checksums
af61c0fc0b4f4bc737829da2309e08731cba104ce179439fc9b43ce4134c9c56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.8.3

Security for actor-rtc 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

3 release files No provenance

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