{ "info": { "author": "Zach Williams", "author_email": "hey@zachwill.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7" ], "description": "Bongo\n=====\n\nA simple API wrapper for the [Iowa City bus data\nAPI](http://www.ebongo.org/api/) -- mainly to use as an example for an\nupcoming blog post.\n\n\nInstallation\n------------\n\nYou can install the API wrapper using [`pip`](http://pypi.python.org/pypi/pip).\n\n pip install bongo\n\n\nUsage\n-----\n\nThere are two ways of interacting with the Bongo API.\n\nThe first way is just interacting with the `bongo` module.\n\n```python\n>>> import bongo\n\n>>> bongo.routes()\n{\"routes\": [1234, 5678, 9999]}\n\n>>> bongo.route('lantern', 'coralville')\n{\"coralville's\": {\"lantern\": \"route\"}}\n\n>>> bongo.stops()\n{\"stops\": [1234, 5678, 9999]}\n\n>>> bongo.stop(8350)\n{\"stop\": {\"8350\": \"information\"}}\n\n>>> bongo.predict(8350)\n{\"stop\": {\"8350\": \"predictions\"}}\n```\n\nThe second way is interacting with the `Bongo` class.\n\n```python\n>>> from bongo import Bongo\n>>> b = Bongo()\n\n>>> # List of all Bongo routes.\n>>> b.routes()\n{\"routes\": [1234, 5678, 9999]}\n\n>>> # Info for a specific route and agency.\n>>> b.route('lantern', 'coralville')\n{\"coralville's\": {\"lantern\": \"route\"}}\n\n>>> # List of all stops.\n>>> b.stops()\n{\"stops\": [1234, 5678, 9999]}\n\n>>> # Information for a specific stop.\n>>> b.stop(8350)\n{\"stop\": {\"8350\": \"information\"}}\n\n>>> # Predict the arrival times at a specific stop.\n>>> b.predict(8350)\n{\"stop\": {\"8350\": \"predictions\"}}\n\n>>> # Bongo can also be used to return XML data.\n>>> Bongo('xml').routes()\n\n```\n\n\nCopyright\n---------\n\nCopyright (c) 2012 Code for America. See [LICENSE][] for details.\n\n[license]: https://github.com/codeforamerica/bongo/blob/master/LICENSE.mkd\n\n[![Code for America Tracker](http://stats.codeforamerica.org/codeforamerica/cfa_template.png)][tracker]\n\n[tracker]: http://stats.codeforamerica.org/projects/bongo", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "bongo", "package_url": "https://pypi.org/project/bongo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/bongo/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/bongo/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "An API wrapper for Iowa City's bus data", "version": "0.2.1" }, "last_serial": 786967, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5305c9b4aa290710795e302be60d7c0f", "sha256": "6ff9322033bb2b4c5220408cc01a66a44d46067ec32243f04cd06bfcdde213fe" }, "downloads": -1, "filename": "bongo-0.1-py2.7.egg", "has_sig": false, "md5_digest": "5305c9b4aa290710795e302be60d7c0f", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 4108, "upload_time": "2012-03-01T07:59:17", "url": "https://files.pythonhosted.org/packages/47/5d/93d8d66e473d45cbd94413b9d69c7b0e399b7a99ea347e400ed696730e9a/bongo-0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "8938fb7c5e358646128bbb6e8af7307a", "sha256": "6a4b912d7ce570612000e74d09ebbb42ef41a218496d7b63739838c6db8765ec" }, "downloads": -1, "filename": "bongo-0.1.tar.gz", "has_sig": false, "md5_digest": "8938fb7c5e358646128bbb6e8af7307a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2209, "upload_time": "2012-03-01T07:59:16", "url": "https://files.pythonhosted.org/packages/fb/55/e07c9987b11f03a7c5b70499107c9eb1b55814e07b060df6751c3727b83d/bongo-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "bce7247b151e272ee724e0ea05228d0d", "sha256": "225e7a116e2a4c05ba4d45480d81a77456d7c4f3e49dd74a9fe772ab5057b441" }, "downloads": -1, "filename": "bongo-0.2.tar.gz", "has_sig": false, "md5_digest": "bce7247b151e272ee724e0ea05228d0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2796, "upload_time": "2012-03-13T16:10:05", "url": "https://files.pythonhosted.org/packages/a1/57/a8383db230ba250c4f30f8d507e228f1afe07a11bf7705952719f50c7dd7/bongo-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "6223fdd220359ed0bff3e26e296b2f27", "sha256": "386dac0d9223131d17496d7760eedfc8cafd3153774681e283cc97b149f6d9f8" }, "downloads": -1, "filename": "bongo-0.2.1.tar.gz", "has_sig": false, "md5_digest": "6223fdd220359ed0bff3e26e296b2f27", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2784, "upload_time": "2012-07-09T07:03:33", "url": "https://files.pythonhosted.org/packages/05/dc/5bda8f86494a61614f06a58586ffadc47365e21bf940344839ba61d4c671/bongo-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6223fdd220359ed0bff3e26e296b2f27", "sha256": "386dac0d9223131d17496d7760eedfc8cafd3153774681e283cc97b149f6d9f8" }, "downloads": -1, "filename": "bongo-0.2.1.tar.gz", "has_sig": false, "md5_digest": "6223fdd220359ed0bff3e26e296b2f27", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2784, "upload_time": "2012-07-09T07:03:33", "url": "https://files.pythonhosted.org/packages/05/dc/5bda8f86494a61614f06a58586ffadc47365e21bf940344839ba61d4c671/bongo-0.2.1.tar.gz" } ] }