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.35.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.35.0
File Size Uploaded Provenance Actions
jlens-0.35.0.tar.gz 512.7 kB With provenance Details for jlens-0.35.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for jlens 0.35.0
File Actions
jlens-0.35.0-cp315-abi3.abi3t-win_amd64.whl CPython 3.15 abi3, abi3t Windows x86-64 Details for jlens-0.35.0-cp315-abi3.abi3t-win_amd64.whl
jlens-0.35.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.35.0-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
jlens-0.35.0-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl CPython 3.15 abi3, abi3t Linux musl 1.2+ ARM64 Details for jlens-0.35.0-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
jlens-0.35.0-cp315-abi3.abi3t-manylinux_2_28_x86_64.whl CPython 3.15 abi3, abi3t Linux glibc 2.28+ x86-64 Details for jlens-0.35.0-cp315-abi3.abi3t-manylinux_2_28_x86_64.whl
jlens-0.35.0-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl CPython 3.15 abi3, abi3t Linux glibc 2.28+ ARM64 Details for jlens-0.35.0-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
jlens-0.35.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl CPython 3.15 abi3t, abi3 macOS 11.0+ ARM64 Details for jlens-0.35.0-cp315-abi3.abi3t-macosx_11_0_arm64.whl
jlens-0.35.0-cp315-abi3.abi3t-macosx_10_12_x86_64.whl CPython 3.15 abi3, abi3t macOS 10.12+ x86-64 Details for jlens-0.35.0-cp315-abi3.abi3t-macosx_10_12_x86_64.whl
jlens-0.35.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for jlens-0.35.0-cp310-abi3-win_amd64.whl
jlens-0.35.0-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for jlens-0.35.0-cp310-abi3-musllinux_1_2_x86_64.whl
jlens-0.35.0-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details for jlens-0.35.0-cp310-abi3-musllinux_1_2_aarch64.whl
jlens-0.35.0-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for jlens-0.35.0-cp310-abi3-manylinux_2_28_x86_64.whl
jlens-0.35.0-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for jlens-0.35.0-cp310-abi3-manylinux_2_28_aarch64.whl
jlens-0.35.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for jlens-0.35.0-cp310-abi3-macosx_11_0_arm64.whl
jlens-0.35.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for jlens-0.35.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 20.1 MB

Release files / jlens-0.35.0.tar.gz

Download URL jlens-0.35.0.tar.gz
Size 512.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fd0f8d9a0929b6da45e49cb7f0bcb10aab574c94b8e0b204ae4e3bbb1ac2f434
BLAKE2b-256 checksum
How to use checksums
2dadf272dc550c899a79fda2af264e198f9257e336a80501af43150895d4b4ad
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 15, 2026.

Transparency log

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

Download URL jlens-0.35.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
ba32a44f379376a37c2a51df27904daee7667171dd644cddadbffa1cebbc5b32
BLAKE2b-256 checksum
How to use checksums
ba8593e3297d3ec64fd4590fdd88491dea64219e344791cd8ff6a989d59766be
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 15, 2026.

Transparency log

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

Download URL jlens-0.35.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
36e3b6a3575202dab2943d6b9929c8f2a1e07c54c9c26a0aa4d3db38f25b27c4
BLAKE2b-256 checksum
How to use checksums
5c87b085b0dc478ec4b36d8a2601a6ab438ec65b42a50729a02f791cb27f589c
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 15, 2026.

Transparency log

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

Download URL jlens-0.35.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
fb27a426473c3f4ba43da5cb64c89a077ee57a63b49bdb4f6416e89d112b0a09
BLAKE2b-256 checksum
How to use checksums
a15fc5d6f29031fff95e901af910a410fd4c30ad4fa5304c5d19bc146bc1047b
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 15, 2026.

Transparency log

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

