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.3.tar.gz (107.3 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.3-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stb_reader-0.2.3.tar.gz
  • Upload date:
  • Size: 107.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","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.3.tar.gz
Algorithm Hash digest
SHA256 024adb460e74231b4d5a8c68b2fa1c176461cb47f998d6b2603be242f6cb71dc
MD5 820cbc50c11dbbde1f44793aa28c77df
BLAKE2b-256 ae6386a71aa7d831ae09ae45104ff8be15a3b85b4436225c3bd41b34f1e14038

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stb_reader-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 761c20787884749b43513acedb0dfae62fc65bdd9ed98ab669f7f8acefab5a02
MD5 f7097c2aef7782baff5c49fa56e724d9
BLAKE2b-256 c0ff78ed472a593a07d5a564fa00be5d7a1f183d9fa66a910b273b7b9c8531f0

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