Metadata-Version: 2.4
Name: departure
Version: 2.0.1
Summary: Get station information and departures from public transport operators, and control virtual or physical departure boards.
Home-page: https://github.com/spujadas/departure-python
Author: Sébastien Pujadas
Author-email: sebastien@pujadas.net
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: bdflib
Requires-Dist: click
Requires-Dist: uvicorn
Requires-Dist: aiofiles
Requires-Dist: zeep
Requires-Dist: fastapi
Requires-Dist: tabulate
Requires-Dist: pytz
Requires-Dist: websockets>=11.0.3
Requires-Dist: msgpack
Requires-Dist: gtfs-realtime-bindings
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

![Departure](https://raw.githubusercontent.com/spujadas/departure-python/master/docs/images/departure.png)

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:

- [London Underground](https://tfl.gov.uk/modes/tube/) (UK),
- [National Rail](https://www.nationalrail.co.uk/) (UK),
- [Nederlandse Spoorwegen](https://www.ns.nl/) (Netherlands),
- [Île-de-France Mobilités (IDFM)](https://www.iledefrance-mobilites.fr/) (France),
- [SNCF](https://www.sncf.com/) (France).

Departure information is sent to the [Go board server](https://github.com/spujadas/departure-board-server-go) 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](https://raw.githubusercontent.com/spujadas/departure-python/master/docs/images/departure-server-sncf-paris-montparnasse.gif)

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

![Departure board - National Rail (UK) - Victoria station](https://raw.githubusercontent.com/spujadas/departure-python/master/docs/images/departure-board-national-rail-victoria.gif)

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

![Departure web front end - SNCF Montparnasse](https://raw.githubusercontent.com/spujadas/departure-python/master/docs/images/departure-web-sncf-montparnasse.gif)



### 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 SNCF engine uses the [Réseau SNCF TGV, Intercités et TER](https://transport.data.gouv.fr/datasets/horaires-sncf) dataset published on transport.data.gouv.fr, which is released under the [ODbL (Open Database License)](https://opendatacommons.org/licenses/odbl/).
