Skip to main content

Python client library for Ministra/Stalker STB portals

Project description

stb-reader

Python client library and CLI for Ministra/Stalker STB portals. Browse live TV channels, VOD content, and series, or resolve stream URLs — from Python code or straight from the terminal.

Install

pip install stb-reader

Requires Python 3.11+.

Quick start — CLI

stb init                       # save portal URL and MAC address once
stb live channels              # browse channels
stb stream --type live <cmd>   # get a stream URL

See the CLI reference for all commands.

Quick start — Python

from stb_reader import STBClient

client = STBClient(
    base_url="http://your-portal.example.com",
    mac="00:1A:79:XX:XX:XX",
)
client.authenticate()

# Live TV
channels = client.live_tv.get_channels(genre_id="*", page=1)
stream_url = client.live_tv.get_stream_url(channels.items[0].cmd)

# VOD
content = client.vod.get_content(category_id="*", page=1)

# Series
seasons = client.vod.get_seasons(series_id="123")
episodes = client.vod.get_episodes(series_id="123", season_id=seasons[0].id)
stream_url = client.vod.get_stream_url_by_first_file(
    series_id="123",
    season_id=seasons[0].id,
    episode_id=episodes[0].id,
)

Documentation

License

MIT

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

stb_reader-0.2.1.tar.gz (105.6 kB view details)

Uploaded Source

Built Distribution

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

stb_reader-0.2.1-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file stb_reader-0.2.1.tar.gz.

File metadata

  • Download URL: stb_reader-0.2.1.tar.gz
  • Upload date:
  • Size: 105.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for stb_reader-0.2.1.tar.gz
Algorithm Hash digest
SHA256 46d9cf9cdadaf26a407fec88d13d2584ad640c470ab484d018dc9c29e5aca4eb
MD5 ca564fa3b6ab45d4bb1b4963ff7c649e
BLAKE2b-256 6ec5f79d86bfcee19fbe42ad029ca954084b941c2b14eeb24713e45b4211022d

See more details on using hashes here.

File details

Details for the file stb_reader-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: stb_reader-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for stb_reader-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 23ab8146d39bfdd92a6211c453ca8c1223ee4f5cf8fdc7b70c21b84e6dac140f
MD5 5bb0d7cdc519f5d1185e7e900e3612e8
BLAKE2b-256 f1f9e023f069d9ef8aab440e4c1e2f684534fe5cf082356e774c1f808cbf30ec

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