Skip to main content

No project description provided

Project description

Keeper PAM WebRTC for Python

A high-performance WebRTC implementation for Python, written in Rust for maximum efficiency and reliability.

Description

keeper-pam-webrtc-rs provides Python bindings to a Rust-based WebRTC implementation, allowing for:

  • Real-time data communication via WebRTC data channels
  • Peer connection management
  • ICE candidate handling
  • Cross-platform compatibility (Linux, macOS, Windows, Alpine)

This package is designed to be used with Keeper Gateway and Keeper Commander.

Installation

pip install keeper-pam-webrtc-rs

Usage

import keeper_pam_webrtc_rs

# Initialize WebRTC peer connection
config = {"iceServers": [{"urls": ["stun:stun.l.google.com:19302"]}]}
pc = keeper_pam_webrtc_rs.PyRTCPeerConnection(
    config, 
    on_ice_candidate=lambda c: print(f"ICE candidate: {c}"), 
    on_data_channel=lambda dc: print(f"Data channel: {dc.label()}"),
    trickle_ice=True
)

# Create offer
offer = pc.create_offer()

# Create data channel
dc = pc.create_data_channel("example-channel")

# Send data
dc.send(b'Hello WebRTC!')

# Set message handler
def on_message(data):
    print(f"Received: {data}")
dc.on_message = on_message

# Close when done
pc.close()

Build from Source

Wheel Files

maturin build --release
pip install keeper-pam-webrtc-rs*

If using a different chip set you can use docker to build it:

docker run --rm --platform linux/amd64 -v $(pwd):/io ghcr.io/pyo3/maturin build --release --manylinux 2014
pip install keeper-pam-webrtc-rs*

Features

  • Async-first design with Tokio runtime integration
  • Optimized for performance and reliability
  • Cross-platform compatibility
  • Built with abi3 for maximum Python version compatibility (Python 3.7+)
  • Comprehensive WebRTC functionality

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

keeper_pam_webrtc_rs-0.1.3-cp37-abi3-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.7+Windows x86-64

keeper_pam_webrtc_rs-0.1.3-cp37-abi3-musllinux_1_2_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ x86-64

keeper_pam_webrtc_rs-0.1.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ x86-64

keeper_pam_webrtc_rs-0.1.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.7 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

keeper_pam_webrtc_rs-0.1.3-cp37-abi3-macosx_11_0_arm64.whl (4.2 MB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

keeper_pam_webrtc_rs-0.1.3-cp37-abi3-macosx_10_7_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.7+macOS 10.7+ x86-64

File details

Details for the file keeper_pam_webrtc_rs-0.1.3-cp37-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for keeper_pam_webrtc_rs-0.1.3-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3162a31906c9578b424b35090e040d06245d73e99000d0132202e6ca65e9a977
MD5 d0ed84d3968efae7262631c1a0abe326
BLAKE2b-256 562060cca34a21e48f0ec5f18f891f57f3c3a210f1ee5c3666953b8b0ba6b003

See more details on using hashes here.

File details

Details for the file keeper_pam_webrtc_rs-0.1.3-cp37-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for keeper_pam_webrtc_rs-0.1.3-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1c5c1f2043bcf9c356fedee50899d78e1e30bf71760d5c424c0061dd3925ad7c
MD5 7ae5fb03457f400a49f278d09e0d6fd1
BLAKE2b-256 3bdef5854491d369bf8b55af460a5910053f4b928f3100063832ec6a4f5e8e51

See more details on using hashes here.

File details

Details for the file keeper_pam_webrtc_rs-0.1.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for keeper_pam_webrtc_rs-0.1.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 78eae218a1de826f2a0cb6ec52c2990103affcc7f2e2b2bf95e720c23a8360ba
MD5 b3800e57348ca9bd0f7032bbee21125d
BLAKE2b-256 e8b4f077312d22548820130aab14007f5a2a7f2c013d14a672a0e89d8646f93c

See more details on using hashes here.

File details

Details for the file keeper_pam_webrtc_rs-0.1.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for keeper_pam_webrtc_rs-0.1.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 05348d09c251d77cd97e142cb4aeae671b7764e4cd06793c8f1bbbfa4e8cb98f
MD5 5e445d1a7ed2a00339129fa8a902a198
BLAKE2b-256 754f1785cd5ab71219a0f0734b81e488ff311132c89fe2f4e897f2fcb36268d8

See more details on using hashes here.

File details

Details for the file keeper_pam_webrtc_rs-0.1.3-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for keeper_pam_webrtc_rs-0.1.3-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6c469460702cd69f11b9396ecf85b5b623f932f839301b72c244119be8e6b85
MD5 1f73e2cef6a3b7b6b218a155e3fbf415
BLAKE2b-256 94ba5a30a125b09fb92a610e7aba6547f5f4c9ef753ec95ede930562a82a1c10

See more details on using hashes here.

File details

Details for the file keeper_pam_webrtc_rs-0.1.3-cp37-abi3-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for keeper_pam_webrtc_rs-0.1.3-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 27d7329c2d9d1e059718587def79af873e8a2ccee1ab944575de8465c25fece6
MD5 7157fc1c4d4999816c8a62cdd5872117
BLAKE2b-256 a3a0e58e6fe32898e39106423fbafaa1ece7ed5968a1c496d8e2bc20f7c51094

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