python client for nextbus api
Simple python wrapper around the nextbus api. See the nextbus api docs http://www.nextbus.com/xmlFeedDocs/NextBusXMLFeed.pdf
sudo pip install python-nextbus
or sudo easy_install python-nextbus
Depends on requests and lxml
>>> import nextbus
>>> agencies = nextbus.agency_list()
>>> agencies
[Agency(AC Transit), Agency(CMRT and Howard Transit), Agency(California University of Pennsylvania),...
>>> routes = nextbus.route_list(agency='sf-muni')
>>> routes
[Route(F-Market & Wharves), Route(J-Church), Route(KT-Ingleside/Third Street),....
>>> route = nextbus.route_config(agency='sf-muni', route='1')
>>> route
Route(1-California)