$npx skillfedfor your agent

cel-expr-python

The CEL Python runtime

With conditionsPyPI Python ModulesReleased Jun 2026234.1K downloads / moApache-2.0Platform wheel

Decision gist · record as of 2026-08-14

platform wheels — cel_expr_python-0.1.3-cp311-cp311-macosx_10_13_x86_64.whl · cel_expr_python-0.1.3-cp311-cp311-macosx_11_0_arm64.whl · cel_expr_python-0.1.3-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
v0.1.3 · released 2026-06-25 · Python >=3.11

Yes, if you need a safe, efficient expression evaluator for policy or rule engines. The package is actively maintained, has no known vulnerabilities, supports modern Python versions with precompiled wheels, and offers a clean API for both simple and advanced use cases (custom functions, protobuf integration, memory optimization). Install friction is moderate but manageable; the Apache-2.0 license is unrestrictive.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.11 or later; precompiled wheels available for macOS (Intel and ARM), Linux (x86_64 and aarch64), and Windows.
  • Medium install friction due to compiled wheels for multiple Python versions (3.11–3.14) and platforms (macOS, Linux, Windows).
  • Active maintenance with a recent release (50 days ago) and an active repository.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and state significant changes.

last release 2026-06-25 (50 days) · last repo commit 2026-08-14 · 78 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 234,122 downloads/mo, #9,029 on PyPI

Verify before relying

pip install cel-expr-python

from cel_expr_python import cel

cel_env = cel.NewEnv(variables={"x": cel.Type.INT, "y": cel.Type.INT})
expr = cel_env.compile("x + y > 10")
result = expr.eval(data={"x": 7, "y": 4})
print(result.value())  # True
  • Performance characteristics compared to direct CEL C++ usage or alternative expression evaluators.
  • Whether custom extensions beyond math and string libraries are documented or supported.
  • Serialization format stability and forward/backward compatibility guarantees.
Same gist for agents: .md · .json

What it is and what it does

cel-expr-python is a Python binding to the CEL C++ runtime, enabling you to parse, compile, and evaluate CEL expressions—a Google-designed language for policy evaluation and access control. It lets you define typed variables, compile expressions once for reuse, and evaluate them efficiently against different data sets. The package supports protobuf messages as first-class values, custom Python functions, optional type checking at compile time, and memory-efficient evaluation via shared arenas and activations.

You typically use it to build policy engines, authorization systems, or rule evaluators where expressions need to be safe, sandboxed, and fast. The wrapper handles the C++ complexity, exposing a straightforward Python API for environment setup, expression compilation, and evaluation with optional configuration for descriptor pools, containers, and extensions.

Use it for

  • Authorization and access control: evaluate policies like 'user.role in ["admin"] && request.resource == "sensitive_data"'.
  • Rule engines in microservices: compile and cache expressions once, then evaluate them across many requests with different variable bindings.
  • Protobuf-based validation: check constraints on protobuf message fields within CEL expressions.
  • Custom business logic: define domain-specific functions and reuse them across multiple compiled expressions.
  • Memory-constrained evaluation: use Arena for batch evaluation to release temporary objects as a group.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need a safe, efficient expression evaluator for policy or rule engines.

The package is actively maintained, has no known vulnerabilities, supports modern Python versions with precompiled wheels, and offers a clean API for both simple and advanced use cases (custom functions, protobuf integration, memory optimization). Install friction is moderate but manageable; the Apache-2.0 license is unrestrictive.

Install

cel-expr-python on PyPI

Before you install

Medium install friction due to compiled wheels for multiple Python versions (3.11–3.14) and platforms (macOS, Linux, Windows). Active maintenance with a recent release (50 days ago) and an active repository.

Requires Python 3.11 or later; precompiled wheels available for macOS (Intel and ARM), Linux (x86_64 and aarch64), and Windows.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and state significant changes.

Quickstart

pip install cel-expr-python

from cel_expr_python import cel

cel_env = cel.NewEnv(variables={"x": cel.Type.INT, "y": cel.Type.INT})
expr = cel_env.compile("x + y > 10")
result = expr.eval(data={"x": 7, "y": 4})
print(result.value())  # True

Verify before relying

  • Performance characteristics compared to direct CEL C++ usage or alternative expression evaluators.
  • Whether custom extensions beyond math and string libraries are documented or supported.
  • Serialization format stability and forward/backward compatibility guarantees.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.11
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceActively maintained 50 days since the last release
Last repo commit
First released
Downloads234,122 / month, #9,029 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Operating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxTopic :: Software Development :: InterpretersTopic :: Software Development :: Libraries :: Python Modules

Evidence: cel_expr_python-0.1.3-cp311-cp311-macosx_10_13_x86_64.whl; cel_expr_python-0.1.3-cp311-cp311-macosx_11_0_arm64.whl; cel_expr_python-0.1.3-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl; cel_expr_python-0.1.3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; cel_expr_python-0.1.3-cp311-cp311-win_amd64.whl; cel_expr_python-0.1.3-cp312-cp312-macosx_10_13_x86_64.whl; cel_expr_python-0.1.3-cp312-cp312-macosx_11_0_arm64.whl; cel_expr_python-0.1.3-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl; cel_expr_python-0.1.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; cel_expr_python-0.1.3-cp312-cp312-win_amd64.whl; cel_expr_python-0.1.3-cp313-cp313-macosx_10_13_x86_64.whl; cel_expr_python-0.1.3-cp313-cp313-macosx_11_0_arm64.whl; cel_expr_python-0.1.3-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl; cel_expr_python-0.1.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; cel_expr_python-0.1.3-cp313-cp313-win_amd64.whl; cel_expr_python-0.1.3-cp314-cp314-macosx_10_15_x86_64.whl; cel_expr_python-0.1.3-cp314-cp314-macosx_11_0_arm64.whl; cel_expr_python-0.1.3-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl; cel_expr_python-0.1.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; cel_expr_python-0.1.3-cp314-cp314-win_amd64.whl

Tags

Capabilities
CEL expression evaluationcommon expression language pythonpolicy evaluation engineexpression compiler runtimeCEL protobuf supportcustom function expressionstype-checked expression language
Topics
policy-evaluationexpression-languageprotobuf-integration

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “CEL expression evaluation”

  • cel-expr-pythonA Python wrapper for the CEL C++ implementation that compiles and…
  • cel-pythonParses and evaluates Google Common Expression Language (CEL)…
  • common-expression-languageEvaluates Google's Common Expression Language (CEL) expressions in…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also cel-python · common-expression-language · asteval · simpleeval · py-expression-eval · protovalidate · leval · boolean.py · promql-parser · powerfx