Skip to main content

CLI for Jinja2 written from the ground up

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

j2express-0.5.0.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

j2express-0.5.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file j2express-0.5.0.tar.gz.

File metadata

  • Download URL: j2express-0.5.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for j2express-0.5.0.tar.gz
Algorithm Hash digest
SHA256 bd8689824ee184033085412daadf862a55b97d93039e4c985ebd3e9e2e4ff8e1
MD5 db46521ac50fac677263092ab8203544
BLAKE2b-256 bd1f50f423504dade1ecb67a2890a8731e2f3fb7b0f2dcc6170099bc0880ddbb

See more details on using hashes here.

File details

Details for the file j2express-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: j2express-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for j2express-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa5d7bbe674d1448f66794ee8a0a0e224d8dcc5c1a18f23635205f8674228255
MD5 97ae5c772a1ada7ef5c0a8b01a09a1ed
BLAKE2b-256 a03fc7ee911f0197f914055701fb865de0495ab2bb6f2ac649aaf5eb9717efc4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page