Skip to main content

Departure

This Python package provides a CLI, a web API server, and a library to:

  • get station information and departures from public transport operators,
  • update a virtual or physical departure board with departure information for a station.

Departure has out-of-the-box support for the following operators:

Departure information is sent to the Go board server over WebSocket (MessagePack wire format), which composites and animates the content at 30 FPS on a virtual display or a physical LED matrix.

The image below shows the content of a board, as displayed by the Go board server.

Virtual departure board - SNCF (FR) - Paris Montparnasse

The video clip below was made using a physical LED matrix board on a Raspberry Pi.

Departure board - National Rail (UK) - Victoria station

The official web front end provides a human-friendly way to interact with the web API server.

Departure web front end - SNCF Montparnasse

About

Written by Sébastien Pujadas, released under the MIT license.

All product names, logos, and brands are property of their respective owners. All company, product and service names used in this project are for identification purposes only. Use of these names, logos, and brands does not imply endorsement.

The London Underground (TfL Tube) engine is powered by TfL Open Data. Contains OS data © Crown copyright and database rights 2016' and Geomni UK Map data © and database rights [2019].

The National Rail engine is powered by National Rail Enquiries. The built-in list of National Rail station codes was derived from https://www.nationalrail.co.uk/stations_destinations/48541.aspx.

The built-in list of Nederlandse Spoorwegen station codes was retrieved from Rijden de Treinen.

The SNCF engine uses the Réseau SNCF TGV, Intercités et TER dataset published on transport.data.gouv.fr, which is released under the ODbL (Open Database License).

Metadata

Release files for departure 2.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 departure 2.0.1
File Size Uploaded Provenance Actions
departure-2.0.1.tar.gz 332.1 kB Without provenance Details for departure-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for departure 2.0.1
File Interpreter ABI Platform Actions
departure-2.0.1-py3-none-any.whl Python 3 none any Details for departure-2.0.1-py3-none-any.whl

Total release size: 682.2 kB

Release files / departure-2.0.1.tar.gz

Download URL departure-2.0.1.tar.gz
Size 332.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d06a61632582c25eb7456e881f1cfa736f864f7f24f1cc0b020a06e0266476d3
BLAKE2b-256 checksum
How to use checksums
d6605c3cf4e7fe4f3dc1202c8d887ddd5c0bb90f368a9ea06c35c63d8ed4c0c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / departure-2.0.1-py3-none-any.whl

Download URL departure-2.0.1-py3-none-any.whl
Size 350.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f69ae8d8d90dab5ea5f254bdff81d34a0c0b4de3e2c9aa8584c4d7225108f463
BLAKE2b-256 checksum
How to use checksums
c6793ec235f3116044ceb372078c8b16004b4cbf3a5e0b5eda2f0247fa8063b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for departure 2.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