Download URL jlens-0.35.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
7754fb380c71fbce640046a968b811056af8226abdb7e55d3eb94e5e395817fc
BLAKE2b-256 checksum
How to use checksums
ce6c137e10366abbbcd855b98848f17068c0283e1de305c3b882a479472fc182
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 15, 2026.

Transparency log

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

Download URL jlens-0.35.0-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl
Size 1.4 MB
Tags CPython 3.15 Linux glibc 2.28+ ARM64 abi3 abi3t
SHA-256 checksum
How to use checksums
5e0f02f8402454d0ef6b1d30dc87186b2402f8a7f8f1af29b2c742b336ff7cf0
BLAKE2b-256 checksum
How to use checksums
0251baafef9a0ea511a116b9b931417ba72c8c693800c72dcca79cc76bf5cf90
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 15, 2026.

Transparency log

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

Download URL jlens-0.35.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
30d01797c6d451e193d7669ea758cc11da5a492896a80ee269828d392c26ed92
BLAKE2b-256 checksum
How to use checksums
fa9ecb4e5ed5a7932be014480661761f2d1a3757c358c6a29f8c55f5fdc2c716
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 15, 2026.

Transparency log

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

Download URL jlens-0.35.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
868d025c948b17cf038f05cb8efc0059f40422c57e2bbbc5aa750012ef7e6c07
BLAKE2b-256 checksum
How to use checksums
de56d010db7d5c1b1a47c4e09087867ed8be85dec2815860922811a894d10f1a
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 15, 2026.

Transparency log

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

Download URL jlens-0.35.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
b881734bea628d2f5bab6a7560b98895027c35764488033a5c66f872f05e0fb9
BLAKE2b-256 checksum
How to use checksums
6a5d88e11097991d78390b7509cdf0d698304b9701c5067f060d60102880dadc
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 15, 2026.

Transparency log

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

Download URL jlens-0.35.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
f0d0c637a1aac06af794be5f1689c2135fc84d60bb2202c8a0098dbb51b9e59e
BLAKE2b-256 checksum
How to use checksums
71befe547db7542963d1e471e4f0c35896bfcf91c51c1c59771207f6ca61ced5
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 15, 2026.

Transparency log

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

Download URL jlens-0.35.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
c0488c5b7823d281e98639f230c89236b9addc5ab6665d3f164b5d29082c8113
BLAKE2b-256 checksum
How to use checksums
0f04eba333d1c904fc58a02d9266c6f5dca305438e497484c12ed1710e462ec2
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 15, 2026.

Transparency log

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

Download URL jlens-0.35.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
7f57456868fa8ac1fe282509993c8df80de530b6cd200b40c1ab72c3a6ccb2b8
BLAKE2b-256 checksum
How to use checksums
624bfc9799f04ebfd7bb83cee81a188d61493305062bb104b614c33d48c23a89
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 15, 2026.

Transparency log

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

Download URL jlens-0.35.0-cp310-abi3-manylinux_2_28_aarch64.whl
Size 1.4 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
c1a33ec5b417575e6451455e0db4ea8409720955c54358e6988315098fe2b331
BLAKE2b-256 checksum
How to use checksums
078513a2ff703fe64fbd9111cfb96449f6703f1f2e273b650ae6f23a8f24b90c
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 15, 2026.

Transparency log

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

Download URL jlens-0.35.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
3d0743e5f405a91a2cb9d3450ff7612b8344aeedd8e6b156c5a79347d626cb21
BLAKE2b-256 checksum
How to use checksums
97e0b085e41a1d96382ae82fba6e59f9ed15107a2fd6fa201076738d8b8fa28b
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 15, 2026.

Transparency log

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

Download URL jlens-0.35.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
132e79360feae4d22a13dbb5edf46cfc499882d09356588f77b444e428832f82
BLAKE2b-256 checksum
How to use checksums
f8e493d2ec627b48a98d3c0fe74463349b2201ba5ec7dd130b59ce543160e8b9
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 15, 2026.

Transparency log

Security for jlens 0.35.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.35.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 15, 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