JFTL — JSONFold Template Language
JFTL is a JSON-based language for transforming and generating JSON.
JFTL templates are themselves valid JSON. They combine JSON navigation, iteration, conditional logic, variables, transformations, and expression evaluation while keeping the template structure close to the JSON being produced.
Installation
Install the Python implementation from PyPI:
pip install jsonfold-template
Command Line
The Python implementation installs the jftl-pyrun command:
jftl-pyrun template.json
Use:
jftl-pyrun --help
for the complete set of command-line options.
Python API
The public Python API is available through jsonfold.template:
from jsonfold.template import create_engine
engine = create_engine()
Example
A simple JFTL transformation:
{
"$": true,
"data": "$_datasets.input",
"out": {
"name": "$.name",
"price": "$py=_['price'] * 2"
}
}
JFTL supports navigation, iteration, filtering, conditional output, datasets, variables, transformations, multiple expression engines, and other JSON transformation operations.
Documentation
Full language documentation, reference material, and cookbook examples are available on the JFTL documentation site.
Implementations
JFTL is a language rather than a single implementation.
This package contains the Python implementation. Other implementations may provide different execution engines, integrations, performance characteristics, or additional capabilities while implementing the JFTL language.
License
The Python implementation of JFTL is released under the MIT License.
See LICENSE for details.
Metadata
Release files for jsonfold-template 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| jsonfold_template-0.4.2.tar.gz | 42.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jsonfold_template-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 90.2 kB
Release files / jsonfold_template-0.4.2.tar.gz
| Download URL | jsonfold_template-0.4.2.tar.gz |
|---|---|
| Size | 42.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13c0b80b014a91a2c6cb3d973b3107cf25089ea742858edb6436ebe2423638bb
|
|
BLAKE2b-256 checksum How to use checksums |
0577e3f7f0627c4372e9957bcb2440898c253328130866d50e01d8ee8920dded
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / jsonfold_template-0.4.2-py3-none-any.whl
| Download URL | jsonfold_template-0.4.2-py3-none-any.whl |
|---|---|
| Size | 48.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e533bacde32a31bb8692c6a642c4f0780bcc9e526c6d9b8eafa889216328ef5
|
|
BLAKE2b-256 checksum How to use checksums |
abdb2ad3c4394031e2937d7fe06db2496194ecb329b52a01f23c2dd2589d0e98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for jsonfold-template 0.4.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.