Koleo CLI
Installation
install via pip by running pip install koleo-cli
it currently allows you to:
- get departures/arrival list for a station
- get train info given its number and name(pull requests are welcome if you know how to get a train object by just the number)
- find a station or list all known stations
- find a connection from station a to b, with filtering by operators
- save a station as your favourite to quickly check it's departures
additionally you can also use the KoleoAPI wrapper directly in your own projects, all returns are fully typed using typing.TypedDict
MY(possibly controversial) design choices:
- platforms and track numbers are shown using arabic numerals instead of roman
- you can change it by adding
use_roman_numerals: trueto your config.json file
- you can change it by adding
- most api queries are cached for 24h
- you can change it by adding
disable_cache: trueto your config.json file
- you can change it by adding
- the cli.py code is really dirty but printing formatted data is hard :<
pull requests are welcome!!
usage: koleo [-h] [-c CONFIG] [--nocolor] {departures,d,dep,odjazdy,o,arrivals,a,arr,przyjazdy,p,trainroute,r,tr,t,poc,pociąg,stations,s,find,f,stacje,ls,connections,do,z,szukaj,path} ...
Koleo CLI
options:
-h, --help show this help message and exit
-c CONFIG, --config CONFIG
Custom config path.
--nocolor Disable color output and formatting
actions:
{departures,d,dep,odjazdy,o,arrivals,a,arr,przyjazdy,p,trainroute,r,tr,t,poc,pociąg,stations,s,find,f,stacje,ls,connections,do,z,szukaj,path}
departures (d, dep, odjazdy, o)
Allows you to list station departures
arrivals (a, arr, przyjazdy, p)
Allows you to list station departures
trainroute (r, tr, t, poc, pociąg)
Allows you to show the train's route
stations (s, find, f, stacje, ls)
Allows you to find stations by their name
connections (do, z, szukaj, path)
Allows you to search for connections from a to b
Metadata
Release files for koleo-cli 0.2.137.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| koleo_cli-0.2.137.9.tar.gz | 25.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| koleo_cli-0.2.137.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.7 kB
Release files / koleo_cli-0.2.137.9.tar.gz
| Download URL | koleo_cli-0.2.137.9.tar.gz |
|---|---|
| Size | 25.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d524e336623834f5aa6007967092793a3e10ef8b902797acac0d50059117381c
|
|
BLAKE2b-256 checksum How to use checksums |
02a8eaff3376165cfb173ebcdfc6e8f95db040ca09d8a4f03890ca72fde15c61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / koleo_cli-0.2.137.9-py3-none-any.whl
| Download URL | koleo_cli-0.2.137.9-py3-none-any.whl |
|---|---|
| Size | 25.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5e1719c32793b805fddee315e42dbf83c6643110af4cf9481aee47bf1fe45d5
|
|
BLAKE2b-256 checksum How to use checksums |
ed4c0b1b9aa9f76f4683745082c80236bcefb9f4008f64e401f6103ce6773d10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|