cpsk-0.2.1
توضیحات
an unofficial api for grabbing data from cp.sk
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cpsk-0.2.1 |
| نام | cpsk |
| نسخه کتابخانه | 0.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Adrian Matejov |
| ایمیل نویسنده | a.matejov@centrum.sk |
| آدرس صفحه اصلی | https://github.com/Adman/python-cpsk-api |
| آدرس اینترنتی | https://pypi.org/project/cpsk/ |
| مجوز | The MIT License (MIT) |
# python-cpsk-api 
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*
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | lxml |
نحوه نصب
نصب پکیج whl cpsk-0.2.1:
pip install cpsk-0.2.1.whl
نصب پکیج tar.gz cpsk-0.2.1:
pip install cpsk-0.2.1.tar.gz