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. It serves as a lightweight, focused replacement for aiortc, tailored specifically for Keeper Security's internal products and use cases.

Note: This package is intended for internal Keeper Security products and is not being actively advertised for general use.

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,
    turn_only=False
)

# 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()

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.6-cp37-abi3-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.7+Windows x86-64

keeper_pam_webrtc_rs-0.1.6-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.6-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.6-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.6-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.6-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.6-cp37-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for keeper_pam_webrtc_rs-0.1.6-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 90b003a58763573d34345347f7e955b393acd2bb43bc593ea20c4897f40104e6
MD5 d5408b6962842017896b416d9998573a
BLAKE2b-256 22a8c7ebd7eb5a9bc0f43c1737829c295623add8f9ce47297086f98909a3b767

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for keeper_pam_webrtc_rs-0.1.6-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a96fbc9e282dfb4d00e9b183d3fd1ea387f185c6cf47473e3834a73b901b6430
MD5 0c50551b8be88896da077bebccf19c6a
BLAKE2b-256 a1a7167d457c45d52d4c72ebb575307c189a280f6435d5db65b72b85c75acaa0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for keeper_pam_webrtc_rs-0.1.6-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 93b354cc7d8bcae74c6454cdfd4e786108be50d1868296766ef953e219bf4e9e
MD5 f59616f4ad6cd3c2f715f6ccd3926a9d
BLAKE2b-256 cf7ed747d0f2ed93d6ca83c968d1c937b8fb92ad3a8531ae679f10f738aecce7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for keeper_pam_webrtc_rs-0.1.6-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7347e6581e4c44cea3859a322f7732d2a9881ca3c33acef5501d184960e98f0f
MD5 4c71e1aa994a620bb41bcd86188ca207
BLAKE2b-256 96567c1cffab1bbb759ed4add78f867f81f7dc5b25cffc5ed8649c1bb60effac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for keeper_pam_webrtc_rs-0.1.6-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe53e972c462265e335e2e00b4b56e8f1e846133a17f93497e9b9aa1f5424a1e
MD5 3374c9d76aff219d92b01791827a913c
BLAKE2b-256 87932488a6264c9f7bcb9df8d6dfce2eaff2a4b78281cb1c24c810cfee5d155d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for keeper_pam_webrtc_rs-0.1.6-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 4f7aa17afbf1e49d1cc97bb718937dd62d96cbc5fceaa4b2183bb766ba7db1f7
MD5 403860ba79ffb9234e896f363e458ba7
BLAKE2b-256 56841927b5eb270de9ed7a685509aebc85629471e86ba9194ec6a8c74cf7e9dc

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