Skip to main content

Generate script files from easy configs

Project description

Jinja Generator

Build Status PyPI version Project Status

Installation

From PyPI Repository

$ pip install jinja-gen

From Source

$ pip install -U .

Usage

usage: jinja-gen [-h] [-f] [-c] [-o] [--dry] [-k] [-d] [--debug] [--exec]
                 [--no-dump]

Jinja Generator

optional arguments:
  -h, --help            show this help message and exit
  -f , --file           Path to the Jinja2 template file (default: None)
  -c , --config         Path to the YAML configuration file (default: None)
  -o , --output-dir     Output directory for generated files, defaults to
                        configuration file name (default: None)
  --dry                 A dry run showing files to be generated (default:
                        False)
  -k , --output-name-key 
                        An extra key identifier populated for template with
                        name (default: name)
  -d , --output-dir-key 
                        An extra key identifier populated for template with
                        output directory (default: dir)
  --debug               Enable debugging (default: False)
  --exec                Enable executable file outputs (default: False)
  --no-dump             Flag to disable a deterministic dump of the
                        configuration file (default: True)

Examples

See sample files in examples folder.

$ jinja-gen -f examples/sample.sh -c examples/sample.yaml

To enable executable file outputs,

$ jinja-gen -f examples/sample.sh -c examples/sample.yaml --exec

License

MIT

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

jinja-gen-1.4.0.tar.gz (5.0 kB view hashes)

Uploaded Source

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