PyJEXL-Extended
Python implementation of the JEXL expression language with extended grammar—over 80 built-in functions and transforms for strings, numbers, arrays, objects, dates, and more.
NOTE: This library is based on TomFrost's JEXL and extends the original mozilla/pyjexl with a rich set of features inspired by jexl-extended.
Features
- 🚀 80+ Built-in Functions & Transforms: String manipulation, math, arrays, objects, dates, and more
- 🧩 Modular Grammar: Use the entire library or import individual functions
- 🐍 Pythonic Semantics: Type-safe, predictable behavior
- 🧪 Extensible: Add your own functions, transforms, and operators
📚 Full Documentation: https://docs.konnektr.io/docs/jexl/
Quick Start
Install:
pip install pyjexl-extended
Basic usage:
from pyjexl.jexl_extended import JexlExtended
context = {
"users": [
{"name": "John", "age": 32},
{"name": "Jane", "age": 34},
{"name": "Bob", "age": 33}
]
}
jexl = JexlExtended(context)
result = jexl.eval('users|filter("value.age > 32")|map("value.name")|join(", ")')
# "Jane, Bob"
Extended Grammar Examples
- String:
"hello world"|uppercase→"HELLO WORLD" - Array:
[1,2,3]|sum→6 - Object:
{foo:1, bar:2}|keys→['foo', 'bar'] - Date:
now()→ ISO datetime string - Math:
10.123456|round(2)→10.12
See jexl-extended for the full list of available functions and transforms.
Playground
Try out expressions interactively:
Related Projects
- jexl-extended (TypeScript) — The original extended grammar for JEXL
- JexlNet (C#) — C# implementation with extended grammar
- PyJEXL (Mozilla) — Original Python JEXL parser
- jexl-rs (Rust) — Rust-based JEXL parser
License
Licensed under the MIT License. See LICENSE for details.
Metadata
Release files for pyjexl-extended 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyjexl_extended-0.2.4.tar.gz | 25.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyjexl_extended-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.5 kB
Release files / pyjexl_extended-0.2.4.tar.gz
| Download URL | pyjexl_extended-0.2.4.tar.gz |
|---|---|
| Size | 25.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9e5789dff01194bb6fc245ba15736ae263a40e348b573c856880d5d825011f3
|
|
BLAKE2b-256 checksum How to use checksums |
bd0388f683071390200648c8a3d7b5eb27b910b2b4290953f1f2800c52bac041
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 2, 2026.
Transparency logRelease files / pyjexl_extended-0.2.4-py3-none-any.whl
| Download URL | pyjexl_extended-0.2.4-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d099ca7bef98398174d36589d69e01f48b8d24fcd6f90ce651ddd07029ee4e2e
|
|
BLAKE2b-256 checksum How to use checksums |
864c2eb15c5356764090eec1bde6c2d630efa7ff8d288052e06589f7ab0ca5c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 2, 2026.
Transparency log