Boolean Parser
Project description
This package defines a simple boolean parser using PyParsing that allows user defined variables and floating point numbers to be used in a nested boolean comparison. For example, if the variables a,*b*, and c are defined then the following string can be parsed
(a==1 & b<2) | c>4
The resolution of a, b, and c is left up to the user by inheriting from the class EvaluateVariable class and overriding the eval function. This allows the variables to be references to (say) data stored in a file.
BSD licensed.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size boolparser-0.3.3-py3-none-any.whl (4.9 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size boolparser-0.3.3.tar.gz (12.0 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for boolparser-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a5e31dd793c5797c0166563412eb886b662b240ddb3f705ed05dca154f33858 |
|
MD5 | 2cee514ea4e9539fd5ddab2cbb2ebb39 |
|
BLAKE2-256 | 2f41fa25ced0153b2ac29fa173410452e4a0c434647281ef752d2cc395e08ff9 |