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.

Source Distribution

ccorp-yaml-include-0.0.2.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

ccorp_yaml_include-0.0.2-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

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