Keeper PAM WebRTC RS

raw JSON →
2.1.17 verified Sat May 09 auth: no python

Keeper PAM WebRTC RS is a Python library providing a high-performance WebRTC-based secure tunneling API (Tube API) for Keeper PAM. It offers enterprise-grade security and reliability for remote access. Current version 2.1.17, with regular releases on PyPI.

pip install keeper-pam-webrtc-rs
error ImportError: No module named 'keeper-pam-webrtc-rs'
cause Trying to import with hyphens as in the package name.
fix
Use proper Python naming: import keeper_pam_webrtc_rs (underscores).
error TypeError: create_tube() got an unexpected keyword argument 'ice_servers'
cause Deprecated parameter removed or renamed in newer version.
fix
Use 'stun_servers' and 'turn_servers' instead.
gotcha Import with hyphen in package name: use 'from keeper_pam_webrtc_rs' (underscores), NOT 'keeper-pam-webrtc-rs'.
fix Use: from keeper_pam_webrtc_rs import ...
breaking Version 2.0 dropped support for synchronous tube creation; all operations are now async.
fix Use async/await pattern. For synchronous contexts, use asyncio.run().
deprecated The parameter 'ice_servers' is deprecated in favor of 'stun_servers' and 'turn_servers'.
fix Use 'stun_servers' and 'turn_servers' instead of 'ice_servers'.

Creates a WebRTC Tube, connects to a remote peer, sends a message, and receives a response.

from keeper_pam_webrtc_rs import create_tube, WebRTCConfig

config = WebRTCConfig(
    stun_servers=['stun.l.google.com:19302'],
    turn_servers=[],
    ice_servers=None,
)
tube = create_tube(config=config, data_channel_label='my_channel')
tube.connect(remote_peer_id='peer123')
tube.send('Hello')
response = tube.recv()
print(response)