MPVNET.CZ API
API pro get dat z odjezdové tabule z mpvnet.cz
Instalace
pip install mpvnet_cz_api
Example
from mpvnet_cz_api import Api
api = Api(53289, "idol")
print(api.sync())
- První číslo je číslo zastávky.
- Druhé pole je dopravce (pid, idol, odis, zlin, jikord)
from mpvnet_cz_api import Stop
print(Stop.search("Janův Důl", "idol"))
Stop.search()vrací naparsovaný seznam objektů slabelavalue, kdevalue.stopNumje číslo zastávky.Stop.get_num()zůstává jako kompatibilní metoda vracející raw JSON text.
Vlastní payload a timeout
Číslo zastávky je povinné. Výchozí hodnoty ostatních polí lze přepsat přes
payload a stop_key; stopNum je vždy vynucen z argumentu stop_number.
api = Api(
53289,
"idol",
payload={"isDepartures": True},
stop_key={"cat": 2, "subCat": 0, "departures": None},
timeout=5,
)
HTTP chyby, neplatný vstup a neplatný JSON jsou hlášeny výjimkou.
Verze
| Verze | Stav | Poznámka |
|---|---|---|
| 1.0-1.1 | ✅ | Omezená funkcionalita programu |
| 1.2 | ⭐ |
Metadata
Release files for mpvnet-cz-api 1.2
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 |
|---|---|---|---|---|
| mpvnet_cz_api-1.2.tar.gz | 4.3 kB | With provenance | Details for mpvnet_cz_api-1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mpvnet_cz_api-1.2-py3-none-any.whl | Python 3 | none | any | Details for mpvnet_cz_api-1.2-py3-none-any.whl |
Total release size: 9.0 kB
Release files / mpvnet_cz_api-1.2.tar.gz
| Download URL | mpvnet_cz_api-1.2.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bc67976cb21203ea38047b50228ca8e86cff66f21a8b1fd0fc6fb1074552cff
|
|
BLAKE2b-256 checksum How to use checksums |
d0b2d89d4525651aa2aba7c585816b088b9f918301875ffc153ca4247a251166
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logRelease files / mpvnet_cz_api-1.2-py3-none-any.whl
| Download URL | mpvnet_cz_api-1.2-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1ff41818cceebadd5fa0e2f2d3236552465a427e93545dc96b15c72f2c14743
|
|
BLAKE2b-256 checksum How to use checksums |
6364e496f059e29d5362a7246ed60eb8cafe983e0dd6e35133f4f28a071c944a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logSecurity for mpvnet-cz-api 1.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mpvnet_cz_api-1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logA 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.