Google has open sourced CEL-expr-python, an official Python implementation of the Common Expression Language (CEL). Built by wrapping the C++ CEL implementation, it provides a native Python API for compiling and evaluating CEL expressions. Key use cases include dynamic expression evaluation, policy enforcement, and data validation. The library is safety-focused (side-effect free, guaranteed termination), fast, and portable. The repository is initially read-only with contributions planned for the future. A code snippet and codelab are available to get started.
Sort: