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.2.tar.gz (105.8 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.2-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stb_reader-0.2.2.tar.gz
  • Upload date:
  • Size: 105.8 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.2.tar.gz
Algorithm Hash digest
SHA256 5b9de2920d679f4602ee2a3db0c6bd73a4df7a0a363bc5ba2ef122ddf5a7c50a
MD5 cf10237d62675af53edd9f962c1f17af
BLAKE2b-256 001d8e24f29d3eeb4857bb848afde2c2a882f0d1a072e700b737fbe91ab5735f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stb_reader-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 14.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 81b2d86438e968f7779d0791162f8f01b945a20ac3d239fdead1006146e9dc9b
MD5 d782b4b3469e3935988a76c94b03cb69
BLAKE2b-256 426cba6057f9249bd8d25cfa72f9dc5887701bf1840cc7499d6b60a6b186482a

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