$npx skillfedfor your agent

common-expression-language

Python bindings for the Common Expression Language (CEL)

Worth itPyPI Software DevelopmentReleased Jul 2026137.3K downloads / mopermissive licensePlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — common_expression_language-0.7.0-cp311-cp311-macosx_10_12_x86_64.whl · common_expression_language-0.7.0-cp311-cp311-macosx_11_0_arm64.whl · common_expression_language-0.7.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
v0.7.0 · released 2026-07-04 · Python >=3.11 · 4 runtime deps: typer, rich, prompt-toolkit, pygments

Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive license, and solves a real problem—safe, fast evaluation of user-defined logic. Medium install friction is acceptable given the compiled-wheel distribution strategy. Install it if you need to evaluate untrusted expressions, define policies externally, or let non-developers write business rules.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.11 or later; compiled wheels are provided for common platforms.
  • Medium install friction due to compiled wheels across multiple Python versions and architectures.
  • Active maintenance with a recent release (41 days old) and ongoing repository activity.

License · maintenance · safety

permissive license (permissive) — Licensed under Apache Software License (permissive), allowing commercial and private use with minimal restrictions.

last release 2026-07-04 (41 days) · last repo commit 2026-07-04 · 39 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 137,284 downloads/mo, #11,373 on PyPI

Verify before relying

pip install common-expression-language

from common_expression_language import evaluate

result = evaluate("age >= 18", {"age": 25})
  • Whether the Rust backend introduces any runtime dependencies or system library requirements beyond the wheel distributions.
  • Performance characteristics under high-volume expression evaluation in production workloads.
  • Compatibility guarantees and stability of the Python API across minor version updates.
  • Exact import path and API surface for the evaluate function and Context class.
Same gist for agents: .md · .json

What it is and what it does

Common Expression Language is a Python wrapper around the Rust CEL interpreter, designed to evaluate safe, declarative expressions without the overhead of a full programming language. It accepts CEL source strings and optional context (variables and custom functions), returning results in microseconds. The package is built for scenarios where you need to let untrusted users or external systems define logic—policies, feature flags, validation rules, data filters—without exposing a full Python interpreter.

The library supports a rich type system (integers, floats, strings, lists, maps, timestamps, durations, bytes, optionals) and can compile expressions for reuse across multiple contexts. It includes a command-line REPL and batch tool, optional standard library extensions (strings, math, sets, encoders, lists), and static analysis capabilities to inspect which variables and functions an expression references before execution.

Use it for

  • Define and update access control policies without redeploying code; evaluate rules based on user roles and resource ownership.
  • Validate complex configuration settings with declarative rules; e.g., numeric bounds and logical constraints.
  • Create sophisticated feature flag conditions that business users can understand and modify.
  • Build dynamic database and API query filters from user input safely.
  • Implement business decision logic that can be updated at runtime without code changes.
  • Transform and filter data with portable, safe expressions that can be shared across systems.

Worth the install?

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

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, uses a permissive license, and solves a real problem—safe, fast evaluation of user-defined logic. Medium install friction is acceptable given the compiled-wheel distribution strategy. Install it if you need to evaluate untrusted expressions, define policies externally, or let non-developers write business rules.

Install

common-expression-language on PyPI

Before you install

Medium install friction due to compiled wheels across multiple Python versions and architectures. Active maintenance with a recent release (41 days old) and ongoing repository activity. Requires Python 3.11 or later.

Requires Python 3.11 or later; compiled wheels are provided for common platforms.

License in practice

Licensed under Apache Software License (permissive), allowing commercial and private use with minimal restrictions.

Quickstart

pip install common-expression-language

from common_expression_language import evaluate

result = evaluate("age >= 18", {"age": 25})

Verify before relying

  • Whether the Rust backend introduces any runtime dependencies or system library requirements beyond the wheel distributions.
  • Performance characteristics under high-volume expression evaluation in production workloads.
  • Compatibility guarantees and stability of the Python API across minor version updates.
  • Exact import path and API surface for the evaluate function and Context class.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.11
Install frictionMedium. Platform-specific wheel
Runtime dependencies
4 packages
typerrichprompt-toolkitpygments
MaintenanceActively maintained 41 days since the last release
Last repo commit
First released
Downloads137,284 / month, #11,373 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: Rust

Evidence: common_expression_language-0.7.0-cp311-cp311-macosx_10_12_x86_64.whl; common_expression_language-0.7.0-cp311-cp311-macosx_11_0_arm64.whl; common_expression_language-0.7.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; common_expression_language-0.7.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; common_expression_language-0.7.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; common_expression_language-0.7.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl; common_expression_language-0.7.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; common_expression_language-0.7.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl; common_expression_language-0.7.0-cp311-cp311-win32.whl; common_expression_language-0.7.0-cp311-cp311-win_amd64.whl; common_expression_language-0.7.0-cp312-cp312-macosx_10_12_x86_64.whl; common_expression_language-0.7.0-cp312-cp312-macosx_11_0_arm64.whl; common_expression_language-0.7.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; common_expression_language-0.7.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; common_expression_language-0.7.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; common_expression_language-0.7.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl; common_expression_language-0.7.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; common_expression_language-0.7.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl; common_expression_language-0.7.0-cp312-cp312-win_amd64.whl; common_expression_language-0.7.0-cp313-cp313-macosx_10_12_x86_64.whl

Tags

Capabilities
CEL expression evaluationpolicy rule enginesafe expression languagedynamic rule evaluationaccess control rulesfeature flag conditionsconfiguration validation
Topics
expression-evaluationpolicy-enginerust-backed

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 › “safe expression language”

  • common-expression-languageEvaluates Google's Common Expression Language (CEL) expressions in…
  • astevalAsteval is a safe Python expression and statement evaluator that uses…
  • cel-expr-pythonA Python wrapper for the CEL C++ implementation that compiles and…

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

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also cel-python · zen-engine · cel-expr-python · pure-eval · rule-engine · leval · regress · protovalidate · cwl-utils · yggdrasil-engine