Skip to main content

fix http error for python 3.11+

Project description

webflux

rtcptconnect is a simple and powerful Python module for building real-time communication applications. Inspired by the WebRTC standard, it allows you to handle audio, video, and P2P data with low latency and minimal syntax.


Features

  • P2P Communication: Direct data exchange between clients without a central server.
  • Audio & Video: Real-time transmission with low latency.
  • Data Channels: Send and receive text or JSON messages instantly.
  • Event Handling: Simple callbacks for on_connect, on_message, on_disconnect.
  • Secure: Built-in DTLS/SRTP encryption.
  • Interoperable: Compatible with browsers and other webflux clients.

Installation

pip install rtcpconnect

Basic Usage

Create a client and connect

from rtcpconnect import rtcpClient

# Initialize the client
client = rtcpClient(username="Alice")

# Event triggered when a message is received
@client.on("message")
def handle_message(sender, content):
    print(f"{sender} says: {content}")

# Connect to a peer
client.connect("bob_peer_id")

# Send a message
client.send("bob_peer_id", "Hi Bob!")

# Listen for events
client.listen()

Audio/Video example

client.connect_audio()
client.connect_video()

Use Cases

  • Real-time audio and video chats
  • P2P multiplayer games
  • Streaming and data sharing
  • Collaborative tools (drawing, shared documents)

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

rtcpconnect-1.6.3.tar.gz (80.3 kB view details)

Uploaded Source

Built Distribution

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

rtcpconnect-1.6.3-py3-none-any.whl (80.9 kB view details)

Uploaded Python 3

File details

Details for the file rtcpconnect-1.6.3.tar.gz.

File metadata

  • Download URL: rtcpconnect-1.6.3.tar.gz
  • Upload date:
  • Size: 80.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for rtcpconnect-1.6.3.tar.gz
Algorithm Hash digest
SHA256 3885dcb659f454e65a65cc76b1487b05caa2751862f1268453144bf19409b38d
MD5 cb7f779e56cccaad5129e84339eea4b3
BLAKE2b-256 87c85a14f4c946b17b6a8f6afd63f6c7f9dd2583cfeca279024132855296e9f0

See more details on using hashes here.

File details

Details for the file rtcpconnect-1.6.3-py3-none-any.whl.

File metadata

  • Download URL: rtcpconnect-1.6.3-py3-none-any.whl
  • Upload date:
  • Size: 80.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for rtcpconnect-1.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4b9d47a42ca2ad5b108926319f46eb673663a0f6fba50fe506e331b17f362a6a
MD5 fc4df9784a59b06fa8a597ae5dc65984
BLAKE2b-256 26e723d7c32b78e47fcba59b650dce84ba7178cab5ffdb48b2b5cd03b6c66539

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