Skip to main content

Jinja2 templates for yaml. Make dynamic rules and configs.

Project description

YAML Jinja2 expressions

Renders Jinja2 expressions inside YAML file.

Examples:

Load template from file

cfg/cfg.yml:

cfg:
  test: "{{test}}"
from yex import Yex

yex = Yex('./cfg/')

print(yex.render_file('cfg.yml', test='passed'))

Output: {'cfg': {'test': 'passed'}}

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

yaml-expressions-0.0.1.tar.gz (1.9 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