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 details)
Built Distribution
File details
Details for the file tagbiljett-0.1.2.tar.gz
.
File metadata
- Download URL: tagbiljett-0.1.2.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26edb21c0e6a41c19f87b1ebd0d78314c6a1363e197daa4e193964ebe22e02f6 |
|
MD5 | 41c7fad746c467425bee71b1d9bc308d |
|
BLAKE2b-256 | 6fe5db25713b9161dedacf531e47c651a98f202e8208675dab7db4e28fa2bc06 |
File details
Details for the file tagbiljett-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: tagbiljett-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cc40246b4f36b07a262fcfb9e6f6b574b97a8cc3795afa96ddcc7f99ae656b9 |
|
MD5 | 503ddce73cc95b422327d08cb133bea1 |
|
BLAKE2b-256 | d2b03d180cc05b66064a5ee38a2c0ddbab0bb4739744ddd782a7864b3d7e0953 |