Skip to content
Minimalistic Python client for the NextBus public API for real-time transit arrival data
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
py_nextbus Prevent escaping of & and = in query string Jun 21, 2018
.gitattributes :octocat: Added .gitattributes & .gitignore files Jun 12, 2018
.gitignore :octocat: Added .gitattributes & .gitignore files Jun 12, 2018
LICENSE Package the project Jun 15, 2018 Add readme Jun 15, 2018

A minimalistic Python 3 client to simplify making requests to the NextBus API. Response content can be returned as either JSON or XML, using the respective NextBus public feed.

All commands in the NextBus API as of revision 1.23 are supported.

See the NextBus XML feed documentation for more information:

Note: Other than the output format, the NextBus XML feed and JSON feeds are the same. The XML feed documentation also applies to the JSON feed.


Install with Pip:

pip install py-nextbus


>>> import py_nextbus
>>> client = py_nextbus.NextBusClient(output_format='json')
>>> agencies = client.get_agency_list()
You can’t perform that action at this time.