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
- CLI reference —
stbcommand-line tool - Getting started — installation, configuration, first call
- Authentication — token lifecycle, auto-reauth, error handling
- Live TV — genres, channels, stream URLs
- VOD — Movies — categories, content listing, movie streams
- Series — seasons, episodes, quality selection
- Pagination —
PagedResult, fetch-all-pages pattern - Error handling — all exceptions, recovery patterns
- API reference — complete method, model, and exception reference
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b9de2920d679f4602ee2a3db0c6bd73a4df7a0a363bc5ba2ef122ddf5a7c50a
|
|
| MD5 |
cf10237d62675af53edd9f962c1f17af
|
|
| BLAKE2b-256 |
001d8e24f29d3eeb4857bb848afde2c2a882f0d1a072e700b737fbe91ab5735f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81b2d86438e968f7779d0791162f8f01b945a20ac3d239fdead1006146e9dc9b
|
|
| MD5 |
d782b4b3469e3935988a76c94b03cb69
|
|
| BLAKE2b-256 |
426cba6057f9249bd8d25cfa72f9dc5887701bf1840cc7499d6b60a6b186482a
|