An extension of ruamel.yaml to support including aliases
Project description
CCorp Ruamel.YAML Include Extension
This package extends Ruamel.YAML (a fork of PyYaml) to implement the !include
tag in the composer, which allows the use of YAML anchors across included files. The prior way of achiving this required modifying the structure of files to invert the inclusion of files, and modifying the loading of the included file to patch in the anchors parsed thusfar. Unfortunately, this isn't possible on an existing collection of YAML files without a lot of pushback from other developers, and therefore this package was developed. It processes !include
tags as they are encountered by the composer rather than generating a tagged scalar to be processed by the constructor, allowing the processing to happen as a C/C++ programmer would expect, rather than defering until after composition.
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
Hashes for ccorp_yaml_include-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 533529bd550d67e9af43215cd6db6a839191a4ac5fd77b9874f5ae5f40adb894 |
|
MD5 | 6ecee3b0e607f51550fa645ddf7fe1f5 |
|
BLAKE2b-256 | 37594c11261bd3fe61fa392c04ecffbd01ea45346cc837fec757fc158090e93d |