Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ccorp-yaml-include, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size ccorp_yaml_include-0.0.2-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ccorp-yaml-include-0.0.2.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page