A Python wrapper around Trent Barton's live bus times
I never got around to building this 😬
>>> import bartonbus
>>> service = bartonbus.lookup_service("Red Arrow")
>>> service.directions
[<Direction('Derby > Nottingham', service='Red Arrow')>, ...]
>>> service.stops
[<Stop('Derby Bus Station (bay 5)')>, <Stop('Morledge (stop C8)')>, ...]
>>> service.stops[0].arrivals
[<Arrival('2018-11-14T12:59:16.7059878+00:00', service='Red Arrow'), ...]
>>> next_bus = service.stops[0].arrivals[0]
>>> next_bus.eta
'9 minutes from now'