{ "info": { "author": "pinlin", "author_email": "moneycat711@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# ptx_api\n\nA Python Module for get data from PTX.\n\n## Install\n\n```bash\npip install ptx-api\n```\n\n## Usage\n\nCreate a `PTX` object.\n```python\n>>> from ptx_api import PTX\n>>> ptx = PTX(\"api_id\", \"api_key\")\n```\n\nUse `get()` to get resource from PTX platform.\n```python\n>>> ptx.get(\"/v2/Bus/Route/city/Taipei\", params={\"$top\": 5})\n[{'RouteUID': 'TPE10132', 'RouteID': '10132', 'HasSubRoutes': True, 'Operators': [{'OperatorID': '100', 'OperatorName': {'Zh_tw': '\u81fa\u5317\u5ba2\u904b', 'En': 'Taipei Bus Co., Ltd.'}, 'OperatorCode': 'TaipeiBus', 'OperatorNo': '1407'}], 'AuthorityID': '004', 'ProviderID': '045', 'SubRoutes': [{'SubRouteUID': 'TPE101320', 'SubRouteID': '101320', 'OperatorIDs': ['100'], 'SubRouteName': {'Zh_tw': '234', 'En': '234'}, 'Direction': 0, 'FirstBusTime': '0450', 'LastBusTime': '2240', 'HolidayFirstBusTime': '0450'},\n...\n```\n\n## Source\n[![\u516c\u5171\u904b\u8f38\u6574\u5408\u8cc7\u8a0a\u6d41\u901a\u670d\u52d9\u5e73\u81fa\uff08Public Transport data eXchange, PTX\uff09](https://imgur.com/wp2gOeU.png)](http://ptx.transportdata.tw/PTX)", "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/PinLin/ptx_api", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "ptx-api", "package_url": "https://pypi.org/project/ptx-api/", "platform": "all", "project_url": "https://pypi.org/project/ptx-api/", "project_urls": { "Homepage": "https://github.com/PinLin/ptx_api" }, "release_url": "https://pypi.org/project/ptx-api/1.0.3/", "requires_dist": null, "requires_python": "", "summary": "A Python Module for get data from PTX.", "version": "1.0.3" }, "last_serial": 4314917, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "b44487d054a70a6caf984317b962b958", "sha256": "52673ea12e1927352edfe67bc4c3306fab301e93e75fc5378c4ba89a1f1075a1" }, "downloads": -1, "filename": "ptx_api-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b44487d054a70a6caf984317b962b958", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2168, "upload_time": "2018-09-23T03:42:35", "url": "https://files.pythonhosted.org/packages/e6/1a/2aeae1d353190749f21fa6746b7d352900b9baa8b7858c77f5d2ba9b2e21/ptx_api-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "f80ab5d6bee617f83acea40472b4b8d5", "sha256": "d1026eebb37e9d6334acb6d596ab07b5e493bcaf67326a9d780c03206f3ca3ed" }, "downloads": -1, "filename": "ptx_api-1.0.2.tar.gz", "has_sig": false, "md5_digest": "f80ab5d6bee617f83acea40472b4b8d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2141, "upload_time": "2018-09-23T03:46:57", "url": "https://files.pythonhosted.org/packages/99/30/011dbc473219465b6321e8b76a87954f75a7efeb745c8350abc5b746f92e/ptx_api-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "5ac76926f9211eee2334c3288111741b", "sha256": "220c0aac478bea4c4986bf5433595940aed05aff350c0c313e519f22a2e39b8c" }, "downloads": -1, "filename": "ptx_api-1.0.3.tar.gz", "has_sig": false, "md5_digest": "5ac76926f9211eee2334c3288111741b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2462, "upload_time": "2018-09-27T04:07:20", "url": "https://files.pythonhosted.org/packages/c5/1c/7a1f9c3fb6bb356d484d74846089999e0385c0b8d69149639598cdc65d92/ptx_api-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5ac76926f9211eee2334c3288111741b", "sha256": "220c0aac478bea4c4986bf5433595940aed05aff350c0c313e519f22a2e39b8c" }, "downloads": -1, "filename": "ptx_api-1.0.3.tar.gz", "has_sig": false, "md5_digest": "5ac76926f9211eee2334c3288111741b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2462, "upload_time": "2018-09-27T04:07:20", "url": "https://files.pythonhosted.org/packages/c5/1c/7a1f9c3fb6bb356d484d74846089999e0385c0b8d69149639598cdc65d92/ptx_api-1.0.3.tar.gz" } ] }