Generate script files from easy configs
Project description
Jinja Generator
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] [--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 Print values for debugging (default: False)
--no-dump Flag to disable a dump of deterministic version of the
configuration file (default: True)
Examples
See sample files in examples folder.
$ jinja-gen -f examples/sample.sh -c examples/sample.yaml
License
MIT
Project details
Release history Release notifications | RSS feed
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.3.0.tar.gz
(4.8 kB
view hashes)