Skip to main content

CLI for interacting with the Restream.io API

Project description

restream.io CLI

Python command-line tool to interact with the Restream.io API.

Bootstrapping

Requires uv installed.

uv sync

Basic commands

Public endpoints (no authentication required)

  • restream.io platforms - list available streaming platforms
  • restream.io servers - list available streaming servers

Authentication

  • restream.io login - perform OAuth2 login flow (opens browser, listens locally)

User profile

  • restream.io profile - show user profile

Channel management

  • restream.io channel list - list channels
  • restream.io channel get <id> - fetch specific channel
  • restream.io channel set <id> - update channel settings
  • restream.io channel meta get - get channel metadata
  • restream.io channel meta set - update channel metadata

Event management

  • restream.io event list - list events

Utility

  • restream.io version - show dynamic version derived from git tags

Configuration

Storage Location

Tokens and configuration are stored securely in the user's platform-appropriate config directory:

  • Linux/macOS: ~/.config/restream.io/
  • Windows: %APPDATA%\restream.io\

The configuration directory location can be overridden using the RESTREAM_CONFIG_PATH environment variable.

Environment Variables

The following environment variables are required for OAuth2 authentication:

  • RESTREAM_CLIENT_ID: OAuth2 client ID (required)
  • RESTREAM_CLIENT_SECRET: OAuth2 client secret (required)

Additional optional configuration:

  • RESTREAM_CONFIG_PATH: Override the default configuration directory path

Before using the login command, ensure both authentication variables are set:

export RESTREAM_CLIENT_ID="your_client_id_here"
export RESTREAM_CLIENT_SECRET="your_client_secret_here"
restream.io login

Security

  • Configuration directory is created with 0o700 permissions (owner read/write/execute only)
  • Token files are created with 0o600 permissions (owner read/write only)
  • Tokens are stored in JSON format in tokens.json within the config directory

Development

Run tests:

uv run pytest

Roadmap

See AGENTS.md for AI agent instructions and extension points.

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

restream_io-0.4.0.tar.gz (51.7 kB view details)

Uploaded Source

Built Distribution

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

restream_io-0.4.0-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file restream_io-0.4.0.tar.gz.

File metadata

  • Download URL: restream_io-0.4.0.tar.gz
  • Upload date:
  • Size: 51.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for restream_io-0.4.0.tar.gz
Algorithm Hash digest
SHA256 f959e3ad01b21d7d7034d9f202c9c1cf27056662b646a3ad845479367c79e15c
MD5 e987cda61695f60c363882f2ac629e86
BLAKE2b-256 da992a6639df0a9be6079c75d7d3aee9b69274ea669f02b786db3ea22633e284

See more details on using hashes here.

Provenance

The following attestation bundles were made for restream_io-0.4.0.tar.gz:

Publisher: pypi-publish.yml on goodtune/restream-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file restream_io-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: restream_io-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for restream_io-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfc19148cae8f6235a12b4ce1c61b5641edd6d556e23cbbd57114ee2a2de9ad3
MD5 508beaa45b6ef0c8fd13cee8be4055bd
BLAKE2b-256 4bd51b9b217b8e4388a9494b834aafd1cc9951aa5748cf705a8c0598bd07994f

See more details on using hashes here.

Provenance

The following attestation bundles were made for restream_io-0.4.0-py3-none-any.whl:

Publisher: pypi-publish.yml on goodtune/restream-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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