Skip to main content

Boolean Parser

Reason this release was yanked:

deprecated

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.

Source Distribution

boolparser-0.3.3.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

boolparser-0.3.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file boolparser-0.3.3.tar.gz.

File metadata

  • Download URL: boolparser-0.3.3.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for boolparser-0.3.3.tar.gz
Algorithm Hash digest
SHA256 4285583f457b348ea4089fd7a4f3ee03343b70a2114f601068616105c336e281
MD5 015bf8fdae8c945afddd23ed7865a298
BLAKE2b-256 4d90568fa18b1e94a0bb6c940a67b593ab776415d00a1a7bff51a78cee937e4e

See more details on using hashes here.

File details

Details for the file boolparser-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: boolparser-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for boolparser-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2a5e31dd793c5797c0166563412eb886b662b240ddb3f705ed05dca154f33858
MD5 2cee514ea4e9539fd5ddab2cbb2ebb39
BLAKE2b-256 2f41fa25ced0153b2ac29fa173410452e4a0c434647281ef752d2cc395e08ff9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page