cpsk


Namecpsk JSON
Version 0.2.2 PyPI version JSON
download
home_pagehttps://github.com/Adman/python-cpsk-api
Summaryan unofficial api for grabbing data from cp.sk
upload_time2024-08-29 20:06:09
maintainerNone
docs_urlNone
authorAdrian Matejov
requires_pythonNone
licenseThe MIT License (MIT)
keywords travel train bus
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            # python-cpsk-api ![travis](https://travis-ci.org/Adman/python-cpsk-api.svg?branch=master)

Simple python api for grabbing data from cp.sk

## Installation

Available on [pypi](https://pypi.org/project/cpsk/)

Running `$ pip install cpsk` will get the package installed

## Usage

```python
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*

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Adman/python-cpsk-api",
    "name": "cpsk",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "travel, train, bus",
    "author": "Adrian Matejov",
    "author_email": "a.matejov@centrum.sk",
    "download_url": "https://files.pythonhosted.org/packages/de/21/048887f09f31446859f20cc3fe6535aa7f2eabbe12325ed4564e3de58f04/cpsk-0.2.2.tar.gz",
    "platform": null,
    "description": "# python-cpsk-api ![travis](https://travis-ci.org/Adman/python-cpsk-api.svg?branch=master)\n\nSimple python api for grabbing data from cp.sk\n\n## Installation\n\nAvailable on [pypi](https://pypi.org/project/cpsk/)\n\nRunning `$ pip install cpsk` will get the package installed\n\n## Usage\n\n```python\nimport cpsk\ndrive = cpsk.get_routes('Bratislava', 'Praha', **kwargs)\n```\n\n### Available kwargs\n\n| parameter | type    | description                                                                        |\n| --------- | ------- | ---------------------------------------------------------------------------------- |\n| `vehicle` | string  | Vehicle to travel with. Default `vlakbus`. Available: `vlak`, `bus`, `vlakbusmhd`. |\n| `time`    | string  | Departure time. Defaults to current time.                                          |\n| `date`    | string  | Departure date. Defaults to current date.                                          |\n| `direct`  | boolean | Whether to look only for direct routes. Defaults to `False`.                       |\n\n\n*Beware that by using this you might be violating cp.sk ToS*\n",
    "bugtrack_url": null,
    "license": "The MIT License (MIT)",
    "summary": "an unofficial api for grabbing data from cp.sk",
    "version": "0.2.2",
    "project_urls": {
        "Homepage": "https://github.com/Adman/python-cpsk-api"
    },
    "split_keywords": [
        "travel",
        " train",
        " bus"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "254b3957830aff6e1b4506c97abdf36663cb8a00dcbe9364aa2cc84a9e05ec30",
                "md5": "b22a5ca83545879b458dfe74bb25e0e8",
                "sha256": "3bf8c0325b678e7e61b1c97ca4caee0922704197f8a681b2d0b1c5adcabda032"
            },
            "downloads": -1,
            "filename": "cpsk-0.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b22a5ca83545879b458dfe74bb25e0e8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5459,
            "upload_time": "2024-08-29T20:06:07",
            "upload_time_iso_8601": "2024-08-29T20:06:07.610106Z",
            "url": "https://files.pythonhosted.org/packages/25/4b/3957830aff6e1b4506c97abdf36663cb8a00dcbe9364aa2cc84a9e05ec30/cpsk-0.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "de21048887f09f31446859f20cc3fe6535aa7f2eabbe12325ed4564e3de58f04",
                "md5": "9bdf180da79bc379d7f74620bc1f92f0",
                "sha256": "59ab0a0066e2fd2bf97fd014bed8e343104ffc21fcae3db13dcca33c71878fc9"
            },
            "downloads": -1,
            "filename": "cpsk-0.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "9bdf180da79bc379d7f74620bc1f92f0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4522,
            "upload_time": "2024-08-29T20:06:09",
            "upload_time_iso_8601": "2024-08-29T20:06:09.030274Z",
            "url": "https://files.pythonhosted.org/packages/de/21/048887f09f31446859f20cc3fe6535aa7f2eabbe12325ed4564e3de58f04/cpsk-0.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-29 20:06:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Adman",
    "github_project": "python-cpsk-api",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "cpsk"
}
        
Elapsed time: 0.43880s