Juntai Query Engine
juntai-query-engine is a synchronous, in-process Python library that validates an
authorized Juntai logical query, translates it to Meridian's public structured
Catalog, and returns a stable Juntai query page. It is not an HTTP service, a storage
Engine, an Adapter registry, or an IAM policy evaluator.
The 2.0.0 contract deliberately has three public operations:
JuntaiQueryEngine.query(plan, context)validates and executes one logical query.JuntaiQueryEngine.catalog(context)exposes only the authorized logical query surface.JuntaiQueryEngine.translate(text, context)optionally produces an unexecuted plan through an injected translator.
Composition
The application supplies four in-process objects:
- an immutable
SnapshotStorecontaining exact schema-policy snapshots; - a Meridian runtime implementing the IAM operation-context hook,
catalog(), andexecute(); - the exact snapshot digest selected for the request;
- optionally, a domain-owned natural-language translator.
from juntai_query_engine import JuntaiQueryEngine
engine = JuntaiQueryEngine(
runtime=meridian_runtime,
snapshots=snapshot_store,
snapshot_digest="sha256:...",
)
page = engine.query(plan, authorized_operation_context)
Plans use formatVersion: juntai.logical-query.v1. They contain a logical resource,
filter, projection, sort, and page only. Tenant, principal, physical storage names,
Bindings, credentials, Adapters, and native cursors are forbidden. Meridian owns the
opaque cursor returned by execution.
The engine validates the exact snapshot, trusted IAM context, field authorization,
operators, limits, deterministic ordering, and result envelope before it touches the
runtime. It then enters IAM's verified operation scope, creates one public Meridian
expression, and calls runtime.execute(expression) exactly once.
Development
python -m pip install -e '.[test]'
ruff check .
pytest
python -m build
Python 3.12 and 3.13 are supported. Runtime dependencies are intentionally pinned to IAM 2.0.0 and the Meridian 1.0.0 public contracts.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file juntai_query_engine-2.0.0.tar.gz.
File metadata
- Download URL: juntai_query_engine-2.0.0.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
889e870a3532fe6bcd4e40642d6ff70e3131d16e0d61b484f90e9ed36bf43145
|
|
| MD5 |
4916a3c46847f413f9784aa53eecf920
|
|
| BLAKE2b-256 |
ea1d93dee37da73fe22918d85879e9dcb733a63fab7d267a82687fb39996ac5c
|
Provenance
The following attestation bundles were made for juntai_query_engine-2.0.0.tar.gz:
Publisher:
publish.yml on zephytiju/JuntaiQueryEngine
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
juntai_query_engine-2.0.0.tar.gz -
Subject digest:
889e870a3532fe6bcd4e40642d6ff70e3131d16e0d61b484f90e9ed36bf43145 - Sigstore transparency entry: 2629062674
- Sigstore integration time:
-
Permalink:
zephytiju/JuntaiQueryEngine@62836fac517f7a946295d00276544cc6d643d4e5 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/zephytiju
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@62836fac517f7a946295d00276544cc6d643d4e5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file juntai_query_engine-2.0.0-py3-none-any.whl.
File metadata
- Download URL: juntai_query_engine-2.0.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2866d1d837e53e40bd4a0757690f0160693775ce81d77d7a26ea6fdb5c319f54
|
|
| MD5 |
b914bf621ed6ee9b3bccf035211b48c9
|
|
| BLAKE2b-256 |
30eb302c57449cdf4d62ede677c378a730325e5bf081b8b3971113295f0b12bb
|
Provenance
The following attestation bundles were made for juntai_query_engine-2.0.0-py3-none-any.whl:
Publisher:
publish.yml on zephytiju/JuntaiQueryEngine
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
juntai_query_engine-2.0.0-py3-none-any.whl -
Subject digest:
2866d1d837e53e40bd4a0757690f0160693775ce81d77d7a26ea6fdb5c319f54 - Sigstore transparency entry: 2629062778
- Sigstore integration time:
-
Permalink:
zephytiju/JuntaiQueryEngine@62836fac517f7a946295d00276544cc6d643d4e5 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/zephytiju
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@62836fac517f7a946295d00276544cc6d643d4e5 -
Trigger Event:
release
-
Statement type: