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.1.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for boolean_parser-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fe3ea2fcecf9eab33e07dc0f64ca0b27fc53ad7f639054e18bada6bbc0c4291 |
|
MD5 | 78f23aea5fbc2233d720e31e3b1b0ae6 |
|
BLAKE2b-256 | 85d08042423283abc158d2bfa53eba855e2b82b38f430b707a6483b733f325fa |