Skip to main content

j2express

CLI for Jinja written from the ground up

Motivation

This will provide more feedback than other implementations of j2 templating on the command line.

Installation

After cloning the repo, activate a virtual environment and run

pip install .

Running

Process template:

j2x -f template.j2

Show help and options:

j2x --help

Flags

  • --trim-blocks / --no-trim-blocks: Set Jinja's environment to trim whitespace. (default: --no-trim-blocks)
  • --lstrip-blocks / --no-lstrip-blocks: Set Jinja's environment to remove whitespace from the left. (default: --lstrip-blocks)
  • --strict / --no-strict: Set to fail the render process if an environmental variable is referenced that is not set (default: --no-strict)

Goals

  • process templates with exported env variables being represented as: {{ VARIABLE_NAME }}
  • install and make available on the command line
  • make available on PyPI
  • colorized output for troubleshooting variables
  • support for arrays from command line

Metadata

Release files for j2express 0.5.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 j2express 0.5.0
File Size Uploaded
j2express-0.5.0.tar.gz 2.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for j2express 0.5.0
File Interpreter ABI Platform
j2express-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 kB

Release files / j2express-0.5.0.tar.gz

Download URL j2express-0.5.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bd8689824ee184033085412daadf862a55b97d93039e4c985ebd3e9e2e4ff8e1
BLAKE2b-256 checksum
How to use checksums
bd1f50f423504dade1ecb67a2890a8731e2f3fb7b0f2dcc6170099bc0880ddbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / j2express-0.5.0-py3-none-any.whl

Download URL j2express-0.5.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa5d7bbe674d1448f66794ee8a0a0e224d8dcc5c1a18f23635205f8674228255
BLAKE2b-256 checksum
How to use checksums
a03fc7ee911f0197f914055701fb865de0495ab2bb6f2ac649aaf5eb9717efc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.7

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