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 .[optional]

$ ./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.1.tar.gz (129.9 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.1-py3-none-any.whl (125.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: next_trains-1.0.1.tar.gz
  • Upload date:
  • Size: 129.9 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.1.tar.gz
Algorithm Hash digest
SHA256 71863780b21487cdd98c51fc1bb8797be84ddb10814f0f88714b04d11c5f772c
MD5 fcc02556438b0209e79ea2ed0e456240
BLAKE2b-256 0af69c5bb6faeb15c1e93b3256c03909a544260d4ee305a1e306c2ca1428096d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: next_trains-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 125.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 10d27387a6cdbd1121b7280d0cd9d01df35b9fe19c0b08c94cba0b14162538ac
MD5 af7300379497c36324d552a3ec2ce787
BLAKE2b-256 2155fb7a1d52ea8c91052f23c4106af5cbeb45e08df5b6b49025c3bad34320df

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