Skip to main content

Package for parsing strings containing conditional boolean logic

Project description

boolean_parser

Build Status Documentation Status Python application Coverage Status codecov

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.4.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

boolean_parser-0.1.4-py2.py3-none-any.whl (22.1 kB view details)

Uploaded Python 2 Python 3

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

Hashes for boolean-parser-0.1.4.tar.gz
Algorithm Hash digest
SHA256 01d998687166bef8fcf47d5df567d6b9b23ac0ce33259ef46692e166f767ad58
MD5 a5d0efc92fead0fe92b7a8fead43e964
BLAKE2b-256 7a3f188d3356a6a6b8d37fb4560a101cde76d077ddfb9df8a096e0aa4de98745

See more details on using hashes here.

File details

Details for the file boolean_parser-0.1.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for boolean_parser-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 50dc47c1d74ac5615dcc43e15478f50b88605faf3a4a9ca5f74c0828ab6bb5ce
MD5 9a717c6aaad939a41486aecae79a6cce
BLAKE2b-256 224353523cec8ebf698c0ef2c6d535f33686b05261cbd4ac0fbad8f0fdd525a4

See more details on using hashes here.

Supported by

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