Package for parsing strings containing conditional boolean logic
Project description
boolean_parser
Python package for parsing a string with conditional expressions joined with boolean logic. Uses the pyparsing package to construct grammatical clauses representing conditional expression, e.g. "x > 1 and y < 2". String conditional expressions can then be parsed into object representation to be handled downstream. Can convert string boolean expressions into SQLAlchemy filter conditions.
Documentation: https://boolean-parser.readthedocs.io/en/latest/
Parsers:
- Parser: core parser for handling parsing complex boolean conditional expressions
- SQLParser: parser that enables converting a string conditional into a SQLAlchemy filter clause
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
boolean-parser-0.1.4.tar.gz
(16.5 kB
view hashes)
Built Distribution
Close
Hashes for boolean_parser-0.1.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50dc47c1d74ac5615dcc43e15478f50b88605faf3a4a9ca5f74c0828ab6bb5ce |
|
MD5 | 9a717c6aaad939a41486aecae79a6cce |
|
BLAKE2b-256 | 224353523cec8ebf698c0ef2c6d535f33686b05261cbd4ac0fbad8f0fdd525a4 |