KnightChaser / boolean_parser

python package for parsing a string with boolean logic

Home Page:https://boolean-parser.readthedocs.io/en/latest/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://boolean-parser.readthedocs.io/en/latest/index.html

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%