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
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
Built Distribution
File details
Details for the file sceptre_formatted_yaml_handler-1.0.0.tar.gz
.
File metadata
- Download URL: sceptre_formatted_yaml_handler-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4e11ec60b079c070d57d4638db6452b396d78b0f2705584f527af0c187b24ef |
|
MD5 | bada51fa4fa78fee5a7eae9380bd5707 |
|
BLAKE2b-256 | f606858a89b7ef55d99ac580c68ba71b3603da830cabb55d59c501f3128a773a |
File details
Details for the file sceptre_formatted_yaml_handler-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: sceptre_formatted_yaml_handler-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 609a315876d08830d8df1bae16245b92458e9c806c78a9ca8274f7658e76ecb0 |
|
MD5 | 76c8edea88cdae4eee7cb5b105d8384d |
|
BLAKE2b-256 | 8065318e5612b9709addc0aae541aaf473246e0eb8b37cfdbc53e25cb90f77fb |