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] [--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)
  --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

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.

Files for jinja-gen, version 1.3.2
Filename, size File type Python version Upload date Hashes
Filename, size jinja-gen-1.3.2.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page