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.

Filename, size & hash SHA256 hash help File type Python version Upload date
jinja-gen-1.4.0.tar.gz (5.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page