{ "info": { "author": "Mi\u00f0eind ehf", "author_email": "vt@extrada.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Natural Language :: Icelandic", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "\n# Straeto\n\nStraeto is a Python 3.x package encapsulating data about buses and bus\nroutes of Str\u00e6t\u00f3 bs, an Icelandic municipal bus service.\n\nThe data is fetched from the public [straeto.is website](https://straeto.is),\nwhere it is stored in a file called `GTFS.zip`. Unfortunately, that file\nis not (yet) located at a fixed, well-known URL.\n\n## Installation\n\nStraeto is a pure-Python package. It\nis [available on PyPi](https://pypi.org/project/straeto/),\nand can thus be installed by simply typing:\n\n```shell\n$ pip install straeto\n```\n\n## Usage\n\nExample:\n\n```python\nimport straeto\n# Your location here, as a (lat, lon) tuple\nlocation = straeto._MIDEIND_LOCATION # Fiskisl\u00f3\u00f0 31, Reykjav\u00edk\ns = straeto.BusStop.closest_to(location)\nprint(\"The bus stop closest to {0} is {1}\".format(location, s.name))\n# Load the bus schedule for today\nschedule = straeto.BusSchedule()\n# Your route identifier here\nroute_id = \"14\"\n# Print the next two arrivals of that route at the closest bus stop\nfor direction, times in schedule.arrivals(route_id, s.name, n=2).items():\n print(\n \"Direction {0}: {1}\"\n .format(\n direction,\n \", \".join(\n \"{0:02}:{1:02}\".format(hms[0], hms[1]) for hms in times\n )\n )\n )\n```\n\n## Documentation\n\nThis is a pre-alpha release and proper documentation has not yet been\nproduced. But the code is fairly self-explanatory; look at the file\n`src/straeto/straeto.py` to see the source code for the main classes\nand some usage examples.\n\n## Real-time Data\n\nOptionally, and in addition to static schedule data, this package supports\nreading real-time data about bus locations from a URL\nprovided by Str\u00e6t\u00f3 bs. However, these URLs are not public and you need to sign\nan agreement with Str\u00e6t\u00f3 to get access to the data and obtain your own URL. Once you\nhave your URL, put it in the file `config/status_url.txt` to enable the Straeto\npackage to fetch real-time data.\n\n## Copyright\n\n*This program is copyright © 2019 Mi\u00f0eind ehf.*\n\n## License\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nThe full text of the GNU General Public License is available at\n[http://www.gnu.org/licenses/](http://www.gnu.org/licenses/).\n\n## No Affiliation\n\nThis program and its authors are in no way affiliated with or endorsed by\nStr\u00e6t\u00f3 bs.\n\n---\n\n*If you would like to use this software in ways that are incompatible*\n*with the standard GNU GPLv3 license, please contact Mi\u00f0eind ehf.*\n*to negotiate alternative arrangements.*\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/mideind/Straeto", "keywords": "bus,route,transportation,iceland", "license": "GNU GPLv3", "maintainer": "", "maintainer_email": "", "name": "straeto", "package_url": "https://pypi.org/project/straeto/", "platform": "", "project_url": "https://pypi.org/project/straeto/", "project_urls": { "Homepage": "https://github.com/mideind/Straeto" }, "release_url": "https://pypi.org/project/straeto/0.0.7/", "requires_dist": [ "requests (>=2.20)" ], "requires_python": "", "summary": "A package for information about buses and bus routes", "version": "0.0.7" }, "last_serial": 6000176, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "f038548a163420057d434597ced8db0f", "sha256": "04b1bf715fbed6c172b791d50d5fe5a6b21c693504602a2981eadc4b3b5f8681" }, "downloads": -1, "filename": "straeto-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f038548a163420057d434597ced8db0f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 24149, "upload_time": "2019-08-27T15:09:10", "url": "https://files.pythonhosted.org/packages/cc/df/0fd51ab2e7263ede18a96ba300523a636e0547826344bbeb3f8812de2cfe/straeto-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eaac9e5714be82e3fb3051025d21a432", "sha256": "603657c4745ec1e83c544c4f0e92a0d554895a943bea0525dd9b306477040320" }, "downloads": -1, "filename": "straeto-0.0.1.tar.gz", "has_sig": false, "md5_digest": "eaac9e5714be82e3fb3051025d21a432", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11270, "upload_time": "2019-08-27T15:09:13", "url": "https://files.pythonhosted.org/packages/94/cc/ebed0f762479f185d0cdb261e262448bf068720e84e0aa8c3bf192e6901b/straeto-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "c9c471d4e5d9a88c0d42543dbaa02922", "sha256": "47f62fce33be6f3556687d426d2a3f4271880229a4ea813d077d4ef3da0a408d" }, "downloads": -1, "filename": "straeto-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c9c471d4e5d9a88c0d42543dbaa02922", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 24183, "upload_time": "2019-08-27T15:22:27", "url": "https://files.pythonhosted.org/packages/8b/9c/493fe1da4fdd05cdf76d479d679c806098632151d5da893c5c4bc51eea73/straeto-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "94853d7c6176facf452e7a192ca95ea2", "sha256": "3d597b8d36e99c0d2f754cd8c831d994eb3925deccc3ba2f2da96b5caf9b51c2" }, "downloads": -1, "filename": "straeto-0.0.2.tar.gz", "has_sig": false, "md5_digest": "94853d7c6176facf452e7a192ca95ea2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11307, "upload_time": "2019-08-27T15:22:29", "url": "https://files.pythonhosted.org/packages/6b/2e/dc426b60f0f7741e0910df91b8b0fb2aa125bffb55a32472fabb7ad2233f/straeto-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "112e247bafc8c9620ea0e06c89950095", "sha256": "f0395cad9fe7e5af76848c6177ca96b52b384fc3fa93ec296d42b0228e958032" }, "downloads": -1, "filename": "straeto-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "112e247bafc8c9620ea0e06c89950095", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 24212, "upload_time": "2019-08-27T15:26:51", "url": "https://files.pythonhosted.org/packages/3f/d5/1835334fb2ff234d1f81575fda88c1180743d0ae5666597a271d93ace80e/straeto-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "478ef6655a5f009b4166deb9773fb520", "sha256": "0961cb9d8631557569b435bbc872fac28588ac51d7646da183fbb29bf269d24f" }, "downloads": -1, "filename": "straeto-0.0.3.tar.gz", "has_sig": false, "md5_digest": "478ef6655a5f009b4166deb9773fb520", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11346, "upload_time": "2019-08-27T15:26:53", "url": "https://files.pythonhosted.org/packages/16/c2/eb27fb2b5b41d350242ddb03987dfd742b7e9f14dc0516fa5a91c479c1d0/straeto-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "0e52cf46ae8034a99d9b1c3e2cc61d63", "sha256": "2073358951a5ce4c63bd896f5172b0e96c41b9e206a28138fbff5f86e5ed0bf5" }, "downloads": -1, "filename": "straeto-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0e52cf46ae8034a99d9b1c3e2cc61d63", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3154451, "upload_time": "2019-08-27T15:36:48", "url": "https://files.pythonhosted.org/packages/21/72/0f090e946c9c319ad04c9ade5e8bfb3a7e93f1c2a11ece227a12875cf5f6/straeto-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "21447cb284accebf4fc7aaba09cd2de0", "sha256": "1634642b56c6d35fc63d439f6dfa5129c8a21e6176cf653ad92cbb2d01dd7b7f" }, "downloads": -1, "filename": "straeto-0.0.4.tar.gz", "has_sig": false, "md5_digest": "21447cb284accebf4fc7aaba09cd2de0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3095642, "upload_time": "2019-08-27T15:36:51", "url": "https://files.pythonhosted.org/packages/f8/0a/7c7e63d17812b244e6c2612728b7be67263e173039a4ef110287b18f6b16/straeto-0.0.4.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "5ea11baaf0e098827c8a6c2751a4c676", "sha256": "062fbca551f728f95d164dd943055ca68fe861d9a9ea3d60ca4955821a40c055" }, "downloads": -1, "filename": "straeto-0.0.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5ea11baaf0e098827c8a6c2751a4c676", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3154946, "upload_time": "2019-09-18T18:09:36", "url": "https://files.pythonhosted.org/packages/54/f7/511ee17072bd01895a2e614996aa8ea0fe6388243fa18b42533531edbe09/straeto-0.0.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ed51ea872bf30671f74d02b45e29e4e1", "sha256": "fa283f2480703bafb2a304446a2f4952d18bdd3976acedb888be29362c14bdb5" }, "downloads": -1, "filename": "straeto-0.0.6.tar.gz", "has_sig": false, "md5_digest": "ed51ea872bf30671f74d02b45e29e4e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3096383, "upload_time": "2019-09-18T18:09:39", "url": "https://files.pythonhosted.org/packages/41/02/5cc5d2dbf34c87f2219d68ffb917f4d2bb6486cbe95ebc30c3b89ad9c09e/straeto-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "73899c5ea866ea6e6e071eeb1dc1fe0c", "sha256": "1032ab1d704ebbc7e3261c35dee63ce5abf27aa2dd72dee796682a024d8ffa53" }, "downloads": -1, "filename": "straeto-0.0.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "73899c5ea866ea6e6e071eeb1dc1fe0c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3160174, "upload_time": "2019-10-19T16:00:58", "url": "https://files.pythonhosted.org/packages/f0/72/6b28d92f90eeebe9bda0fdfb3b17521d5799179d91c06246611c7a023c5e/straeto-0.0.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3bb843929fc42d93ac5bdca5c7a7afbf", "sha256": "7268fb56cbaa261268a7707cff040cf12fe8830d471605c3138c7fa38edf3d48" }, "downloads": -1, "filename": "straeto-0.0.7.tar.gz", "has_sig": false, "md5_digest": "3bb843929fc42d93ac5bdca5c7a7afbf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3100605, "upload_time": "2019-10-19T16:01:01", "url": "https://files.pythonhosted.org/packages/15/b2/6fadd2628c38de0b2184646753a9fd04b86b2efa1e2938091752f2f9e3af/straeto-0.0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "73899c5ea866ea6e6e071eeb1dc1fe0c", "sha256": "1032ab1d704ebbc7e3261c35dee63ce5abf27aa2dd72dee796682a024d8ffa53" }, "downloads": -1, "filename": "straeto-0.0.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "73899c5ea866ea6e6e071eeb1dc1fe0c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3160174, "upload_time": "2019-10-19T16:00:58", "url": "https://files.pythonhosted.org/packages/f0/72/6b28d92f90eeebe9bda0fdfb3b17521d5799179d91c06246611c7a023c5e/straeto-0.0.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3bb843929fc42d93ac5bdca5c7a7afbf", "sha256": "7268fb56cbaa261268a7707cff040cf12fe8830d471605c3138c7fa38edf3d48" }, "downloads": -1, "filename": "straeto-0.0.7.tar.gz", "has_sig": false, "md5_digest": "3bb843929fc42d93ac5bdca5c7a7afbf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3100605, "upload_time": "2019-10-19T16:01:01", "url": "https://files.pythonhosted.org/packages/15/b2/6fadd2628c38de0b2184646753a9fd04b86b2efa1e2938091752f2f9e3af/straeto-0.0.7.tar.gz" } ] }