{ "info": { "author": "Heine Furubotten", "author_email": "", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Entur API client\n\nPython client for fetching estimated departures from stop places in Norway from Entur.org's API. Information about stop places, platforms and real-time departures.\n\n[![PyPI version fury.io][pypi-version-badge]][pypi-enturclient]\n[![PyPI pyversions][py-versions-badge]][pypi-enturclient]\n\n[![Buy me a coffee][buymeacoffee-shield]][buymeacoffee]\n\n## Usage\n\n```python\nimport aiohttp\nimport asyncio\nfrom enturclient import EnturPublicTransportData\n\nAPI_CLIENT_ID = 'awesome_company-my_application' \n\nasync def print_bergen_train_delay():\n async with aiohttp.ClientSession() as client:\n stops = ['NSR:StopPlace:548']\n quays = ['NSR:Quay:48550']\n\n data = EnturPublicTransportData(\n client_name=API_CLIENT_ID, # Required\n stops=stops,\n quays=quays,\n omit_non_boarding=True,\n number_of_departures=5,\n web_session=client) # recommended argument\n\n await data.update()\n\n bergen_train = data.get_stop_info('NSR:StopPlace:548')\n bergen_train_delay = bergen_train.estimated_calls[0].delay_in_min\n\n print(bergen_train_delay)\n\nloop = asyncio.get_event_loop()\nloop.run_until_complete(print_bergen_train_delay())\n```\n\n## Obtaining a stop id\n [Entur's travel planer](https://en-tur.no) has a map of all stops used in Norway. Use the map to find the stops you're interested in. When you have found one of your stops, click on it. \n Now the web browser should contain an URL with the id in it. Such as this: \n `https://en-tur.no/nearby-stop-place-detail?id=NSR:StopPlace:32376`\n The stop id is the content after id= parameter in the url. Copy paste this into the configuration. \n\n[buymeacoffee-shield]: https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg\n[buymeacoffee]: https://www.buymeacoffee.com/heine\n[pypi-enturclient]: https://pypi.org/project/enturclient/\n[pypi-version-badge]: https://badge.fury.io/py/enturclient.svg\n[py-versions-badge]: https://img.shields.io/pypi/pyversions/enturclient.svg\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/hfurubotten/enturclient", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "enturclient", "package_url": "https://pypi.org/project/enturclient/", "platform": "", "project_url": "https://pypi.org/project/enturclient/", "project_urls": { "Homepage": "https://github.com/hfurubotten/enturclient" }, "release_url": "https://pypi.org/project/enturclient/0.2.0/", "requires_dist": [ "aiohttp (>=3.5.4)", "async-timeout (>=3.0.1)" ], "requires_python": ">=3.5.3", "summary": "An API client for public transport data from Entur.", "version": "0.2.0" }, "last_serial": 4901924, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "cc36f6c701a298aea41b8f89d3b24c22", "sha256": "d06d6738309df4398940390dfa8ebb3ef4804df5033ca2ad46c55d9b176db307" }, "downloads": -1, "filename": "enturclient-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "cc36f6c701a298aea41b8f89d3b24c22", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5245, "upload_time": "2018-10-17T16:43:09", "url": "https://files.pythonhosted.org/packages/8b/71/c58f012db156ec0b3e737d684b6dd96e03ad0585a99f373906664e1b4484/enturclient-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "249218c80c2fc32c983a5f04f871f5c5", "sha256": "a964f1c2c6b7aca8e3221a087e98ef96e3dea14a9ab39ba6f1371153c1a3d7f6" }, "downloads": -1, "filename": "enturclient-0.1.0.tar.gz", "has_sig": false, "md5_digest": "249218c80c2fc32c983a5f04f871f5c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3352, "upload_time": "2018-10-17T16:43:10", "url": "https://files.pythonhosted.org/packages/5c/4c/83212d705b99f31ef2ca23d5d064f20f55d2719fb48e29bce6156c6b2922/enturclient-0.1.0.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "3870180d02c1483311144ace632e2374", "sha256": "9ddd1bec989b95dc4f527742b9fd62e7f36e761ac1a8de512f0d0dedb7a6f662" }, "downloads": -1, "filename": "enturclient-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "3870180d02c1483311144ace632e2374", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5790, "upload_time": "2018-12-13T14:08:16", "url": "https://files.pythonhosted.org/packages/ff/8e/6849d7acc2fb579528255152106cf6d9f09319d882eb209d6fdde9ae9f75/enturclient-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cf46c252be3fc4c0bcb87f3ff95c5fe3", "sha256": "e0b038454cbc72cebfa703de755a366672a3c7cd5a62659e0b8a02919d787b72" }, "downloads": -1, "filename": "enturclient-0.1.2.tar.gz", "has_sig": false, "md5_digest": "cf46c252be3fc4c0bcb87f3ff95c5fe3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3990, "upload_time": "2018-12-13T14:08:17", "url": "https://files.pythonhosted.org/packages/93/2f/0652f1049fcedde2c3fa9bdbbfc46ea57979fcf04cc25e9ae2ffc247e64d/enturclient-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "8fa46cb8094fedae76975d0ea2012088", "sha256": "b99dedb15c00e4171772129d361b6d76c11cd214e9059c99825728f980cc3cfc" }, "downloads": -1, "filename": "enturclient-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "8fa46cb8094fedae76975d0ea2012088", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6051, "upload_time": "2018-12-22T18:19:05", "url": "https://files.pythonhosted.org/packages/95/09/0c8d5651e496a8543ba22bf932ae0d988339eda27af6cdef604870903cb2/enturclient-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4e935c44e90085ff32bbc3759e3cf926", "sha256": "808e1d120485267092c2a127e6a7141e04e801b15c5f895047e2e98166d55e39" }, "downloads": -1, "filename": "enturclient-0.1.3.tar.gz", "has_sig": false, "md5_digest": "4e935c44e90085ff32bbc3759e3cf926", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4230, "upload_time": "2018-12-22T18:19:06", "url": "https://files.pythonhosted.org/packages/ea/33/7fa0b976c231c004b78d9a737f92286e02ed5b6b6ed1d1a51160a4f9b01e/enturclient-0.1.3.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "0cebb92fa0514b3acafe6c36706869f9", "sha256": "31fc19afabcc4a6b82ba92ae65cad0e29b475054ffb736b444c2f288c87b26a7" }, "downloads": -1, "filename": "enturclient-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0cebb92fa0514b3acafe6c36706869f9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.3", "size": 6570, "upload_time": "2019-03-05T21:01:01", "url": "https://files.pythonhosted.org/packages/5e/6b/f36076238b7be87c4c313da8eb2e5610f0702eff921214e37994ec95a3bf/enturclient-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3f53fee059ae6c72625da78da536b203", "sha256": "320b974faac9fc94bbd7ad498e11b0dbbeb7678cfcd5684c26cbcf1621861e27" }, "downloads": -1, "filename": "enturclient-0.2.0.tar.gz", "has_sig": false, "md5_digest": "3f53fee059ae6c72625da78da536b203", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.3", "size": 4818, "upload_time": "2019-03-05T21:01:02", "url": "https://files.pythonhosted.org/packages/fa/55/5d97cd3d9bb722144ef4859c7b5af06ce248925b72068c2931266ee5dfbc/enturclient-0.2.0.tar.gz" } ], "0.2.0b1": [ { "comment_text": "", "digests": { "md5": "3259fa9cc76da835f85e397413c81bde", "sha256": "bc859e2b8a790a64747adb8783ae685051fbf1ec0e32cae5613277a3c1392b40" }, "downloads": -1, "filename": "enturclient-0.2.0b1-py3-none-any.whl", "has_sig": false, "md5_digest": "3259fa9cc76da835f85e397413c81bde", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6549, "upload_time": "2019-03-03T18:59:17", "url": "https://files.pythonhosted.org/packages/c6/71/b0b2a0a5072ae039b6c193e32772843f43a167794cf205013c6be6c0e50b/enturclient-0.2.0b1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "48d482a606180624b7fe03532f408e0a", "sha256": "a39af04ee88d1b535eeb629cd7b4d6ce30f240bfa84e3066e467586496586ee6" }, "downloads": -1, "filename": "enturclient-0.2.0b1.tar.gz", "has_sig": false, "md5_digest": "48d482a606180624b7fe03532f408e0a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4182, "upload_time": "2019-03-03T18:59:18", "url": "https://files.pythonhosted.org/packages/4f/f5/5039ad48c6a836209019202799ab0a86739561372351a02e0db0b7d583c8/enturclient-0.2.0b1.tar.gz" } ], "0.2.0b2": [ { "comment_text": "", "digests": { "md5": "15402edf49d336d31423304bc9534a95", "sha256": "f7b1b7de40628f9030eef6b159c38347696a4f2af312d9d40dd8fbff715745f2" }, "downloads": -1, "filename": "enturclient-0.2.0b2-py3-none-any.whl", "has_sig": false, "md5_digest": "15402edf49d336d31423304bc9534a95", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6717, "upload_time": "2019-03-04T19:12:42", "url": "https://files.pythonhosted.org/packages/58/a3/d5cf78dc2c5ec35c9c1a5e0770fb9e8014de02248fff40ed8d692350df13/enturclient-0.2.0b2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f99d7213f81a2ee3c22dc9ec916ab195", "sha256": "c5d01ffc680ca3256df13eaeee5a210aff1caf8ceebf4a1d657e26d09ae3ff96" }, "downloads": -1, "filename": "enturclient-0.2.0b2.tar.gz", "has_sig": false, "md5_digest": "f99d7213f81a2ee3c22dc9ec916ab195", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4361, "upload_time": "2019-03-04T19:12:44", "url": "https://files.pythonhosted.org/packages/87/b1/752104f1268e097e71edc00cb8c545131266cad1d009a2256641acf3f878/enturclient-0.2.0b2.tar.gz" } ], "0.2.0b3": [ { "comment_text": "", "digests": { "md5": "1c5a95db0d9bb4264b4083370f5e0bb9", "sha256": "4e14753e0fdf6c0cc175c1a56a6f76b70d2cc0907c40fd0bd0efbf3ea25f4f85" }, "downloads": -1, "filename": "enturclient-0.2.0b3-py3-none-any.whl", "has_sig": false, "md5_digest": "1c5a95db0d9bb4264b4083370f5e0bb9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.3", "size": 6495, "upload_time": "2019-03-04T22:03:30", "url": "https://files.pythonhosted.org/packages/3c/90/29ac01af8b194491f5d6819fced15c67cd5956df90123272d29cd80bd2a7/enturclient-0.2.0b3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3416e7949e58d153a4db4b2b9031ad64", "sha256": "d8893ca036022ec7f8f7e3077dd524d34bf6d9d8c3bf9c9b90f8589a2a21b6c6" }, "downloads": -1, "filename": "enturclient-0.2.0b3.tar.gz", "has_sig": false, "md5_digest": "3416e7949e58d153a4db4b2b9031ad64", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.3", "size": 4690, "upload_time": "2019-03-04T22:03:31", "url": "https://files.pythonhosted.org/packages/5f/6c/ac5c30021fc96ec6f287abb5bb90cd87f767f4b73f1a95e5762228459873/enturclient-0.2.0b3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0cebb92fa0514b3acafe6c36706869f9", "sha256": "31fc19afabcc4a6b82ba92ae65cad0e29b475054ffb736b444c2f288c87b26a7" }, "downloads": -1, "filename": "enturclient-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0cebb92fa0514b3acafe6c36706869f9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.3", "size": 6570, "upload_time": "2019-03-05T21:01:01", "url": "https://files.pythonhosted.org/packages/5e/6b/f36076238b7be87c4c313da8eb2e5610f0702eff921214e37994ec95a3bf/enturclient-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3f53fee059ae6c72625da78da536b203", "sha256": "320b974faac9fc94bbd7ad498e11b0dbbeb7678cfcd5684c26cbcf1621861e27" }, "downloads": -1, "filename": "enturclient-0.2.0.tar.gz", "has_sig": false, "md5_digest": "3f53fee059ae6c72625da78da536b203", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.3", "size": 4818, "upload_time": "2019-03-05T21:01:02", "url": "https://files.pythonhosted.org/packages/fa/55/5d97cd3d9bb722144ef4859c7b5af06ce248925b72068c2931266ee5dfbc/enturclient-0.2.0.tar.gz" } ] }