jsonify-opening-hours
pyparsing
jsonify-opening-hours | pyparsing | |
---|---|---|
2 | - | |
8 | 1,000 | |
- | - | |
0.0 | 7.3 | |
almost 2 years ago | over 3 years ago | |
Python | Python | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
jsonify-opening-hours
-
Looking for a second opinion on my python string parsing library for parsing opening hours of businesses
I've been building a library (https://github.com/MoralCode/jsonify-opening-hours) to parse arbitrary strings containing business opening hours, however While its quite well tested and fairly well designed, I feel like the code is starting to get a little messy and 'd like some advice on how I can make this code really clean and more flexible so I can build upon the parsing later to support more different styles of business hours strings.
-
I made a library to parse business operating hours into JSON so it can be worked with more easily
Source code is on GitHub at https://github.com/MoralCode/jsonify-opening-hours It is also on PyPi at https://pypi.org/project/jsonify-opening-hours/
pyparsing
We haven't tracked posts mentioning pyparsing yet.
Tracking mentions began in Dec 2020.
What are some alternatives?
Lark - Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
PLY - Python Lex-Yacc
pydantic - Data validation using Python type hints
sqlparse - A non-validating SQL parser module for Python
Pygments
Python Left-Right Parser - Python Parser
python-user-agents - A Python library that provides an easy way to identify devices like mobile phones, tablets and their capabilities by parsing (browser) user agent strings.
python-nameparser - A simple Python module for parsing human names into their individual components
Construct - Construct: Declarative data structures for python that allow symmetric parsing and building
simplematch - Minimal, super readable string pattern matching for python.
phonenumbers - Python port of Google's libphonenumber
Atoma - Atom, RSS and JSON feed parser for Python 3