Metadata-Version: 2.1
Name: corek
Version: 0.0.1
Summary: One line expression evaluator
Author: Rai Raman
Project-URL: Homepage, https://github.com/rairaman/corek
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENCE
Requires-Dist: lark ~=1.1.8
Requires-Dist: importlib-resources ==6.1.1

# Corek
An expression parser and evaluator for simple comparison expressions in Python. Only supports numeric comparisons.

## Example

```python

from rules_engine import RulesEngine

engine = RulesEngine()

input_data = {
    'a': 10,
    'b': 2,
    'c':3
}

print(engine.evaluate_rule('a == 10', input_data)) # True
print(engine.evaluate_rule('a > 10', input_data)) # False
print(engine.evaluate_rule('(a + b) > 10', input_data)) # True

```
