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
Built Distribution
File details
Details for the file boolean-parser-0.1.4.tar.gz
.
File metadata
- Download URL: boolean-parser-0.1.4.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01d998687166bef8fcf47d5df567d6b9b23ac0ce33259ef46692e166f767ad58 |
|
MD5 | a5d0efc92fead0fe92b7a8fead43e964 |
|
BLAKE2b-256 | 7a3f188d3356a6a6b8d37fb4560a101cde76d077ddfb9df8a096e0aa4de98745 |
File details
Details for the file boolean_parser-0.1.4-py2.py3-none-any.whl
.
File metadata
- Download URL: boolean_parser-0.1.4-py2.py3-none-any.whl
- Upload date:
- Size: 22.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50dc47c1d74ac5615dcc43e15478f50b88605faf3a4a9ca5f74c0828ab6bb5ce |
|
MD5 | 9a717c6aaad939a41486aecae79a6cce |
|
BLAKE2b-256 | 224353523cec8ebf698c0ef2c6d535f33686b05261cbd4ac0fbad8f0fdd525a4 |