Skip to main content

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:

License

Licensed under the MIT License. See LICENSE for details.

Metadata

Release files for pyjexl-extended 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyjexl-extended 0.2.6
File Size Uploaded
pyjexl_extended-0.2.6.tar.gz 27.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyjexl-extended 0.2.6
File Interpreter ABI Platform
pyjexl_extended-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 46.8 kB

Release files / pyjexl_extended-0.2.6.tar.gz

Download URL pyjexl_extended-0.2.6.tar.gz
Size 27.4 kB
Tags Source
SHA-256 checksum
How to use checksums
159ada613e6e974d1314510a124125507c2b1de5d595d09f712c2b355b177ba6
BLAKE2b-256 checksum
How to use checksums
049f80b048b7c02c2139f5f0873fed98da30d43d77fdbaea1dfcf6ccbade702c
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 Oct 6, 2026.

Transparency log

Release files / pyjexl_extended-0.2.6-py3-none-any.whl

Download URL pyjexl_extended-0.2.6-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6cda9b68ec5c46f10d480e1787117ff6ed88332a0be85cd9b8547ec2df1bf9c1
BLAKE2b-256 checksum
How to use checksums
d10d44b24b9889b2b085b1c605cfcaf7881cd6425a7881f0680602739cc74215
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 Oct 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.4

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page