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.2.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for boolean_parser-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 792f8c06cd1b9e6fa547be857646b2c4671f68f49ede9ee8c6386758f4dcdc7c |
|
MD5 | 4e34038fa1ef757391850f8af2d3ba8d |
|
BLAKE2b-256 | 8aae4e207f206e7bda602e099aac7564eb0ae23a76ecd299644593dc021436dc |