Simple YAML preprocessor, resolves anchors.
Project description
yamlpp
Simple YAML preprocessor, resolves anchors. This is meant for preprocessing .gitlab-ci.yml
files. The anchors will be preprocessed, so you can see what the file looks like if you wrote out everything by hand.
Example
Here is example.yml
(taken from https://docs.gitlab.com/ee/ci/yaml/#anchors):
.job_template: &job_definition
script:
- test project
.postgres_services:
services: &postgres_definition
- postgres # urmom
- ruby
.mysql_services:
services: &mysql_definition
- mysql
- ruby
test:postgres:
<<: *job_definition
services: *postgres_definition
test:mysql:
<<: *job_definition
services: *mysql_definition
If you run yamlpp example.yml
the output will be:
.job_template:
script:
- test project
.postgres_services:
services:
- postgres
- ruby
.mysql_services:
services:
- mysql
- ruby
test:postgres:
script:
- test project
services:
- postgres
- ruby
test:mysql:
script:
- test project
services:
- mysql
- ruby
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
yamlpp-1.0.1.tar.gz
(2.2 kB
view details)
Built Distribution
File details
Details for the file yamlpp-1.0.1.tar.gz
.
File metadata
- Download URL: yamlpp-1.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a09799a142c2ab488ac1e78c93f95da26062784102d24adf5af7b6103c275770 |
|
MD5 | 777caa3ab712e40a26c13ed5efa189b2 |
|
BLAKE2b-256 | 14c7a2d04e2f8fc3f3d027a6b5dcf7f1af5805a26dd5df37d746582a8e0f7e77 |
File details
Details for the file yamlpp-1.0.1-py2-none-any.whl
.
File metadata
- Download URL: yamlpp-1.0.1-py2-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8ee242d731f8a0b27cef2707244c10c25f67558fc7cf5431649c2b8a5d0793b |
|
MD5 | 5e3c7458a69e07ef5e01c4fe85f9ebeb |
|
BLAKE2b-256 | fc4c577b136e42e5556bc29add64d6793af60da91a08e14f44c0c5053ea788e3 |