Skip to content

andmeln/iyaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

YAML macro processor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages