{ "info": { "author": "Dav0815", "author_email": "", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# TransportNSW\nPython lib to access Transport NSW information.\n\n## How to Use\n\n### Get an API Key\nAn OpenData account and API key is required to request the data. More information on how to create the free account can be found here:\nhttps://opendata.transport.nsw.gov.au/user-guide .\n\n### Get the stop and line\nThe libary will expect at least stop id to request the next leave events. The easieste way to get the ID is using Google Maps and clicking on one of the bus, train or ferry stops. The information pane one the left will show the relevant stop ID.\n\nAnother source for the stop ID and line is https://transportnsw.info/stops#/. It provides the option to search for a stop and the corresponding lines leaving from there. \n\n### Sample Code\nThe following example will request the next leave event for the bus route/line *199* from stop ID *209516*.\n\n**Code:**\n```python\nfrom TransportNSW import TransportNSW\nptnsw1 = TransportNSW.TransportNSW()\njourney = tnsw.get_departures('209516', '199', '', 'YOUR_API_KEY')\nprint(journey)\n```\n**Result:**\n```\n{'stop_id': '209516', 'route': '199', 'due': 4, 'delay': 0, 'real_time': 'n', 'destination': 'Palm Beach'}\n```\n* route: bus, train, ferry number\n* due: minutes till next leave\n* real_time: flag if the leave event has real_time information\n* delay: delay in minutes from the scheduled leave time\n* destination: end point of the route\n\nLeaving the line field empty will return any bus/train/ferry leaving next from a given stop.\n**Code:**\n```python\njourney = tnsw.get_departures('209516', '', '', 'YOUR_API_KEY')\n```\n\nSetting a destination will return all lines going there from the stop_id. Example for ferries leaving Balmain Warf towards Circular Quay \n**Code:**\n```python\njourney = tnsw.get_departures('10102008','','Circular Quay' 'YOUR_API_KEY')\n```\n\n### Errors\nNo leave event with wrong stop ID or not matching route.\n```\n{'stop_id': 'n/a', 'route': 'n/a', 'due': 'n/a', 'delay': 'n/a', 'real_time': 'n/a', destination: 'n/a'}\n```\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/Dav0815/TransportNSW", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "PyTransportNSW", "package_url": "https://pypi.org/project/PyTransportNSW/", "platform": "", "project_url": "https://pypi.org/project/PyTransportNSW/", "project_urls": { "Homepage": "https://github.com/Dav0815/TransportNSW" }, "release_url": "https://pypi.org/project/PyTransportNSW/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Get transport information from TransportNSW", "version": "0.1.1" }, "last_serial": 4450906, "releases": { "0.0.5": [ { "comment_text": "", "digests": { "md5": "ac990107c837ead0118cd64b6ce4c94b", "sha256": "1be6d5953c59b44c759b172c77d898b8e00e079004de6ad167fcc4dab775305c" }, "downloads": -1, "filename": "PyTransportNSW-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "ac990107c837ead0118cd64b6ce4c94b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16283, "upload_time": "2018-10-05T02:24:14", "url": "https://files.pythonhosted.org/packages/d8/f6/39c64176737c6fe6869d8095c815419d4ffae32390a3e6ae3f1983e175be/PyTransportNSW-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "32f20753d7b3d310c012e542d80cb5fa", "sha256": "3efbb2c46dc7089e08cccf0ed0552bfcbcea2dccc1f9011df8931da28c5ff192" }, "downloads": -1, "filename": "PyTransportNSW-0.0.5.tar.gz", "has_sig": false, "md5_digest": "32f20753d7b3d310c012e542d80cb5fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3501, "upload_time": "2018-10-05T02:24:15", "url": "https://files.pythonhosted.org/packages/04/7d/4d4e427ab7267a41fcd715c4911be67600a16d60b8c8468c9489e2cd9926/PyTransportNSW-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "18dcda3c319bad5483aca42242fd05d1", "sha256": "bf1e9346f4d16709a2c216da13f1551368b68b70f4083e800e1d017d5bf8f2b9" }, "downloads": -1, "filename": "PyTransportNSW-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "18dcda3c319bad5483aca42242fd05d1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16321, "upload_time": "2018-10-05T02:41:04", "url": "https://files.pythonhosted.org/packages/3e/d4/ebdb010c8a5bbe755f68ee596656a0874ccf1c00471df446476578e7e661/PyTransportNSW-0.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6398475a5cde0b794462f974f708082c", "sha256": "39c92dbdaf5b2ee1d532695a3085733f5525130f8cc8e2f69feaa6025c269e7f" }, "downloads": -1, "filename": "PyTransportNSW-0.0.6.tar.gz", "has_sig": false, "md5_digest": "6398475a5cde0b794462f974f708082c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3517, "upload_time": "2018-10-05T02:41:05", "url": "https://files.pythonhosted.org/packages/5e/01/028c13d362312a8fca03dec4a265e615f4bffce6b5eede508c721c540c2a/PyTransportNSW-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "9f611cfc7ca900d892388b7059c6cc8b", "sha256": "430bfcee02bc9d3fa811215f8df9ebdb2e5fb1871ea0b6e59bed4df83a2a2856" }, "downloads": -1, "filename": "PyTransportNSW-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "9f611cfc7ca900d892388b7059c6cc8b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16341, "upload_time": "2018-10-08T01:30:33", "url": "https://files.pythonhosted.org/packages/a2/95/fdbebf79a00390cdc078dc7e07f5d64d7c37f9b480fd5940153da9c22d25/PyTransportNSW-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1c0cffb6526ae95a482ee5373aee6c32", "sha256": "6c2d80876095a9803b2b610eb70a351e603d0ee8ce42d154274b438e2e2022ed" }, "downloads": -1, "filename": "PyTransportNSW-0.0.7.tar.gz", "has_sig": false, "md5_digest": "1c0cffb6526ae95a482ee5373aee6c32", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3543, "upload_time": "2018-10-08T01:30:35", "url": "https://files.pythonhosted.org/packages/a7/88/8b5b24d85c429dc285bcc0f00f8de2ecb00994d4abf0c470dd33d6087503/PyTransportNSW-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "0049eb853dc7af11e42d37ea377168dd", "sha256": "65cbd5847e3612d6a6780b1e2118bcc59239c6f7047ace2ab67692d46dfc4af7" }, "downloads": -1, "filename": "PyTransportNSW-0.0.8-py3-none-any.whl", "has_sig": false, "md5_digest": "0049eb853dc7af11e42d37ea377168dd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16337, "upload_time": "2018-10-08T08:43:51", "url": "https://files.pythonhosted.org/packages/4d/b9/32073d2409f7031bc1d8647af9843a3a0fd831a77d84ca404c1b732bf6bd/PyTransportNSW-0.0.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f26688dff9b588c08dcb6d128186aaa1", "sha256": "b4b6a428018108b32caf93f21d0c61415e98be0ff66fdb3c7ea4a6037accf99c" }, "downloads": -1, "filename": "PyTransportNSW-0.0.8.tar.gz", "has_sig": false, "md5_digest": "f26688dff9b588c08dcb6d128186aaa1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3543, "upload_time": "2018-10-08T08:43:53", "url": "https://files.pythonhosted.org/packages/06/20/655c82dd42d2f83f721bfc60507b0ee3d9299cea66392e84e257df341cb5/PyTransportNSW-0.0.8.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "b29d352b4d27bdf069228da878c290c8", "sha256": "0eccc52cd9b5b0c012352e98eba51ded245071478397169adc8a0247c0ab9c98" }, "downloads": -1, "filename": "PyTransportNSW-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "b29d352b4d27bdf069228da878c290c8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16698, "upload_time": "2018-11-04T10:21:11", "url": "https://files.pythonhosted.org/packages/50/93/72eaeca0bd590b0bbdf7a4ba7c68708fe16e11660d9ba97584bcbfa7ab57/PyTransportNSW-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "55b4814bb398382baef03ec2128f9442", "sha256": "5b4e8d58679be0a673e7da16b92a374f26fcafd50a3b1e04121c9864e24eacb3" }, "downloads": -1, "filename": "PyTransportNSW-0.1.0.tar.gz", "has_sig": false, "md5_digest": "55b4814bb398382baef03ec2128f9442", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3902, "upload_time": "2018-11-04T10:21:13", "url": "https://files.pythonhosted.org/packages/21/42/694ad5138607d71d5010d748e9e0a558e57e2b80c1b974622d13c0326386/PyTransportNSW-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "fe81abab0895910a0333a271e4b6ae24", "sha256": "82ea8a24117a7b6698079d2320eb6b6c477fc1afcc5af657ba43d837a9d10eee" }, "downloads": -1, "filename": "PyTransportNSW-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "fe81abab0895910a0333a271e4b6ae24", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16686, "upload_time": "2018-11-04T23:10:45", "url": "https://files.pythonhosted.org/packages/e9/4d/79916e6cd02394ec0d0cc4f87129df7c4ae4cd8aab1f41544ce9b6f2ff74/PyTransportNSW-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "07fe32fe16a00636a277dbfd05fb9dcf", "sha256": "c381d0e20c6522b1a1d9d4b4fc56487df7f8b2b08261ac224485d51ce5a35302" }, "downloads": -1, "filename": "PyTransportNSW-0.1.1.tar.gz", "has_sig": false, "md5_digest": "07fe32fe16a00636a277dbfd05fb9dcf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3885, "upload_time": "2018-11-04T23:10:49", "url": "https://files.pythonhosted.org/packages/f5/ea/e978a5662e2a2db76427258cbb2c089b934d08ddfdca07e4819c20a302f0/PyTransportNSW-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fe81abab0895910a0333a271e4b6ae24", "sha256": "82ea8a24117a7b6698079d2320eb6b6c477fc1afcc5af657ba43d837a9d10eee" }, "downloads": -1, "filename": "PyTransportNSW-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "fe81abab0895910a0333a271e4b6ae24", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16686, "upload_time": "2018-11-04T23:10:45", "url": "https://files.pythonhosted.org/packages/e9/4d/79916e6cd02394ec0d0cc4f87129df7c4ae4cd8aab1f41544ce9b6f2ff74/PyTransportNSW-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "07fe32fe16a00636a277dbfd05fb9dcf", "sha256": "c381d0e20c6522b1a1d9d4b4fc56487df7f8b2b08261ac224485d51ce5a35302" }, "downloads": -1, "filename": "PyTransportNSW-0.1.1.tar.gz", "has_sig": false, "md5_digest": "07fe32fe16a00636a277dbfd05fb9dcf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3885, "upload_time": "2018-11-04T23:10:49", "url": "https://files.pythonhosted.org/packages/f5/ea/e978a5662e2a2db76427258cbb2c089b934d08ddfdca07e4819c20a302f0/PyTransportNSW-0.1.1.tar.gz" } ] }