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.
Metadata
Release files for pyrestream 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyrestream-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for pyrestream-0.6.0-py3-none-any.whl |
Release files / pyrestream-0.6.0-py3-none-any.whl
| Download URL | pyrestream-0.6.0-py3-none-any.whl |
|---|---|
| Size | 23.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc5dec102aa801b2087f612429dfbe808ab93771fb2a409a2a83d28738f606d9
|
|
BLAKE2b-256 checksum How to use checksums |
fa893aa8a5a9be6d7262f043d4b07c91265714012841e2ef0bf59a337eaed099
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.13
|
Security for pyrestream 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.