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.0.tar.gz
(15.5 kB
view hashes)
Built Distribution
Close
Hashes for boolean_parser-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4f2e195a601061e31a9e742edebdbcc8892d21054c168a4ace3c1c2b0515ff3 |
|
MD5 | 78e7e396316d44cf619efe873a21cc8b |
|
BLAKE2b-256 | 152514275fb34222b3634f118cb624d4c923927cc766a451a445d6230067c782 |