Skip to main content

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)

Table of built distributions (wheels) for pyrestream 0.6.0
File Interpreter ABI Platform
pyrestream-0.6.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.6.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page