Skip to content

v0.3.0

Choose a tag to compare

@hardbyte hardbyte released this 15 Nov 01:47
· 24 commits to main since this release

Adds supports for CEL expressions to use user defined Python Functions.

from cel import evaluate

def is_adult(age):
    return age > 21

evaluate("is_adult(age)", {'is_adult': is_adult, 'age': 18})
# False

Also updates pyo3 and cel-interpreter to latest stable versions.