Metadata-Version: 1.0
Name: pyopening-hours
Version: 0.1.3
Summary: Python module providing access to the opening_hours.js library which is written in JavaScript.
Home-page: https://github.com/ypid/pyopening_hours
Author: Robin `ypid` Schneider
Author-email: ypid23@aol.de
License: GPLv3
Description: (u'pyopening\\_hours\n================\n\n|Build Status|\n\nPython module providing access to the\n`opening\\_hours.js <https://github.com/ypid/opening_hours.js>`__ library\nwhich is written in JavaScript.\n\nThis python library only implements the `simple\nAPI <https://github.com/ypid/opening_hours.js#simple-api>`__ from\nopening\\_hours.js at the moment (without optional parameters).\n\nInstallation\n------------\n\nInstall\n```pyopening_hours`` <https://pypi.python.org/pypi/pyopening_hours/>`__\nsimply by using pip:\n\n::\n\n    pip install pyopening_hours\n\nUsage\n-----\n\n.. code:: python\n\n    import pyopening_hours\n\n    try:\n        oh = pyopening_hours.OpeningHours(u\'Lun-\')\n    except pyopening_hours.ParseException as error:\n        print(error.message)\n\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\'\n    oh = pyopening_hours.OpeningHours(value)\n    print(\'Parsing complex value: %s\' % value)\n    print(\'Is%s week stable\' % (\'\' if oh.isWeekStable() else \' not\'))\n    print(\'Facility is %s\' % oh.getStateString())\n    print(\'Next change in UTC: %s\' % oh.getNextChange().strftime(\'%Y-%m-%d %H:%M:%S\'))\n    print(\'Warnings:\')\n    for line in oh.getWarnings():\n        print(\'  \' + line)\n\nDevelopment\n-----------\n\nJust clone the repository with\n\n.. code:: Shell\n\n    git clone https://github.com/ypid/pyopening_hours\n\nand install it\u2019s dependencies (execute inside the repository):\n\n.. code:: Shell\n\n    make dependencies-get\n\nUsed by other projects\n----------------------\n\nThis library is used in the following projects:\n\n-  `opening\\_hours\\_bot <https://github.com/ypid/opening_hours_bot>`__\n\nOther modules\n-------------\n\n-  `osm-opening-hours <https://github.com/martinfilliau/osm-opening-hours>`__\n   (pure python implementation)\n\n.. |Build Status| image:: https://travis-ci.org/ypid/pyopening_hours.svg?branch=master\n   :target: https://travis-ci.org/ypid/pyopening_hours\n',)
Keywords: OSM,OpenStreetMap,opening_hours
Platform: UNKNOWN
