Skip to main content

An imagining of a combined Arrivals and Departure board.

Project description

Next Trains

An imagining of a combined Arrivals and Departure board.

A screenshot of the next-trains app

My wee one loves trains - obviously - so any time we can swing past the local station and see some is worth the detour. This is a simple web app that calls a Rail Data Marketplace API; getting the next few arrivals and departures to help us schedule a visit. I then spruce it up a bit with a fun font to make it look more like a real Departures board.

Installing

$ pip install next-trains

$ cat <<EOF >.env
RAIL_DATA_API_KEY={{ paste your API key here }}
DEFAULT_CRS={{ paste your home station's CRS here }}
EOF

Running

$ trains

Development

$ pip install -e .[dev]

$ ./lint-and-test
$ ./build-and-upload

Credits

The data is from Live Arrival and Departure Boards - Staff Version by Rail Delivery Group under an open licence.

The fonts are London TFL Dot Matrix Typeface by Sean Petykowski under SIL Open Font License.

License

Next Trains - An imagining of a combined Arrivals and Departure board.

Copyright (C) 2025-2026 Mike Coats

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

next_trains-1.0.0.tar.gz (204.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

next_trains-1.0.0-py3-none-any.whl (124.2 kB view details)

Uploaded Python 3

File details

Details for the file next_trains-1.0.0.tar.gz.

File metadata

  • Download URL: next_trains-1.0.0.tar.gz
  • Upload date:
  • Size: 204.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for next_trains-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7e337a0f862b54c1618229feb96a2faf0734605ad046de2d796ba2aa8ecd1b48
MD5 6adb256f1fee1d150bfddb73b52de1c9
BLAKE2b-256 f84a27779339e9bc434214e290b443a551bae3304b533703b7565e93dfa7ab57

See more details on using hashes here.

File details

Details for the file next_trains-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: next_trains-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 124.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for next_trains-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87ed010b535c50a25adec9b71c6f485e2b31ff26bcb7b52a95e537127646e65c
MD5 6eb4cc8f7b76572c4a05bf16034c94b3
BLAKE2b-256 0293553a7e2d4f4fb0a9887600060399fe9015f57e1633e0e5948c0a2e474bcb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page