Skip to main content

An API wrapper for Iowa City's bus data

Project description

Bongo
=====

A simple API wrapper for the [Iowa City bus data
API](http://www.ebongo.org/api/) -- mainly to use as an example for an
upcoming blog post.


Installation
------------

You can install the API wrapper using [`pip`](http://pypi.python.org/pypi/pip).

pip install bongo


Usage
-----

```python
>>> from bongo import Bongo
>>> b = Bongo()

>>> # List of all Bongo routes.
>>> b.routes()
{"routes": [1234, 5678, 9999]}

>>> # Info for a specific route and agency.
>>> b.route('lantern', 'coralville')
{"coralville's": {"lantern": "route"}}

>>> # List of all stops.
>>> b.stops()
{"stops": [1234, 5678, 9999]}

>>> # Information for a specific stop.
>>> b.stop(8350)
{"stop": {"8350": "information"}}

>>> # Predict the arrival times at a specific stop.
>>> b.predict(8350)
{"stop": {"8350": "predictions"}}

>>> # Bongo can also be used to return XML data.
>>> Bongo('xml').routes()
<ohai><xml><data></data></xml></ohai>
```

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

bongo-0.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

bongo-0.1-py2.7.egg (4.1 kB view details)

Uploaded Source

File details

Details for the file bongo-0.1.tar.gz.

File metadata

  • Download URL: bongo-0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bongo-0.1.tar.gz
Algorithm Hash digest
SHA256 6a4b912d7ce570612000e74d09ebbb42ef41a218496d7b63739838c6db8765ec
MD5 8938fb7c5e358646128bbb6e8af7307a
BLAKE2b-256 fb55e07c9987b11f03a7c5b70499107c9eb1b55814e07b060df6751c3727b83d

See more details on using hashes here.

File details

Details for the file bongo-0.1-py2.7.egg.

File metadata

  • Download URL: bongo-0.1-py2.7.egg
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bongo-0.1-py2.7.egg
Algorithm Hash digest
SHA256 6ff9322033bb2b4c5220408cc01a66a44d46067ec32243f04cd06bfcdde213fe
MD5 5305c9b4aa290710795e302be60d7c0f
BLAKE2b-256 475d93d8d66e473d45cbd94413b9d69c7b0e399b7a99ea347e400ed696730e9a

See more details on using hashes here.

Supported by

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