Repository navigation
Release notes for CEL Python (cel-expr-python) version 0.1.4
Key Highlights
- Lists Extension Library (
ext_lists): Added bindings for the standard CELlistsextension library (cel_expr_python.ext.ext_lists.ExtLists()), providing functions such aslists.range(),slice(),flatten(),distinct(),reverse(), andsort(). - Python 3.10 & Free-Threaded Python Support: Expanded wheel compatibility to include Python 3.10 (alongside 3.11–3.14) and enabled free-threaded Python (
Py_GIL_DISABLED) support with multi-threaded compilation and evaluation concurrency improvements. - Pratt Parser Enabled by Default & Environment Options: Added
cel.Options(passed viacel.NewEnv(options=...)) and enabled the CEL Pratt parser (enable_pratt_parser=True) by default:
from cel_expr_python import cel
from cel_expr_python.ext import ext_lists
env: cel.Env = cel.NewEnv(
extensions=[ext_lists.ExtLists()],
options=cel.Options(enable_pratt_parser=True),
)
res: cel.Value = env.compile("lists.range(4)").eval()- Stability & Packaging Improvements:
- Upgraded
cel-cpptov0.17.0and updatedcel-specconformance coverage. - Resolved AB-BA deadlocks between the Python GIL and C++
DescriptorPool/ runtime mutexes during multi-threaded compilation and evaluation. - Ensured evaluated
cel.Valueinstances safely outlivecel.Expressionby cloning values onto the evaluation arena. - Hardened PyPI wheel packaging to include
.pyitype stubs for all extension modules while excluding test files.
- Upgraded
Full Changelog: v0.1.3...v0.1.4