Metadata-Version: 2.1
Name: corek
Version: 0.0.2
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
Requires-Python: >=3.9
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 corek 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

```
