{ "info": { "author": "Robin `ypid` Schneider", "author_email": "ypid23@aol.de", "bugtrack_url": null, "classifiers": [], "description": "pyopening\\_hours\r\n================\r\n\r\n|Build Status|\r\n\r\nPython module providing access to the\r\n`opening\\_hours.js `__ library\r\nwhich is written in JavaScript.\r\n\r\nThis python library only implements the `simple\r\nAPI `__ from\r\nopening\\_hours.js at the moment (without optional parameters).\r\n\r\nInstallation\r\n------------\r\n\r\nInstall\r\n`pyopening\\_hours `__\r\nsimply by using pip:\r\n\r\n::\r\n\r\n pip install pyopening_hours\r\n\r\nUsage\r\n-----\r\n\r\n.. code:: python\r\n\r\n import pyopening_hours\r\n\r\n try:\r\n oh = pyopening_hours.OpeningHours(u'Lun-')\r\n except pyopening_hours.ParseException as error:\r\n print(error.message)\r\n\r\n value = u'Mon,Tu,Th,Fr 12:00-18:00; Samstag 12:00-17:00 \"I \u2764 unicode\"; Th[3] OFF; Th[-1] off'\r\n oh = pyopening_hours.OpeningHours(value)\r\n print(u\"Parsing complex value: {}\".format(value))\r\n print(u\"Is{} week stable\".format('' if oh.isWeekStable() else ' not'))\r\n print(u\"Facility is {}\".format(oh.getStateString()))\r\n print(u\"Next change in UTC: {}\".format(oh.getNextChange().strftime('%Y-%m-%d %H:%M:%S')))\r\n print(u\"Warnings:\")\r\n for line in oh.getWarnings():\r\n print(' ' + line)\r\n\r\nDevelopment\r\n-----------\r\n\r\nJust clone the repository with\r\n\r\n.. code:: Shell\r\n\r\n git clone https://github.com/ypid/pyopening_hours\r\n\r\nand install it\u2019s dependencies (execute inside the repository):\r\n\r\n.. code:: Shell\r\n\r\n make dependencies-get\r\n\r\nUsed by other projects\r\n----------------------\r\n\r\nThis library is used in the following projects:\r\n\r\n- `opening\\_hours\\_bot `__\r\n\r\nOther modules\r\n-------------\r\n\r\n- `osm-opening-hours `__\r\n (pure python implementation)\r\n\r\n.. |Build Status| image:: https://travis-ci.org/ypid/pyopening_hours.svg?branch=master\r\n :target: https://travis-ci.org/ypid/pyopening_hours", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ypid/pyopening_hours", "keywords": "OSM,OpenStreetMap,opening_hours", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "pyopening_hours", "package_url": "https://pypi.org/project/pyopening_hours/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyopening_hours/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ypid/pyopening_hours" }, "release_url": "https://pypi.org/project/pyopening_hours/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "Python module providing access to the opening_hours.js library which is written in JavaScript.", "version": "0.3.0" }, "last_serial": 1760707, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "924672fb9e9844ba8ac7cca5c38b9781", "sha256": "cd34d6f40b04c293b832d1579d7a9aaa2daa1008e5639c46d19e20f1264b1558" }, "downloads": -1, "filename": "pyopening_hours-0.1.tar.gz", "has_sig": false, "md5_digest": "924672fb9e9844ba8ac7cca5c38b9781", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 954323, "upload_time": "2014-08-18T21:09:04", "url": "https://files.pythonhosted.org/packages/f8/93/4609d37352165d456d4562eefb3dbf3a178fc4ef28963cceee5f89383829/pyopening_hours-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "built for Linux-3.14-2-amd64-x86_64-with-glibc2.4", "digests": { "md5": "c4a24861cc72d4fee4a12f5f2cbec4d1", "sha256": "98f72798f2d23234f509f1602e525df70fd79cab9fbdb2bce857e9602c5b3974" }, "downloads": -1, "filename": "pyopening_hours-0.1.1.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "c4a24861cc72d4fee4a12f5f2cbec4d1", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 111827, "upload_time": "2014-08-18T21:48:35", "url": "https://files.pythonhosted.org/packages/68/a2/66728190e32256ebc0de75e584be7fc34a2f28a9bee97b91f93c3bb7ce94/pyopening_hours-0.1.1.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "61f416262e9139049a8514d0a284f166", "sha256": "dbc6fee7b624fa9cba7bb246a102c8ffc47875c8f9ed306007dffcc4f09b77e0" }, "downloads": -1, "filename": "pyopening_hours-0.1.1.tar.gz", "has_sig": false, "md5_digest": "61f416262e9139049a8514d0a284f166", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 954546, "upload_time": "2014-08-18T21:48:31", "url": "https://files.pythonhosted.org/packages/74/a2/f6ae6653e4163c51527a2217e20996e807c928d5c2b1ae9bd4c4a5b1c6ec/pyopening_hours-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "built for Linux-3.14-2-amd64-x86_64-with-glibc2.4", "digests": { "md5": "5727adee3e3516a267cc767bb5538347", "sha256": "ace20e0225bf5216ecaa7548f1d6f5b2d1eb13e346f9119a01dd1b9c62f69db7" }, "downloads": -1, "filename": "pyopening_hours-0.1.2.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "5727adee3e3516a267cc767bb5538347", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 111835, "upload_time": "2014-08-18T21:52:29", "url": "https://files.pythonhosted.org/packages/bc/99/dd6e17732a7befc6be83f5b5e2a7add9234d4cc8e614d323618c5b3570eb/pyopening_hours-0.1.2.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "1765b88fe45a28068e7639dee9f32968", "sha256": "2811a7640b3e72defe217ffd6a3dab5443b62becb192b59276c0bf8381f0ccce" }, "downloads": -1, "filename": "pyopening_hours-0.1.2.tar.gz", "has_sig": false, "md5_digest": "1765b88fe45a28068e7639dee9f32968", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 954558, "upload_time": "2014-08-18T21:52:25", "url": "https://files.pythonhosted.org/packages/03/52/dc9b40a28e54e8fc6791844e8f15235beaa7b7715489801456675a6af8d1/pyopening_hours-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "f379e926c6b5ac4f9e8aa1cd73e64ef8", "sha256": "ad0d0042a8bf0916ccf310bc12d6c73c96fc1d40ea1c0d992cbedf4cee0adebd" }, "downloads": -1, "filename": "pyopening_hours-0.1.3.tar.gz", "has_sig": false, "md5_digest": "f379e926c6b5ac4f9e8aa1cd73e64ef8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 926366, "upload_time": "2015-10-09T22:05:04", "url": "https://files.pythonhosted.org/packages/aa/00/594f351a85a0143d23e423a0937b1a97abd028c8ab86a8e1f8caa85f7ee7/pyopening_hours-0.1.3.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "409121e4cbc22e6f0d56b1220e51295d", "sha256": "01c397a447ba97ccaf4eb10a2ba5acd268f348beee76a7a019108118063e7f1b" }, "downloads": -1, "filename": "pyopening_hours-0.3.0.tar.gz", "has_sig": false, "md5_digest": "409121e4cbc22e6f0d56b1220e51295d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 926335, "upload_time": "2015-10-09T22:24:22", "url": "https://files.pythonhosted.org/packages/91/ff/6fcfc1120b0192c57d3d9267b208bea7d0d403e4b45da30116fa81e5f786/pyopening_hours-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "409121e4cbc22e6f0d56b1220e51295d", "sha256": "01c397a447ba97ccaf4eb10a2ba5acd268f348beee76a7a019108118063e7f1b" }, "downloads": -1, "filename": "pyopening_hours-0.3.0.tar.gz", "has_sig": false, "md5_digest": "409121e4cbc22e6f0d56b1220e51295d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 926335, "upload_time": "2015-10-09T22:24:22", "url": "https://files.pythonhosted.org/packages/91/ff/6fcfc1120b0192c57d3d9267b208bea7d0d403e4b45da30116fa81e5f786/pyopening_hours-0.3.0.tar.gz" } ] }