koleo-cli


Namekoleo-cli JSON
Version 0.2.137.15 PyPI version JSON
download
home_pagehttps://github.com/lzgirlcat/koleo-cli
SummaryKoleo CLI
upload_time2024-12-14 20:55:26
maintainerNone
docs_urlNone
authorZoey !
requires_python>=3.12
licenseGNU General Public License v3.0
keywords koleo timetable trains rail poland
VCS
bugtrack_url
requirements rich requests
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Koleo CLI
[![PyPI - Version](https://img.shields.io/pypi/v/koleo-cli.svg)](https://pypi.org/project/koleo-cli)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/koleo-cli.svg)](https://pypi.org/project/koleo-cli)

## Installation
**install via pip by running** `pip install koleo-cli`


![gif showcasing the functionality](https://github.com/lzgirlcat/koleo-cli/blob/main/koleo-cli.gif?raw=true)

## 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: true` to your config.json file
 - most api queries are cached for 24h
   - you can change it by adding `disable_cache: true` to your config.json file
 - 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
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/lzgirlcat/koleo-cli",
    "name": "koleo-cli",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": "cb98uzhd@duck.com",
    "keywords": "koleo, timetable, trains, rail, poland",
    "author": "Zoey !",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/54/47/bf71583f5190a2f72cb07035a499c55bfe30bdb5cd9247631ff3efdd4da3/koleo_cli-0.2.137.15.tar.gz",
    "platform": null,
    "description": "# Koleo CLI\n[![PyPI - Version](https://img.shields.io/pypi/v/koleo-cli.svg)](https://pypi.org/project/koleo-cli)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/koleo-cli.svg)](https://pypi.org/project/koleo-cli)\n\n## Installation\n**install via pip by running** `pip install koleo-cli`\n\n\n![gif showcasing the functionality](https://github.com/lzgirlcat/koleo-cli/blob/main/koleo-cli.gif?raw=true)\n\n## it currently allows you to:\n - get departures/arrival list for a station\n - 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)\n - find a station or list all known stations\n - find a connection from station a to b, with filtering by operators\n - save a station as your favourite to quickly check it's departures\n\nadditionally you can also use the KoleoAPI wrapper directly in your own projects, all returns are fully typed using `typing.TypedDict`\n\n## MY(possibly controversial) design choices:\n - platforms and track numbers are shown using arabic numerals instead of roman\n   - you can change it by adding `use_roman_numerals: true` to your config.json file\n - most api queries are cached for 24h\n   - you can change it by adding `disable_cache: true` to your config.json file\n - the cli.py code is really dirty but printing formatted data is hard :<\n\npull requests are welcome!!\n\n```\nusage: koleo [-h] [-c CONFIG] [--nocolor] {departures,d,dep,odjazdy,o,arrivals,a,arr,przyjazdy,p,trainroute,r,tr,t,poc,poci\u0105g,stations,s,find,f,stacje,ls,connections,do,z,szukaj,path} ...\n\nKoleo CLI\n\noptions:\n  -h, --help            show this help message and exit\n  -c CONFIG, --config CONFIG\n                        Custom config path.\n  --nocolor             Disable color output and formatting\n\nactions:\n  {departures,d,dep,odjazdy,o,arrivals,a,arr,przyjazdy,p,trainroute,r,tr,t,poc,poci\u0105g,stations,s,find,f,stacje,ls,connections,do,z,szukaj,path}\n    departures (d, dep, odjazdy, o)\n                        Allows you to list station departures\n    arrivals (a, arr, przyjazdy, p)\n                        Allows you to list station departures\n    trainroute (r, tr, t, poc, poci\u0105g)\n                        Allows you to show the train's route\n    stations (s, find, f, stacje, ls)\n                        Allows you to find stations by their name\n    connections (do, z, szukaj, path)\n                        Allows you to search for connections from a to b\n```\n",
    "bugtrack_url": null,
    "license": "GNU General Public License v3.0",
    "summary": "Koleo CLI",
    "version": "0.2.137.15",
    "project_urls": {
        "Homepage": "https://github.com/lzgirlcat/koleo-cli",
        "Issue Tracker": "https://github.com/lzgirlcat/koleo-cli/issues",
        "Source (GitHub)": "https://github.com/lzgirlcat/koleo-cli"
    },
    "split_keywords": [
        "koleo",
        " timetable",
        " trains",
        " rail",
        " poland"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c143a24e212a63005fe3dbf81fa323769faf84a71d8cccc52963d2959a737ca5",
                "md5": "bb283166d821233b3ee1ef7b89dddf53",
                "sha256": "3069bf65a354ef6f0a4ae60602eb8d9a3b01145ca20ae5394bf178c684014d32"
            },
            "downloads": -1,
            "filename": "koleo_cli-0.2.137.15-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bb283166d821233b3ee1ef7b89dddf53",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12",
            "size": 25920,
            "upload_time": "2024-12-14T20:55:24",
            "upload_time_iso_8601": "2024-12-14T20:55:24.855001Z",
            "url": "https://files.pythonhosted.org/packages/c1/43/a24e212a63005fe3dbf81fa323769faf84a71d8cccc52963d2959a737ca5/koleo_cli-0.2.137.15-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5447bf71583f5190a2f72cb07035a499c55bfe30bdb5cd9247631ff3efdd4da3",
                "md5": "e90469ad4f69231811ee45caff4ef211",
                "sha256": "9e352563a95cf401b82dd801e5fd89d115248efaa37c3b590d4c910dc122f343"
            },
            "downloads": -1,
            "filename": "koleo_cli-0.2.137.15.tar.gz",
            "has_sig": false,
            "md5_digest": "e90469ad4f69231811ee45caff4ef211",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 26376,
            "upload_time": "2024-12-14T20:55:26",
            "upload_time_iso_8601": "2024-12-14T20:55:26.979399Z",
            "url": "https://files.pythonhosted.org/packages/54/47/bf71583f5190a2f72cb07035a499c55bfe30bdb5cd9247631ff3efdd4da3/koleo_cli-0.2.137.15.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-14 20:55:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lzgirlcat",
    "github_project": "koleo-cli",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "rich",
            "specs": [
                [
                    "==",
                    "13.7.1"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.31.0"
                ]
            ]
        }
    ],
    "lcname": "koleo-cli"
}
        
Elapsed time: 0.71100s