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:

It can also display the flights near a location.

Departure information is sent to the Go board server over WebSocket (MessagePack wire format, see the protocol), 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 IDFM engine uses the open data published by Île-de-France Mobilités.

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

The flight engine uses aircraft positions from adsb.fi (for personal, non-commercial use), or from adsb.lol (ODbL) if it's down; routes and airlines from adsbdb and hexdb.io (free for personal use that isn't public-facing); and locations of places © OpenStreetMap contributors, found using Nominatim (usage policy). The flight route data in adsbdb is the work of David Taylor, Edinburgh and Jim Mason, Glasgow, and may not be copied, published, or incorporated into other databases without the explicit permission of David J Taylor, Edinburgh.

Metadata

Release files for departure 2.1.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.1.2
File Size Uploaded Provenance Actions
departure-2.1.2.tar.gz 356.1 kB Without provenance Details for departure-2.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 726.0 kB

Release files / departure-2.1.2.tar.gz

Download URL departure-2.1.2.tar.gz
Size 356.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ddfe269ff84a8c826bbfddf667b25699e57a88a1857b81858a8d477916c4874e
BLAKE2b-256 checksum
How to use checksums
5c2bcc7bae7be590ed637019d72465af60de45f683736a24842a54f3488e7765
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.1.2-py3-none-any.whl

Download URL departure-2.1.2-py3-none-any.whl
Size 369.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9452c15c1f292338d6f41c23fd685d5357053441006ffea00cf500f0ce9da335
BLAKE2b-256 checksum
How to use checksums
48d2c12d0d8150e78be4ce406779904ea958c8a0d7559ac396401d92f50c7930
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.1.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