bongoAn API wrapper for Iowa City's bus data | |
Download |
bongo Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Zach Williams
- Publisher web site:
- http://zachwill.com
bongo Tags
bongo Description
bongo is a simple API wrapper for the Iowa City bus data API -- mainly to use as an example for an upcoming blog post.InstallationYou can install the API wrapper using pip. pip install bongoUsage```python>>> from bongo import Bongo>>> b = Bongo()>>> # List of all Bongo routes.>>> b.routes(){"routes": }>>> # Info for a specific route and agency.>>> b.route('lantern', 'coralville'){"coralville's": {"lantern": "route"}}>>> # List of all stops.>>> b.stops(){"stops": }>>> # 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 >...Product's homepage
bongo Related Software