Skip to main content

an unofficial api for grabbing data from cp.sk

Project description

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

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

cpsk-0.2.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

cpsk-0.2.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file cpsk-0.2.2.tar.gz.

File metadata

  • Download URL: cpsk-0.2.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for cpsk-0.2.2.tar.gz
Algorithm Hash digest
SHA256 59ab0a0066e2fd2bf97fd014bed8e343104ffc21fcae3db13dcca33c71878fc9
MD5 9bdf180da79bc379d7f74620bc1f92f0
BLAKE2b-256 de21048887f09f31446859f20cc3fe6535aa7f2eabbe12325ed4564e3de58f04

See more details on using hashes here.

File details

Details for the file cpsk-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: cpsk-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for cpsk-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3bf8c0325b678e7e61b1c97ca4caee0922704197f8a681b2d0b1c5adcabda032
MD5 b22a5ca83545879b458dfe74bb25e0e8
BLAKE2b-256 254b3957830aff6e1b4506c97abdf36663cb8a00dcbe9364aa2cc84a9e05ec30

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page