Skip to content

KnightChaser/boolean_parser

 
 

Repository files navigation

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

About

python package for parsing a string with boolean logic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%