Skip to main content

urban-json

Français · English

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, 75 fonctions intégrées, extensibilité). Les entrées-sorties et la génération aléatoire sont des plugins séparés, découverts automatiquement une fois installés : urban-json-csv, urban-json-xml, urban-json-db, urban-json-http, urban-json-elastic, urban-json-files, urban-json-html, urban-json-excel, urban-json-phone, urban-json-random. Le composant d'édition urban-json-editor (Web Component <jslt-editor>) est également distribué à part.

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.3.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.3.0
File Size Uploaded Provenance Actions
urban_json-0.3.0.tar.gz 125.9 kB With provenance Details for urban_json-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 240.4 kB

Release files / urban_json-0.3.0.tar.gz

Download URL urban_json-0.3.0.tar.gz
Size 125.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cabb78670ece81f6391f481a5867f8ce275cdc91fdcb15e9f25ab2e2acad14ad
BLAKE2b-256 checksum
How to use checksums
c95df4ca1a201f63c5b5b94e363214e6094fed56991f17511ed424d660caad15
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 10, 2026.

Transparency log

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

Download URL urban_json-0.3.0-py3-none-any.whl
Size 114.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ba76d7d78c9943df3915144fcc0a565d77805dd488e0baf6752c4564a272c11
BLAKE2b-256 checksum
How to use checksums
a4782984bb639776fcfd11c3948a94956968c4b5d9fcd7a97da695a93a9b25ce
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 10, 2026.

Transparency log

Security for urban-json 0.3.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.3.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 10, 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