A command-line tool for querying SJ ticket prices
Project description
tagbiljett
A command-line tool for querying SJ ticket prices
Installation
Use the package manager pip to install tagbiljett.
pip install tagbiljett
Usage
> tagbiljett --help
Usage: tagbiljett [OPTIONS] %Y-%m-%dT%H:%M FROM TO
Query current SJ ticket prices for a given journey
Options:
-a, --arrival %Y-%m-%dT%H:%M Arrival date and time.
-n, --changes INTEGER Exact number of changes.
-h, --help Show this message and exit.
> ./cron.sh trains.csv prices.txt
Using the container:
> docker run ghcr.io/jwindhager/tagbiljett --help
Usage: tagbiljett [OPTIONS] %Y-%m-%dT%H:%M FROM TO
Query current SJ ticket prices for a given journey
Options:
-a, --arrival %Y-%m-%dT%H:%M Arrival date and time.
-n, --changes INTEGER Exact number of changes.
-h, --help Show this message and exit.
> docker run -v trains.csv:/usr/src/app/trains.csv -v tagbiljett-data:/usr/src/app/data --entrypoint /bin/bash ghcr.io/jwindhager/tagbiljett cron.sh trains.csv data/prices.txt
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tagbiljett-0.1.2.tar.gz
(8.3 kB
view hashes)
Built Distribution
Close
Hashes for tagbiljett-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cc40246b4f36b07a262fcfb9e6f6b574b97a8cc3795afa96ddcc7f99ae656b9 |
|
MD5 | 503ddce73cc95b422327d08cb133bea1 |
|
BLAKE2b-256 | d2b03d180cc05b66064a5ee38a2c0ddbab0bb4739744ddd782a7864b3d7e0953 |