Skip to main content

jlens

JSONata for Python, with an engine written in Rust. It filters, queries and transforms JSON documents, and it can explain how a result was reached: which comparisons passed or failed, and which items a filter rejected.

pip install jlens
from jlens import Expression

expr = Expression("$sum(items[type = $kind].(price * qty))")
expr.evaluate({"items": [{"type": "a", "price": 2.5, "qty": 4}]}, {"kind": "a"})  # 10

jlens passes the official JSONata 2.2.2 test suite, and its package is typed. Wheels cover CPython 3.10 and later, and free-threaded Python 3.15 and later, on Linux, macOS and Windows. The package is in beta until jlens 1.0.

API

Name Purpose
Expression(source) Compiles an expression; raises a JlensError on syntax errors
expr.evaluate(input=None, bindings=None, **options) Evaluates against Python values, read as the expression reaches them; None when the result is undefined or null
expr.evaluate_json(text=None, bindings=None, **options) The same with JSON text in and out
Document(value), Document.from_json(text) A document converted once, for expr.evaluate_document(document, bindings=None, **options); shareable between threads
expr.evaluate_with_audit(input=None, bindings=None, *, level, limits, **options) Result, audit tree and explanation; errors are reported, not raised
expr.register_function(name, implementation, signature=None) Makes a Python callable available as $name to every evaluation

Callables in the bindings are host functions too. The options are timeout (seconds), max_depth, max_string_length, max_array_length, max_result_size, now and seed. Errors are JlensError exceptions with the JSONata error code, plus position, start, end, token and value; offsets count code points, like str indexes.

The full guide is the Python chapter of the jlens book.

License

MIT. The code and documentation ported or adapted from JSONata are also under the MIT license; see LICENSE.

Metadata

Release files for jlens 0.30.0

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

Source distribution (sdist)

Source distribution for jlens 0.30.0
File Size Uploaded Provenance Actions
jlens-0.30.0.tar.gz 495.4 kB With provenance Details for jlens-0.30.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for jlens 0.30.0
File Actions
jlens-0.30.0-cp315-abi3.abi3t-win_amd64.whl CPython 3.15 abi3, abi3t Windows x86-64 Details for jlens-0.30.0-cp315-abi3.abi3t-win_amd64.whl
jlens-0.30.0-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl CPython 3.15 abi3, abi3t Linux musl 1.2+ x86-64 Details for jlens-0.30.0-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
jlens-0.30.0-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl CPython 3.15 abi3t, abi3 Linux musl 1.2+ ARM64 Details for jlens-0.30.0-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
jlens-0.30.0-cp315-abi3.abi3t-manylinux_2_28_x86_64.whl CPython 3.15 abi3t, abi3 Linux glibc 2.28+ x86-64 Details for jlens-0.30.0-cp315-abi3.abi3t-manylinux_2_28_x86_64.whl
jlens-0.30.0-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl CPython 3.15 abi3t, abi3 Linux glibc 2.28+ ARM64 Details for jlens-0.30.0-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
jlens-0.30.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl CPython 3.15 abi3t, abi3 macOS 11.0+ ARM64 Details for jlens-0.30.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl
jlens-0.30.0-cp315-abi3.abi3t-macosx_10_12_x86_64.whl CPython 3.15 abi3t, abi3 macOS 10.12+ x86-64 Details for jlens-0.30.0-cp315-abi3.abi3t-macosx_10_12_x86_64.whl
jlens-0.30.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for jlens-0.30.0-cp310-abi3-win_amd64.whl
jlens-0.30.0-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for jlens-0.30.0-cp310-abi3-musllinux_1_2_x86_64.whl
jlens-0.30.0-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details for jlens-0.30.0-cp310-abi3-musllinux_1_2_aarch64.whl
jlens-0.30.0-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for jlens-0.30.0-cp310-abi3-manylinux_2_28_x86_64.whl
jlens-0.30.0-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for jlens-0.30.0-cp310-abi3-manylinux_2_28_aarch64.whl
jlens-0.30.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for jlens-0.30.0-cp310-abi3-macosx_11_0_arm64.whl
jlens-0.30.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for jlens-0.30.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 19.9 MB

Release files / jlens-0.30.0.tar.gz

Download URL jlens-0.30.0.tar.gz
Size 495.4 kB
Tags Source
SHA-256 checksum
How to use checksums
94877db3485a7e262901c419cf89a24655c75f53260868d2449bacfc2b0026f9
BLAKE2b-256 checksum
How to use checksums
90af8b8a40cc9b4330617cfa0d96f666a3ee7997dab03f12db05e2485be56413
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / jlens-0.30.0-cp315-abi3.abi3t-win_amd64.whl

Download URL jlens-0.30.0-cp315-abi3.abi3t-win_amd64.whl
Size 1.3 MB
Tags CPython 3.15 Windows x86-64 abi3 abi3t
SHA-256 checksum
How to use checksums
895eac319a417cb38bedd1c84dd91f92f665fdf251a82ea1cc9ca75b6de143a6
BLAKE2b-256 checksum
How to use checksums
29cdd92b73da029235588055e333d47e9ed4998a94f8285a46438d90adc9921f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / jlens-0.30.0-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl

Download URL jlens-0.30.0-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Size 1.6 MB
Tags CPython 3.15 Linux musl 1.2+ x86-64 abi3 abi3t
SHA-256 checksum
How to use checksums
430deaec1e0ebe1f0554b962f3e3a086d451bfdb8334ba1010e23d0d2988b7f1
BLAKE2b-256 checksum
How to use checksums
dcaec69db13f0576c313730fd29a30503dff3c243fb9f813df235efeda276e5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / jlens-0.30.0-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl

