Skip to main content

A Sceptre template handler for opinionated formatted YAML

Project description

README

Overview

The formatted_yaml template handler enhances Sceptre's built-in File handler by delivering YAML output that is not only rendered but also reformatted according to an opinionated style aimed at improving readability. This feature is particularly useful for templates that utilize Jinja interpolation, which often introduces unwanted whitespace into the rendered output. By employing the formatted_yaml handler, Sceptre users can ensure that their YAML configurations are visually appealing both in the Jinja source code and in the generated output and without spending time navigating Jinja's whitespace management features.

Installation

Installation instructions

To install directly from PyPI

pip install sceptre-formatted-yaml-handler

To install from the git repo

pip install git+https://github.com/Sceptre/sceptre-formatted-yaml-handler.git

Usage/Examples

Refer to the Sceptre template handler docs for more information.

template:
  type: formatted_yaml

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

sceptre_formatted_yaml_handler-1.0.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

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