Skip to main content

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/.

Metadata

Release files for next-trains 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for next-trains 1.0.1
File Size Uploaded Provenance Actions
next_trains-1.0.1.tar.gz 129.9 kB Without provenance Details for next_trains-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for next-trains 1.0.1
File Interpreter ABI Platform Actions
next_trains-1.0.1-py3-none-any.whl Python 3 none any Details for next_trains-1.0.1-py3-none-any.whl

Total release size: 255.8 kB

Release files / next_trains-1.0.1.tar.gz

Download URL next_trains-1.0.1.tar.gz
Size 129.9 kB
Tags Source
SHA-256 checksum
How to use checksums
71863780b21487cdd98c51fc1bb8797be84ddb10814f0f88714b04d11c5f772c
BLAKE2b-256 checksum
How to use checksums
0af69c5bb6faeb15c1e93b3256c03909a544260d4ee305a1e306c2ca1428096d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / next_trains-1.0.1-py3-none-any.whl

Download URL next_trains-1.0.1-py3-none-any.whl
Size 125.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10d27387a6cdbd1121b7280d0cd9d01df35b9fe19c0b08c94cba0b14162538ac
BLAKE2b-256 checksum
How to use checksums
2155fb7a1d52ea8c91052f23c4106af5cbeb45e08df5b6b49025c3bad34320df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for next-trains 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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