Skip to main content

$ jinja2

A CLI interface to Jinja2

Fork of jinja2-cli

Changelog

  • Add -F to read value from files

Installation

pipx

This is the recommended installation method.

$ pipx install jinja2-cli-tddschn

pip

$ pip install jinja2-cli-tddschn

Usage

Usage: jinja2 [options] <input template> <input data>

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  --format=FORMAT       format of input variables: auto, ini, json,
                        querystring, yaml, yml
  -e EXTENSIONS, --extension=EXTENSIONS
                        extra jinja2 extensions to load
  -D key=value          Define template variable in the form of key=value
  -F key=<path-to-file>, --file=key=<path-to-file>
                        Define template variable with a file content in the
                        form of key=<path-to-file>
  -s SECTION, --section=SECTION
                        Use only this section from the configuration
  --strict              Disallow undefined variables to be used within the
                        template

Optional YAML support

If PyYAML is present, you can use YAML as an input data source.

$ pip install jinja2-cli-tddschn[yaml]

Optional TOML support

If toml is present, you can use TOML as an input data source.

$ pip install jinja2-cli-tddschn[toml]

Optional XML support

If xmltodict is present, you can use XML as an input data source.

$ pip install jinja2-cli-tddschn[xml]

Optional HJSON support

If hjson is present, you can use HJSON as an input data source.

$ pip install jinja2-cli-tddschn[hjson]

Optional JSON5 support

If json5 is present, you can use JSON5 as an input data source.

$ pip install jinja2-cli-tddschn[json5]

Develop

$ git clone https://github.com/tddschn/jinja2-cli-tddschn.git
$ cd jinja2-cli-tddschn
$ poetry install

Metadata

Release files for jinja2-cli-tddschn 0.9.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jinja2-cli-tddschn 0.9.2
File Size Uploaded
jinja2_cli_tddschn-0.9.2.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jinja2-cli-tddschn 0.9.2
File Interpreter ABI Platform
jinja2_cli_tddschn-0.9.2-py3-none-any.whl Python 3 none any Details

Total release size: 14.0 kB

Release files / jinja2_cli_tddschn-0.9.2.tar.gz

Download URL jinja2_cli_tddschn-0.9.2.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5e7f4d86446c1ac197b440aed81994b80dc1726a2ebf66c8a26a58dee1956b9e
BLAKE2b-256 checksum
How to use checksums
04d9735d876f205054d98f6ecd929d07b4dba56a5d08c53c9fe999a7c7c0e0e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.0 Darwin/23.1.0

Release files / jinja2_cli_tddschn-0.9.2-py3-none-any.whl

Download URL jinja2_cli_tddschn-0.9.2-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4c570fc205a1d6b44866597c106dc4281be5bc5aa16386a7fe0b043777376bc
BLAKE2b-256 checksum
How to use checksums
70e4751a9d36d44ac6f6e7dbe2231135379be02e62293a4c8939b6a127279cc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.0 Darwin/23.1.0

Release history Release notifications | RSS feed

This release

0.9.2 This release

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.3

2 release files

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