{ "info": { "author": "Manuel Catu", "author_email": "m.cantu.reinhard@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# HVV Abfahrtsmonitor\n\nTo be used with links generated at https://abfahrten.hvv.de/\n\nGenerated urls need to be changed to include api/monitors (See Sample file contents)\n\n## Usage\n\n```python\nfrom hvvabfahrtsmonitor import HvvAbfahrtsmonitor\nmonitor = HvvAbfahrtsmonitor(file, schema_file)\nmonitor.get_times() #Get a dict of lists of times, in minutes, for when the buses/metros/trains are due next.\n```\n### Sample file contents (JSON)\n\n```json\n{\n\t\"data\": [{\n\t\t\t\"name\": \"S\",\n\t\t\t\"url\": \"https://abfahrten.hvv.de/api/monitors/a038583f-f72b-4e4e-ba22-9d9903ced316\"\n\t\t},\n\t\t{\n\t\t\t\"name\": \"B\",\n\t\t\t\"url\": \"https://abfahrten.hvv.de/api/monitors/f76a6c23-a682-4297-aa99-f815157e2bca\"\n\t\t}\n\t]\n}\n```\n\n### Sample schema_file (JSON schema)\n\n```json\n{\n \"$schema\":\"http://json-schema.org/draft-07/schema#\",\n \"title\":\"Hvv Schema\",\n \"definitions\":{\n \"departure\":{\n \"type\": \"object\",\n \"properties\":{\n \"delay\":{\n \"type\":\"string\"\n },\n \"direction\":{\n \"type\":\"string\"\n },\n \"hasDelay\":{\n \"type\":\"boolean\"\n },\n \"icon\":{\n \"type\":\"object\"\n },\n \"line\":{\n \"type\":\"string\"\n },\n \"station\":{\n \"type\":\"string\"\n },\n \"time\":{\n \"type\":\"string\"\n }\n },\n \"required\": [\"hasDelay\", \"line\", \"time\"]\n }\n },\n \"type\":\"object\",\n \"properties\":{\n \"data\":{\n \"type\":\"object\",\n \"properties\":{\n \"attributes\":{\n \"type\":\"object\",\n \"properties\":{\n \"departures\":{\n \"type\":\"array\",\n \"items\":{\"$ref\":\"#/definitions/departure\"}\n }\n }\n }\n }\n }\n }\n}\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/mcantureinhard/hvvabfahrtsmonitor", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "hvvabfahrtsmonitor", "package_url": "https://pypi.org/project/hvvabfahrtsmonitor/", "platform": "", "project_url": "https://pypi.org/project/hvvabfahrtsmonitor/", "project_urls": { "Homepage": "https://github.com/mcantureinhard/hvvabfahrtsmonitor" }, "release_url": "https://pypi.org/project/hvvabfahrtsmonitor/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Do requests to the hvv abfahrtsmonitor and get parsed data", "version": "0.1.1" }, "last_serial": 4876600, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "05f7f1e2e32f02295b485d408f610e8f", "sha256": "b711cdec594319c50073eb7b5e6a19508c33bff41e7fd4d66786bfaf488f9323" }, "downloads": -1, "filename": "hvvabfahrtsmonitor-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "05f7f1e2e32f02295b485d408f610e8f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4283, "upload_time": "2019-02-27T23:23:05", "url": "https://files.pythonhosted.org/packages/b0/19/3e494b2f33b831dd2f6b6488d12536ff778638dfe2c9da617e180f4e8257/hvvabfahrtsmonitor-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "963da01c77fbab417829546628f376c6", "sha256": "0bbae604316d22d6c45c43e68be86d056b3e56a85239443585c3e77ece4aa8da" }, "downloads": -1, "filename": "hvvabfahrtsmonitor-0.1.0.tar.gz", "has_sig": false, "md5_digest": "963da01c77fbab417829546628f376c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2950, "upload_time": "2019-02-27T23:23:08", "url": "https://files.pythonhosted.org/packages/d7/f4/d4dac754205d48f78377cbffa5eabaeb09374ea1979456d481e3e22e7037/hvvabfahrtsmonitor-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "f76a3cf81d9f216e0ac6c93b8fa9ebde", "sha256": "a9c300ad258bba4847039273e8b4c833bf1d1ef7f7d2086ceb12f746ed7f04be" }, "downloads": -1, "filename": "hvvabfahrtsmonitor-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f76a3cf81d9f216e0ac6c93b8fa9ebde", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4273, "upload_time": "2019-02-27T23:28:45", "url": "https://files.pythonhosted.org/packages/83/ec/c63bcec999cd6c0999128d449557d81319df41fc20f0cede7b74ae9473dd/hvvabfahrtsmonitor-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7ec6b9fd76bc9cad194d0be8c3a9dc3a", "sha256": "074e4f6911983a7d66fa29903587260f563fba3dccff9967ea68c57f29c73af8" }, "downloads": -1, "filename": "hvvabfahrtsmonitor-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7ec6b9fd76bc9cad194d0be8c3a9dc3a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2930, "upload_time": "2019-02-27T23:28:46", "url": "https://files.pythonhosted.org/packages/a1/90/0e0de4b59f58b1a3dde28531fc1baca8f0fb12927a04dc281e34ead6dbd0/hvvabfahrtsmonitor-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f76a3cf81d9f216e0ac6c93b8fa9ebde", "sha256": "a9c300ad258bba4847039273e8b4c833bf1d1ef7f7d2086ceb12f746ed7f04be" }, "downloads": -1, "filename": "hvvabfahrtsmonitor-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f76a3cf81d9f216e0ac6c93b8fa9ebde", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4273, "upload_time": "2019-02-27T23:28:45", "url": "https://files.pythonhosted.org/packages/83/ec/c63bcec999cd6c0999128d449557d81319df41fc20f0cede7b74ae9473dd/hvvabfahrtsmonitor-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7ec6b9fd76bc9cad194d0be8c3a9dc3a", "sha256": "074e4f6911983a7d66fa29903587260f563fba3dccff9967ea68c57f29c73af8" }, "downloads": -1, "filename": "hvvabfahrtsmonitor-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7ec6b9fd76bc9cad194d0be8c3a9dc3a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2930, "upload_time": "2019-02-27T23:28:46", "url": "https://files.pythonhosted.org/packages/a1/90/0e0de4b59f58b1a3dde28531fc1baca8f0fb12927a04dc281e34ead6dbd0/hvvabfahrtsmonitor-0.1.1.tar.gz" } ] }