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.3.tar.gz
(15.8 kB
view hashes)
Built Distribution
Close
Hashes for boolean_parser-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6af817b750ced9772bbc350cf2dea420e66a0e8965f9c2d05f027eaa96279926 |
|
MD5 | 2a8629dbdcb8d101b1ceddbd91315056 |
|
BLAKE2b-256 | 0963b26bfdd56c4b269b6aed7e560638a01a636ca02af0823a3bd31ad9e3b1a7 |