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
Metadata
Release files for stb-reader 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stb_reader-0.2.3.tar.gz | 107.3 kB | Without provenance | Details for stb_reader-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stb_reader-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for stb_reader-0.2.3-py3-none-any.whl |
Total release size: 121.6 kB
Release files / stb_reader-0.2.3.tar.gz
| Download URL | stb_reader-0.2.3.tar.gz |
|---|---|
| Size | 107.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
024adb460e74231b4d5a8c68b2fa1c176461cb47f998d6b2603be242f6cb71dc
|
|
BLAKE2b-256 checksum How to use checksums |
ae6386a71aa7d831ae09ae45104ff8be15a3b85b4436225c3bd41b34f1e14038
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / stb_reader-0.2.3-py3-none-any.whl
| Download URL | stb_reader-0.2.3-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
761c20787884749b43513acedb0dfae62fc65bdd9ed98ab669f7f8acefab5a02
|
|
BLAKE2b-256 checksum How to use checksums |
c0ff78ed472a593a07d5a564fa00be5d7a1f183d9fa66a910b273b7b9c8531f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for stb-reader 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.