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

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

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.0
File Size Uploaded Provenance Actions
departure-2.1.0.tar.gz 352.6 kB Without provenance Details for departure-2.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 720.6 kB

Release files / departure-2.1.0.tar.gz

Download URL departure-2.1.0.tar.gz
Size 352.6 kB
Tags Source
SHA-256 checksum
How to use checksums
288971424d8a74de682ad2e30c68e4cbae2d26eb009ff3e8748045782e95fa4c
BLAKE2b-256 checksum
How to use checksums
b72cb0e4bac8fefb7c58300a6528b6b713423ec52f29f5c13a105208d071b339
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.0-py3-none-any.whl

Download URL departure-2.1.0-py3-none-any.whl
Size 368.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f202b5d0ef65a08ce0dbe17beca19752ad0b3f97a63a59a78bfd54e3aa7011e5
BLAKE2b-256 checksum
How to use checksums
f9961ffa40f2dec16383495dc399acc1ddecd1ba4c8bd31aaa89e62bee5ec1ba
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.0

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