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:

Related Projects

License

Licensed under the MIT License. See LICENSE for details.

Metadata

Release files for pyjexl-extended 0.2.5

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.5
File Size Uploaded
pyjexl_extended-0.2.5.tar.gz 25.7 kB Details

Built distribution (wheel)

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

Total release size: 44.8 kB

Release files / pyjexl_extended-0.2.5.tar.gz

Download URL pyjexl_extended-0.2.5.tar.gz
Size 25.7 kB
Tags Source
SHA-256 checksum
How to use checksums
784f6669f3b2814abfe4c146c65c343df9bf17b0903a211c9cde8e1bc6d60877
BLAKE2b-256 checksum
How to use checksums
6e6a289f749d06e887692745ab093fcba87fa0b3ad0d4963b5b73c5fd616db86
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

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

Download URL pyjexl_extended-0.2.5-py3-none-any.whl
Size 19.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eea3dc275b5ff12bde6665a6a3042b1439525d75cf3ef801cae7fad4fb7480d3
BLAKE2b-256 checksum
How to use checksums
5f119f860de7faed4967bcf1b58d5aae220efcb1b486393fce33fdce1807baa8
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

Release history Release notifications | RSS feed

0.2.6

2 release files

This release

0.2.5 This release

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