Tools for managing yaml configurations.
Project description
thirdparty.yaml
YAML Processing Extensions (e.g. Overlays, Recursive Merging, Includes)
Usage Synopsis
from thirdparty.yaml.overlay import YamlOverlay
yaml_overlay = YamlOverlay()
obj = yaml_overlay.load(yaml_string)
print(yaml_overlay.dump(obj))
Overview
thirdparty.yaml
enables yaml content creators to add include and recursive merge directives within the yaml itself.
Example YAML with recursive_merge and include:
---
thing:
value: 4
<<<:
thing:
additional: 6
!recursive_merge :
thing:
yet_another_recursive_merge: true
<<<: !include test_simple_mapping.yaml
The result of the above is:
---
thing:
value: 4
additional: 6
yet_another_recursive_merge: true
otherthings:
myval: 45
Install
python3 -m pip install --upgrade thirdparty-yaml
Contributing
Any contributions and feature requests are welcome! Please submit all contributions for thirdparty.yaml
as an issue or pull-request (PR) on thirdparty.yaml's Github Page.
Authors
- Paul Kohout
- Vincent Agriesti
License
MIT License
Copyright (c) 2020 third-party-dev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
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
thirdparty-yaml-0.1.0.tar.gz
(13.2 kB
view details)
Built Distribution
File details
Details for the file thirdparty-yaml-0.1.0.tar.gz
.
File metadata
- Download URL: thirdparty-yaml-0.1.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8f444135f6db70d88020da337a391c614b8b55722ddb36b5bfe48b1934b4fac |
|
MD5 | 8d47dae7961133512b1c29282841286f |
|
BLAKE2b-256 | 7240bb4f42d6fdf119395d28babe9441bc77afa81662279b8a8dab9f723b47e1 |
File details
Details for the file thirdparty_yaml-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: thirdparty_yaml-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c3883969f22d7e6af42418271bdf6179a4106ff1994752724615144de57c897 |
|
MD5 | 7a2f24f18499fb7c63e7f413e2477986 |
|
BLAKE2b-256 | 61b7ae51e71477c79aa9f45479b539b50a85fa0212e91db5969d083094a0f45c |