Skip to main content

python-cpsk-api travis

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)

Source distribution for cpsk 0.2.2
File Size Uploaded
cpsk-0.2.2.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cpsk 0.2.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.8

2 release files

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page