yaml-extras
Some extra scripting utilities written on top of PyYAML. Written by David Sillman.
Installation
Usage
from yaml_extras import ExtrasLoader
import json
with open('example.yml') as f:
data_dict = yaml.load(f, ExtrasLoader)
print(f"data = {json.dumps(data_dict, indent=2)}")
Features
Feature | Description |
---|---|
import | Import other YAML files, or parts of them. |
Utility interfaces
Utility interface | Description |
---|---|
Path patterns | Utilities for working with paths and path patterns, i.e. for glob-based imports |