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

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.2
File Size Uploaded Provenance Actions
departure-2.0.2.tar.gz 333.4 kB Without provenance Details for departure-2.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 683.9 kB

Release files / departure-2.0.2.tar.gz

Download URL departure-2.0.2.tar.gz
Size 333.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c2f5d193e3a5c5c4d54310bb15924aba33304937fdaef5089659af80c98d5e2e
BLAKE2b-256 checksum
How to use checksums
fdb227945d85302473a6e4802cec315b0f2603bb2dfac5c705c5cd2214f8303a
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.2-py3-none-any.whl

Download URL departure-2.0.2-py3-none-any.whl
Size 350.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8eb33685b9f54eee1542d10bd90455b3872d10fa1914b39ff6222a7bcfb2d5d0
BLAKE2b-256 checksum
How to use checksums
7d4256bc6cf221d325e78a5f767149203dc6f030db374c986586a99a48ee8f5d
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.2

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