Tool to generate yaml file with include
Project description
yaml-include
Install
Simply install this tool using pip :
pip install yaml-include
Features :
- Include document using
!include <PATH> - Recursive inclusion
- Relative & absolute path
Usage
Given those three files :
root.yaml
- Document :
!include version.yaml
- Job :
!include jobs/job1.yaml
version.yaml
- name : "4.19.35"
- sha1 : "37dadf3"
jobs/job1.yaml
- name: "Test"
- target: "imx8mq"
You can generate your file with included documents using :
yaml-include root.yaml --output-file generated.yaml
or simply print the result :
yaml-include root.yaml
Resulting this output :
- Document:
- name: 4.19.35
- sha1: 37dadf3
- Job:
- name: Test
- target: imx8mq
Help
usage: yaml-include [-h] [-o OUTPUT_FILE] root_document
positional arguments:
root_document Root document
optional arguments:
-h, --help show this help message and exit
-o OUTPUT_FILE, --output-file OUTPUT_FILE
Path for your generated file.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yaml-include-1.0.0.tar.gz.
File metadata
- Download URL: yaml-include-1.0.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c7f022a7494169307acbe3580a8164bd1b6404cf50bd5ff6afee205deff5cac
|
|
| MD5 |
000d65d0b40d0ae64b9912dff2eb4f33
|
|
| BLAKE2b-256 |
d1c18a378c309112ef6b36005480f870432b967b854b4c287616025d8481da2e
|
File details
Details for the file yaml_include-1.0.0-py3-none-any.whl.
File metadata
- Download URL: yaml_include-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bacc9ff25d38b531a7cfb39d6c32dbead1506af65fb9ba36e133290c6bbe1f2a
|
|
| MD5 |
032c802e85930e5ead64bd0d9ff89862
|
|
| BLAKE2b-256 |
44a08d13f9b068685beda7d9189246fc475b4ccb15f3c9f34bd597ec0d2f20b8
|