Skip to main content

urban-json

Portage Python du langage JSLT — JSON Stylesheet Language Transformations : un langage de transformation JSON → JSON piloté par template, initialement implémenté en .NET (Black-Beard-Sdk/jslt).

C'est le paquet cœur (moteur : parser, AST, interpréteur, JSONPath, fonctions intégrées, extensibilité). Les capacités d'E-S (CSV, XML, SQL, HTTP, Elasticsearch) sont des plugins séparés (urban-json-csv, urban-json-xml, urban-json-db, urban-json-http, urban-json-elastic) découverts automatiquement.

from urban_json import JsltTemplate

template = JsltTemplate.parse('{ "name": $.user.name, "year": $.user.age + 1 }')
template.transform({"user": {"name": "Alice", "age": 30}})
# -> {'name': 'Alice', 'year': 31}

Installation

pip install urban-json

Unique dépendance d'exécution : antlr4-python3-runtime. Le parser généré est embarqué (aucun outil ANTLR ni Java requis pour utiliser la librairie).

Documentation

API

from urban_json import JsltTemplate

tpl = JsltTemplate.parse(source_str)   # compile (JsltSyntaxError si invalide)
tpl.transform(document)                # applique le template à un document
tpl.debug(document)                     # trace pas-à-pas (débogage)
tpl.to_source()                        # re-sérialise l'AST (ToString)

Extensibilité (ajouter/isoler/découvrir des fonctions, plugins via entry points urban_json.functions) : voir le guide, section Extensibilité.

Licence

Apache-2.0 (comme le projet .NET d'origine).

Metadata

Release files for urban-json 0.2.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 urban-json 0.2.0
File Size Uploaded Provenance Actions
urban_json-0.2.0.tar.gz 114.5 kB With provenance Details for urban_json-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for urban-json 0.2.0
File Interpreter ABI Platform Actions
urban_json-0.2.0-py3-none-any.whl Python 3 none any Details for urban_json-0.2.0-py3-none-any.whl

Total release size: 221.0 kB

Release files / urban_json-0.2.0.tar.gz

Download URL urban_json-0.2.0.tar.gz
Size 114.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ace7f573dfcc8d20c29e49c4b05430757e6e7684651c8c06ff7bb0f914c14553
BLAKE2b-256 checksum
How to use checksums
d3785d10ed3c7628691a22bb1658e76a5590a9210b64efe3cd796d329615608f
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 Oct 22, 2026.

Transparency log

Release files / urban_json-0.2.0-py3-none-any.whl

Download URL urban_json-0.2.0-py3-none-any.whl
Size 106.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50293a5cc1ee559e87313aad007603e383fda6befda39d7073743be7647ebdaa
BLAKE2b-256 checksum
How to use checksums
72abd7b57ad1ebea8c1c12dd7dd967c34921a9ebb04fa9bbee38fbd740b66b88
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 Oct 22, 2026.

Transparency log

Security for urban-json 0.2.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for urban_json-0.2.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 Oct 22, 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