Skip to main content

Minimalistic Python client for the NextBus public API for real-time transit arrival data

Project description

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: https://www.nextbus.com/xmlFeedDocs/NextBusXMLFeed.pdf

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.

Installation

Install with Pip:

pip install py-nextbus

Usage

>>> import py_nextbus
>>> client = py_nextbus.NextBusClient(output_format='json')
>>> agencies = client.get_agency_list()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_nextbus-0.1.2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_nextbus-0.1.2-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file py_nextbus-0.1.2.tar.gz.

File metadata

  • Download URL: py_nextbus-0.1.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for py_nextbus-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7d3e7a2607b63a6e184abebad09e62af0c61979442e095389a65359bf738fc4c
MD5 360257582b4e33df4e264ea6a51e3c97
BLAKE2b-256 f5046a23b5c057ae74ec3da48fbc008d6bae489f64db39c19c6ede94da9aea57

See more details on using hashes here.

File details

Details for the file py_nextbus-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for py_nextbus-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f745445c98767288d71148e73f8c42f82767fca23e1fa5a220aaacf70c05123b
MD5 3b51e2635a7c168e8f866531a4a741cf
BLAKE2b-256 9c8ca3144eb7d8c136e7dcc4a92404b788e2f90d10cd78cbb33a38f261478f16

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page