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
Metadata
Release files for tagbiljett 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tagbiljett-0.1.2.tar.gz | 8.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tagbiljett-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.5 kB
Release files / tagbiljett-0.1.2.tar.gz
| Download URL | tagbiljett-0.1.2.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26edb21c0e6a41c19f87b1ebd0d78314c6a1363e197daa4e193964ebe22e02f6
|
|
BLAKE2b-256 checksum How to use checksums |
6fe5db25713b9161dedacf531e47c651a98f202e8208675dab7db4e28fa2bc06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / tagbiljett-0.1.2-py3-none-any.whl
| Download URL | tagbiljett-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4cc40246b4f36b07a262fcfb9e6f6b574b97a8cc3795afa96ddcc7f99ae656b9
|
|
BLAKE2b-256 checksum How to use checksums |
d2b03d180cc05b66064a5ee38a2c0ddbab0bb4739744ddd782a7864b3d7e0953
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|