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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file ccorp-yaml-include-0.0.2.tar.gz.

File metadata

  • Download URL: ccorp-yaml-include-0.0.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

File hashes

Hashes for ccorp-yaml-include-0.0.2.tar.gz
Algorithm Hash digest
SHA256 84f4db1980700ba5c3d7cf4238549f78901415af1ff9086932874b8b8158f724
MD5 9318b5c59d0db88ccb2afda3ed8d2acd
BLAKE2b-256 33acd9b5626d09d1c69c3491e876375e0ffe29deebf4aa9431e04467d9980370

See more details on using hashes here.

File details

Details for the file ccorp_yaml_include-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: ccorp_yaml_include-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

File hashes

Hashes for ccorp_yaml_include-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 533529bd550d67e9af43215cd6db6a839191a4ac5fd77b9874f5ae5f40adb894
MD5 6ecee3b0e607f51550fa645ddf7fe1f5
BLAKE2b-256 37594c11261bd3fe61fa392c04ecffbd01ea45346cc837fec757fc158090e93d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page