By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Google Open-Sources the Common Expression Language for Python
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > Google Open-Sources the Common Expression Language for Python
News

Google Open-Sources the Common Expression Language for Python

News Room
Last updated: 2026/03/16 at 3:13 PM
News Room Published 16 March 2026
Share
Google Open-Sources the Common Expression Language for Python
SHARE

Google has open sourced CEL-expr-python, a Python implementation of the Common Expression Language (CEL), a non-Turing complete embedded policy and expression language designed for simplicity, speed, safety, and portability.

Google says that “CEL has become a prevalent technology for applications like policy enforcement, data validation, and dynamic configuration”. This release provides an officially maintained implementation, making it easier to use CEL consistently across infrastructure and applications. As a result, Python developers now have a first-party CEL runtime instead of relying on community-supported libraries.

The CEL team has chosen to develop CEL-expr-python by wrapping our official C++ implementation to ensure maximum consistency with CEL semantics while enabling Python users to extend and enrich the experience on top of this production-ready core in Python directly.

Another advantage of wrapping the official C++ implementation is that any future improvements to the C++ core, including new features and optimizations, will automatically be inherited by CEL-expr-python.

The following snippet shows how you can initialize CEL-expr-python to evaluate an expression:


from cel_expr_python import cel

# Define variables
cel_env = cel.NewEnv(variables={"who": cel.Type.STRING})
expr = cel_env.compile("'Hello, ' + who + '!'")

# Evaluate and print the compiled expression
print(expr.eval(data={"who": "World"})))  // Hello, World!

Commenting on Reddit, user rabornkraken noted that the ability to compile an expression and reuse it across requests is what makes CEL interesting:

I have been using ad-hoc AST evaluators for feature flags and they are painful to maintain – the expressions drift from what the runtime actually supports. Having a proper type-checked compile step would catch so many issues upfront.

TristonianJones, one of the project maintainers, elaborated on scenarios where CEL really shines:

It’s pretty good for embedding into a larger policy or configuration format and we have more extensive toolchains for policy authoring and composition in our github.com/google/cel-go repository, but the nice part is you could compile using the Go (or Java) toolchain and evaluate in Python pretty easily.

The Common Expression Language was designed by Google to be fast, portable, and safe for evaluating conditions and rules, especially within high-performance applications like Kubernetes and Envoy. It uses C-like syntax and is “compile-once, evaluate-many,” making it perfect for embedding in systems requiring fast, secure, and flexible policy evaluation.

CEL is non-Turing complete, side-effect free, and guaranteed to terminate, which makes it ideal for safe embedded rule evaluation, including policy enforcement, data validation, dynamic configuration, and runtime rules from user input or config. It also provides very fast evaluation, “from nanoseconds to microseconds”.

CEL-expr-python is available on GitHub, and Google also provides a comprehensive tutorial via codelab.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Living in the Long Shadow of Sudan’s Genocide – Knock LA Living in the Long Shadow of Sudan’s Genocide – Knock LA
Next Article Huawei–BAIC Stelato S9T Wagon Launches in China, Starting at US,000 · TechNode Huawei–BAIC Stelato S9T Wagon Launches in China, Starting at US$43,000 · TechNode
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Ecovacs’ Deebot X8 and X9 Pro Omni robovacs are nearly 50 percent off
Ecovacs’ Deebot X8 and X9 Pro Omni robovacs are nearly 50 percent off
News
File Your Taxes With TurboTax Full Service Now Before Prices Go Up
File Your Taxes With TurboTax Full Service Now Before Prices Go Up
Gadget
AMD CEO Lisa Su visits Lenovo Beijing headquarters · TechNode
AMD CEO Lisa Su visits Lenovo Beijing headquarters · TechNode
Computing
Skip the Extra Laptop — This Refurbished iPad Is 51% Off
Skip the Extra Laptop — This Refurbished iPad Is 51% Off
News

You Might also Like

Ecovacs’ Deebot X8 and X9 Pro Omni robovacs are nearly 50 percent off
News

Ecovacs’ Deebot X8 and X9 Pro Omni robovacs are nearly 50 percent off

3 Min Read
Skip the Extra Laptop — This Refurbished iPad Is 51% Off
News

Skip the Extra Laptop — This Refurbished iPad Is 51% Off

4 Min Read
Tesla Model Y L gets new entertainment feature
News

Tesla Model Y L gets new entertainment feature

4 Min Read
The Texas startup trying to stop mass shootings with AI
News

The Texas startup trying to stop mass shootings with AI

5 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?