https://github.com/spujadas/departure-python
CLI, web API server, and Python library, to get departure information from public transport operators, and to update a virtual or physical departure board with this information.
https://github.com/spujadas/departure-python
cli departure-board london-underground national-rail nederlandse-spoorwegen python ratp sncf transilien web-api
Last synced: 7 months ago
JSON representation
CLI, web API server, and Python library, to get departure information from public transport operators, and to update a virtual or physical departure board with this information.
- Host: GitHub
- URL: https://github.com/spujadas/departure-python
- Owner: spujadas
- License: mit
- Created: 2020-10-04T09:06:22.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-11T17:26:35.000Z (about 5 years ago)
- Last Synced: 2025-02-01T15:23:33.702Z (11 months ago)
- Topics: cli, departure-board, london-underground, national-rail, nederlandse-spoorwegen, python, ratp, sncf, transilien, web-api
- Language: Python
- Homepage:
- Size: 3.03 MB
- Stars: 9
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

This Python package provides a CLI, a web API server, and 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:
- [London Underground](https://tfl.gov.uk/modes/tube/) (UK),
- [National Rail](https://www.nationalrail.co.uk/) (UK),
- [Nederlandse Spoorwegen](https://www.ns.nl/) (Netherlands)
- [RATP](https://www.ratp.fr/) (France),
- [SNCF](https://www.sncf.com/) (France),
- [Transilien](https://www.transilien.com/) (France).
Departure information can be sent to a departure board server that supports the [Departure protocol buffer message format](https://github.com/spujadas/departure-proto).
As an illustration, the image below was created using the [Python Departure board server](https://github.com/spujadas/departure-board-servers-python) running the Pygame back end.

The video clip below was made using a physical LED matrix board running the [C++ Departure board server](https://github.com/spujadas/departure-board-servers-cpp) on a Raspberry Pi.

The [official web front end](https://github.com/spujadas/departure-front-end) provides a human-friendly way to interact with the web API server.

### Documentation
See the [Departure-Python documentation web page](http://departure-python.readthedocs.io/) for complete instructions on how to use this Python package.
### About
Written by [Sébastien Pujadas](https://pujadas.net/), released under the [MIT license](https://github.com/spujadas/departure-python/blob/master/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](https://www.nationalrail.co.uk/). 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](https://www.rijdendetreinen.nl/over/open-data).
The built-in WSDL file used to access RATP's real-time web service was extracted from [RATP's API development kit](https://data.ratp.fr/page/temps-reel/).
The built-in list of SNCF stations (used by the SNCF and Transilien engines) was obtained from the [Gares de voyageurs](https://ressources.data.sncf.com/explore/dataset/referentiel-gares-voyageurs) dataset, which is released under the [ODbL (Open Database License)](https://data.sncf.com/pages/cgu/A1#A1).
The built-in list of Transilien stations and stops was obtained from the [Gares et points d'arrêt du réseau Transilien](https://ressources.data.sncf.com/explore/dataset/sncf-gares-et-arrets-transilien-ile-de-france/) dataset, which is released under the [ODbL (Open Database License)](https://data.sncf.com/pages/cgu/A1#A1).