An imagining of a combined Arrivals and Departure board.
Project description
Next Trains
An imagining of a combined Arrivals and Departure board.
My two-year-old loves trains - obviously - so any time we can swing past the station and see them 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 spruced it up a bit with a fun font to make it look a bit 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 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file next_trains-0.2.0.tar.gz.
File metadata
- Download URL: next_trains-0.2.0.tar.gz
- Upload date:
- Size: 203.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e97b642b0159a2b061c55fc35ff02490ee6033030f753dfe6492f0bba0a87fa6
|
|
| MD5 |
870ac895178be7e95936c441a5deb771
|
|
| BLAKE2b-256 |
ad9c74b97387947c390cfa05d7b1691aca30fbb3bf9e2c0f456840fd358485e5
|
File details
Details for the file next_trains-0.2.0-py3-none-any.whl.
File metadata
- Download URL: next_trains-0.2.0-py3-none-any.whl
- Upload date:
- Size: 124.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44e34349598cf1cff33d97e061a39e0e4ce3b54015a2d488bffb0f8b8a304513
|
|
| MD5 |
58aca23abf536a14a63425c6ac2ed168
|
|
| BLAKE2b-256 |
1e96fb71ee448443a334c4574a3d36f3b310ae0025690d451abaaf75573b72de
|