python-cpsk-api 
Simple python api for grabbing data from cp.sk
Installation
Available on pypi
Running $ pip install cpsk will get the package installed
Usage
import cpsk
drive = cpsk.get_routes('Bratislava', 'Praha', **kwargs)
Available kwargs
| parameter | type | description |
|---|---|---|
vehicle |
string | Vehicle to travel with. Default vlakbus. Available: vlak, bus, vlakbusmhd. |
time |
string | Departure time. Defaults to current time. |
date |
string | Departure date. Defaults to current date. |
direct |
boolean | Whether to look only for direct routes. Defaults to False. |
Beware that by using this you might be violating cp.sk ToS
Metadata
Release files for cpsk 0.2.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 | |
|---|---|---|---|
| cpsk-0.2.2.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cpsk-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / cpsk-0.2.2.tar.gz
| Download URL | cpsk-0.2.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59ab0a0066e2fd2bf97fd014bed8e343104ffc21fcae3db13dcca33c71878fc9
|
|
BLAKE2b-256 checksum How to use checksums |
de21048887f09f31446859f20cc3fe6535aa7f2eabbe12325ed4564e3de58f04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / cpsk-0.2.2-py3-none-any.whl
| Download URL | cpsk-0.2.2-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3bf8c0325b678e7e61b1c97ca4caee0922704197f8a681b2d0b1c5adcabda032
|
|
BLAKE2b-256 checksum How to use checksums |
254b3957830aff6e1b4506c97abdf36663cb8a00dcbe9364aa2cc84a9e05ec30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|