{ "info": { "author": "Dale Nguyen", "author_email": "dungnq@itbox4vn.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Bus Tracker (NextBus)\n\n[![PyPI version](https://badge.fury.io/py/bustracker.svg)](https://badge.fury.io/py/bustracker)\n[![Build Status](https://travis-ci.org/dalenguyen/bustracker.svg?branch=master)](https://travis-ci.org/dalenguyen/bustracker)\n\nPython module to get bus data from [NextBus](http://webservices.nextbus.com/)\n\n*This is an ongoing project. If you have any requests or contributions, please create a [ticket](https://github.com/dalenguyen/bustracker/issues)*\n\n## Install\n\nFrom PyPI with pip\n\n```sh\npip install bustracker\n```\n\n## Usage examples\n\n```python\nfrom bustracker import BusTracker\n# Agency list is from http://webservices.nextbus.com/service/publicXMLFeed?command=agencyList\nagency = 'ttc'\nbus = BusTracker(agency)\n\n# get prediction for bus stops\nstops = [\n {'routeTag': 506, 'stopTag': 3292}\n]\n\npredictions = bus.get_predictions(stops)\n\nprint(predictions)\n```\n\nThe result is a dictionary of predictions\n\n```JSON\n{\n \"predictions\": {\n \"message\": {\n \"text\": \"TTC Information 416-393-4636 (INFO)\",\n \"priority\": \"Normal\"\n },\n \"agencyTitle\": \"Toronto Transit Commission\",\n \"routeTag\": \"506\",\n \"routeTitle\": \"506-Carlton\",\n \"direction\": {\n \"title\": \"West - 506 Carlton towards High Park\",\n \"prediction\": [\n {\n \"isDeparture\": \"false\",\n \"minutes\": \"2\",\n \"seconds\": \"134\",\n \"tripTag\": \"38216487\",\n \"vehicle\": \"4189\",\n \"block\": \"506_9_90\",\n \"branch\": \"506\",\n \"dirTag\": \"506_1_506\",\n \"epochTime\": \"1563543576881\"\n },\n ...\n ]\n },\n \"stopTitle\": \"Gerrard St East At Jones Ave\",\n \"stopTag\": \"3292\"\n },\n \"copyright\": \"All data copyright Toronto Transit Commission 2019.\"\n}\n```\n\n## For development\n\n### Testing\n\n```bash\npytest tests/test.py\n```\n\n## References\n\n[NextBus Guide](http://www.nextbus.com/xmlFeedDocs/NextBusXMLFeed.pdf)\n[Get Agency List](http://webservices.nextbus.com/service/publicXMLFeed?command=agencyList)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dalenguyen/bustracker", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "bustracker", "package_url": "https://pypi.org/project/bustracker/", "platform": "", "project_url": "https://pypi.org/project/bustracker/", "project_urls": { "Homepage": "https://github.com/dalenguyen/bustracker" }, "release_url": "https://pypi.org/project/bustracker/0.0.3/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "Get bus predictions from NextBus", "version": "0.0.3" }, "last_serial": 5557039, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "042a148f5ecb6f85cba7fbd63a83e9d4", "sha256": "1b161853e3d1a2d1057d5fa4e14ad5d12388f14f63c451da2144ad7e051418f2" }, "downloads": -1, "filename": "bustracker-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "042a148f5ecb6f85cba7fbd63a83e9d4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15635, "upload_time": "2019-07-19T14:11:40", "url": "https://files.pythonhosted.org/packages/e7/dc/f6013f4ccbc7a33ee13a0e92e0a3ca5207e136a43f21c7de35a85c9a108f/bustracker-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f1fbaecce946573ba597e963375817e1", "sha256": "7ca700dc4810db284fe23552d716c22bde8614852494f35a64345973fb6e9055" }, "downloads": -1, "filename": "bustracker-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f1fbaecce946573ba597e963375817e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2771, "upload_time": "2019-07-19T14:11:42", "url": "https://files.pythonhosted.org/packages/c8/06/a7d631dc25191271e09bfd750aa0a41deedebd8791e4e3b5a8e00bbe65c4/bustracker-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "303d502357d7de63e4c4cdd123889107", "sha256": "438c4b782c66321087828ae7b6a62870d2018b15e096cca434b2457783acd256" }, "downloads": -1, "filename": "bustracker-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "303d502357d7de63e4c4cdd123889107", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15632, "upload_time": "2019-07-19T15:02:43", "url": "https://files.pythonhosted.org/packages/ee/45/37919790022ef57bdbaafea13b086c3d38258f8affc1bc183e319f5035f2/bustracker-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1cb86c3d3f6f1ed7f22c0da76da47815", "sha256": "810be14c234f9260f8c9b310611455b9296d270015601a6e50d6cc6a8d77ac0b" }, "downloads": -1, "filename": "bustracker-0.0.2.tar.gz", "has_sig": false, "md5_digest": "1cb86c3d3f6f1ed7f22c0da76da47815", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2763, "upload_time": "2019-07-19T15:02:45", "url": "https://files.pythonhosted.org/packages/90/b4/e06709e86c5ca617c929627a8afc8faca7061b85de7a1d84fdbf8c9458a0/bustracker-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "e4b7e9bbdcca0eeb362d54ec618dcbed", "sha256": "f2dfbb983b3fd2149fce5a898ed3250a54feb3eec591b1137e52a49f757bbc88" }, "downloads": -1, "filename": "bustracker-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "e4b7e9bbdcca0eeb362d54ec618dcbed", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15628, "upload_time": "2019-07-19T15:09:21", "url": "https://files.pythonhosted.org/packages/3b/b4/ce39e7405aaee6dcdb66cc7401cf8a855f37abbcd4a7fbdb161b5d765822/bustracker-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "43d7e9037fa68ef1ed21c9415d42cde1", "sha256": "9784ac271f281072ea652d6cb97014504e3b2d81c58399eca1db9cd08c987416" }, "downloads": -1, "filename": "bustracker-0.0.3.tar.gz", "has_sig": false, "md5_digest": "43d7e9037fa68ef1ed21c9415d42cde1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2755, "upload_time": "2019-07-19T15:09:24", "url": "https://files.pythonhosted.org/packages/4c/63/218f025cab03da7a18389ade72935c51124c929f70094d5905a42d0d5a65/bustracker-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e4b7e9bbdcca0eeb362d54ec618dcbed", "sha256": "f2dfbb983b3fd2149fce5a898ed3250a54feb3eec591b1137e52a49f757bbc88" }, "downloads": -1, "filename": "bustracker-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "e4b7e9bbdcca0eeb362d54ec618dcbed", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15628, "upload_time": "2019-07-19T15:09:21", "url": "https://files.pythonhosted.org/packages/3b/b4/ce39e7405aaee6dcdb66cc7401cf8a855f37abbcd4a7fbdb161b5d765822/bustracker-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "43d7e9037fa68ef1ed21c9415d42cde1", "sha256": "9784ac271f281072ea652d6cb97014504e3b2d81c58399eca1db9cd08c987416" }, "downloads": -1, "filename": "bustracker-0.0.3.tar.gz", "has_sig": false, "md5_digest": "43d7e9037fa68ef1ed21c9415d42cde1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2755, "upload_time": "2019-07-19T15:09:24", "url": "https://files.pythonhosted.org/packages/4c/63/218f025cab03da7a18389ade72935c51124c929f70094d5905a42d0d5a65/bustracker-0.0.3.tar.gz" } ] }