Download URL jlens-0.30.0-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Size 1.5 MB
Tags CPython 3.15 Linux musl 1.2+ ARM64 abi3 abi3t
SHA-256 checksum
How to use checksums
36ee7ff23a265a24820e91f756bbdc607640bdd783a32b1ba3e948c574834bf6
BLAKE2b-256 checksum
How to use checksums
23d49031cb0af4f9c09c83e811b96f7cc90139cfa6e72cdc5b3d72b309adeef7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / jlens-0.30.0-cp315-abi3.abi3t-manylinux_2_28_x86_64.whl

Download URL jlens-0.30.0-cp315-abi3.abi3t-manylinux_2_28_x86_64.whl
Size 1.4 MB
Tags CPython 3.15 Linux glibc 2.28+ x86-64 abi3 abi3t
SHA-256 checksum
How to use checksums
013364812830f23ea08c49a7ce59ec385272f3672b634397f50325425412d686
BLAKE2b-256 checksum
How to use checksums
7839408692fb5b8bd1c13673b6466ad50086e80426d2dddd1aaf1bc819730196
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / jlens-0.30.0-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl

Download URL jlens-0.30.0-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Size 1.3 MB
Tags CPython 3.15 Linux glibc 2.28+ ARM64 abi3 abi3t
SHA-256 checksum
How to use checksums
f5a68504a30f252b0d4f1d35e75681d2ad6db5a841fc02dc446106493bbd6b15
BLAKE2b-256 checksum
How to use checksums
f4a8e4bfab37f07e3a7a98d1e741bee209ac003a095240b06eee7c762b721e6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / jlens-0.30.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl

Download URL jlens-0.30.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl
Size 1.3 MB
Tags CPython 3.15 abi3 abi3t macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0d76e7359f4266917bb701246df42088ef98c1c9d3f6ad9cd0dddfa218bd36eb
BLAKE2b-256 checksum
How to use checksums
9d2dfaf322dbd2663eee195f158593902f79e97041e3dfcc68a94e4311c73f07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / jlens-0.30.0-cp315-abi3.abi3t-macosx_10_12_x86_64.whl

Download URL jlens-0.30.0-cp315-abi3.abi3t-macosx_10_12_x86_64.whl
Size 1.3 MB
Tags CPython 3.15 abi3 abi3t macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
ea3848fc5a0539168d754cc683dc019b2d1a15d1444c862374c2360b1267b464
BLAKE2b-256 checksum
How to use checksums
0a531eb41a9f92a5fb19918bea2ee00f52e65acf801927d8d805ab92e0d99dfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / jlens-0.30.0-cp310-abi3-win_amd64.whl

Download URL jlens-0.30.0-cp310-abi3-win_amd64.whl
Size 1.3 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
3bc2540440bbea0c278c79efbc3e0563a883da723dc540d21a5d106f5a1c09a6
BLAKE2b-256 checksum
How to use checksums
b2ef6e37ca5335b02293814ed9eb05ac104ec74d3e7ae7b1c754f7011c3cee9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / jlens-0.30.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL jlens-0.30.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 1.6 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
05382c2134d937b534a85c4657ff53c07c9f74d09f4fdd2ca4a0eadf57aef1b0
BLAKE2b-256 checksum
How to use checksums
aaf3e317d887edc8eff0c23fe1563b6b233d2b366bea818d23a1ec984a9e510b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / jlens-0.30.0-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL jlens-0.30.0-cp310-abi3-musllinux_1_2_aarch64.whl
Size 1.5 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
263c48c6d795b9d93574d2f98f7d40186e9c183f7df9b1f95e73d2667c314f61
BLAKE2b-256 checksum
How to use checksums
30aeef7e723a237385e25090dd8cde0bae0b126945985552d2d88fb8e1600c09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / jlens-0.30.0-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL jlens-0.30.0-cp310-abi3-manylinux_2_28_x86_64.whl
Size 1.4 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
2f01dac120a5ed4a361bc3d2397699e04818d41696448315f76faf7585891844
BLAKE2b-256 checksum
How to use checksums
2cc9a8ec23ee5ac5072700ddfcaf5b7443704eded1366a41ff91eceaeefd9050
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / jlens-0.30.0-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL jlens-0.30.0-cp310-abi3-manylinux_2_28_aarch64.whl
Size 1.3 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
53cfb40985fb0784d6b100fdfb10d074420d7393f01fd5e634f4d9d65b6c564d
BLAKE2b-256 checksum
How to use checksums
f443654e66ab1f99a68f9a9fb499211dbbd189f7c0b155e4810426a0f9415d75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / jlens-0.30.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL jlens-0.30.0-cp310-abi3-macosx_11_0_arm64.whl
Size 1.3 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3487ade6648897eabcf447d1ed24af4f69b3d417981cb3474689831a401f605f
BLAKE2b-256 checksum
How to use checksums
e8a969900b46831f7178d9428a0e4414844f23db01bba5e7e53af8462952aeac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Release files / jlens-0.30.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL jlens-0.30.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 1.3 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
4c94ca3f682aa21ce9e2e8dff5a3c8e99ac785cac82464e55b61c9e1215ec207
BLAKE2b-256 checksum
How to use checksums
1a045af6d505e9cb5a97de945852a9076ba473f5b3af7131147bc8fe8f0d9406
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 7, 2026.

Transparency log

Security for jlens 0.30.0

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.

Full provenance

All 15 files in this release have been uploaded with provenance metadata.

Select from 15 files

Attestation for jlens-0.30.0.tar.gz

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 Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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