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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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