https://github.com/frodrigo/pykopeninghours
Python wrapper for KOpeningHours
https://github.com/frodrigo/pykopeninghours
Last synced: 2 months ago
JSON representation
Python wrapper for KOpeningHours
- Host: GitHub
- URL: https://github.com/frodrigo/pykopeninghours
- Owner: frodrigo
- License: agpl-3.0
- Created: 2020-12-16T21:48:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-19T10:11:08.000Z (over 4 years ago)
- Last Synced: 2025-01-20T16:31:12.701Z (4 months ago)
- Language: C++
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PyKOpeningHours
===============Python wrapper for KOpeningHours
KOpeningHours is a Qt-based C++ library for parsing and evaluating opening hours expressions from OpenStreetMap.
See https://invent.kde.org/libraries/kopeninghoursThis python wrapper, developed using boost::python, makes that library available to python.
Building
========To build it the python way:
`python3 setup.py build`
or
`pip install .`Or to build it the usually way for any cmake project:
```
mkdir build
cd build
cmake ..
make
```And for testing:
PYTHONPATH=$PWD python3 ../test.py
should print `Fr 11:00-23:00`