YAML macro processor
Project description
iYAML
iYAML is a YAML macro processor.
iYAML provides the following YAML tags:
!include- to include the content of the specified file, or files matching the given wildcard!env- to include the value of the specified environment variable
Installation
Install default version from the Python Package Index:
pip install iyaml
Examples
Here is an example of including files and environment variables:
foo:
greeting: !include greeting.txt
secret_token: !env TOKEN
bar: !include temlates/*.sql
To load the YAML file use the following code:
import iyaml
data = iyaml.load("file.yaml")
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
iyaml-0.1.2.tar.gz
(7.1 kB
view details)
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
iyaml-0.1.2-py3-none-any.whl
(7.6 kB
view details)
File details
Details for the file iyaml-0.1.2.tar.gz.
File metadata
- Download URL: iyaml-0.1.2.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53cfd9d4bbde48a26e269e9cced5870786c8fc6ada461e306629b3ceb8276ddc
|
|
| MD5 |
52254cb71c0be0834c0662a3b883fb80
|
|
| BLAKE2b-256 |
556487ef5999b71ecc289c5ac9fd38b6860e3e4395e5f3d22ca87baa0b7c6ac5
|
File details
Details for the file iyaml-0.1.2-py3-none-any.whl.
File metadata
- Download URL: iyaml-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed42e38b17b7ee2f5dc7237fedac9470494fa558fba6525d95e79b63e915838b
|
|
| MD5 |
83ed432ed1c8192d335e5e4ef47af806
|
|
| BLAKE2b-256 |
781a24d16af8cd075854ea92473cd54bddefb05bdfacb712c35f40af594f2393
|