Skip to main content

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

MIT

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)

Source distribution for tagbiljett 0.1.2
File Size Uploaded
tagbiljett-0.1.2.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tagbiljett 0.1.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page