Skip to content

alxwrd/bartonbus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bartonbus 🚏

A Python wrapper around Trent Barton's live bus times

Build Status Downloads

I never got around to building this 😬

Example

>>> 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'

About

🚏 A Python wrapper around Trent Barton's live bus times

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published