Python client library for the Restream.io REST API and WebSocket APIs
Project description
PyRestream
Python client library for the Restream.io REST API and WebSocket APIs.
Installation
pip install pyrestream
Basic Usage
from pyrestream import RestreamClient
# Initialize client with token
client = RestreamClient.from_config()
# Get user profile
profile = client.get_profile()
print(f"Hello, {profile.displayName}!")
# List channels
channels = client.list_channels()
for channel in channels:
print(f"Channel: {channel.title}")
Authentication
The client supports OAuth2 authentication flow:
from pyrestream import perform_login
# Perform OAuth2 login flow
tokens = perform_login()
WebSocket Monitoring
Monitor real-time streaming and chat events:
import asyncio
from pyrestream import StreamingMonitorClient, ChatMonitorClient
async def monitor_streaming():
client = StreamingMonitorClient()
async for event in client.monitor():
print(f"Streaming event: {event}")
# Run monitoring
asyncio.run(monitor_streaming())
Documentation
For complete API documentation, see the official Restream.io API docs.
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyrestream-0.6.0-py3-none-any.whl.
File metadata
- Download URL: pyrestream-0.6.0-py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc5dec102aa801b2087f612429dfbe808ab93771fb2a409a2a83d28738f606d9
|
|
| MD5 |
d8089c13cbf4753c51537c8af94eab2d
|
|
| BLAKE2b-256 |
fa893aa8a5a9be6d7262f043d4b07c91265714012841e2ef0bf59a337eaed099
|