Skip to content

Release 0.1.4

Latest

Choose a tag to compare

@dmitriplotnikov dmitriplotnikov released this 06 Nov 02:04
· 3 commits to main since this release

Release notes for CEL Python (cel-expr-python) version 0.1.4

Key Highlights

  • Lists Extension Library (ext_lists): Added bindings for the standard CEL lists extension library (cel_expr_python.ext.ext_lists.ExtLists()), providing functions such as lists.range(), slice(), flatten(), distinct(), reverse(), and sort().
  • 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 via cel.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-cpp to v0.17.0 and updated cel-spec conformance coverage.
    • Resolved AB-BA deadlocks between the Python GIL and C++ DescriptorPool / runtime mutexes during multi-threaded compilation and evaluation.
    • Ensured evaluated cel.Value instances safely outlive cel.Expression by cloning values onto the evaluation arena.
    • Hardened PyPI wheel packaging to include .pyi type stubs for all extension modules while excluding test files.

Full Changelog: v0.1.3...v0.1.4