reify

A standalone tool for rendering jinja templates


Keywords
python, template
License
GPL-3.0
Install
pip install reify==0.4

Documentation

usage: reify [-h] [--context CONTEXT] [--envfile ENVFILE] [--output OUTPUT]
             [--mode MODE] [--charm-config CHARM_CONFIG]
             template [extra [extra ...]]

render a jinja2 template

positional arguments:
  template              the template file
  extra                 extra key value pairs (foo=bar)

optional arguments:
  -h, --help            show this help message and exit
  --context CONTEXT, -c CONTEXT
                        file to load context data from. Can also be read from
                        stdin.
  --envfile ENVFILE, -e ENVFILE
                        file with environment varibles
  --output OUTPUT, -o OUTPUT
                        output file; defaults to stdout
  --mode MODE, -m MODE  mode of output file, if not stdout; defaults to 0666 -
                        umask
  --charm-config CHARM_CONFIG
                        charm config file, default values will be added to
                        template context