of obstacles » Got a flat screen with wall mount » Useful to just look at a screen and see the next departures Markus Holtermann // PyCon.DE 2013 // CC-BY-SA 1
data source def call(self): """Needs to return a Response""" class Response(object): # Returned by a QueryApi, contains list of Departures @property def departures(self): return self._departures @total_ordering class Departure(object): # Start and end station, next departure time def __init__(self, start, end, when, line, ...): # Some magic happens here Markus Holtermann // PyCon.DE 2013 // CC-BY-SA 3
are provided on-the-fly""" class ScheduledDepartureQueryApi(QueryApi): """Checks for :class:`Vehicle` departures""" class Vehicle(): S = 64 U = 32 TRAM = 16 BUS = 8 FERRY = 4 RB = 2 IC = 1 Markus Holtermann // PyCon.DE 2013 // CC-BY-SA 4