YAML parser that environment variable is expanded
Project description
Install
$ pip install syaml
How to use it
A syaml is YAML parser that environment variable is expanded. It can use the path, name, here and environment variable in YAML file. It described in syntax of mako template. See http://www.makotemplates.org/ .
A path is absolute path to YAML file, and name is file name of YAML file, and here is absolute directory path the YAML file stored.
For example.
/path/to/test.yaml:
- ${here} - ${name} - ${path}
The above file is equivalent to the following a file.
- /path/to/ - test.yaml - /path/to/test.yaml
And, it can use environment variable in YAML file too.
/path/to/test.yaml:
- email: ${EMAIL}
If test@example.com the environment variable EMAIL is set, the above file is equivalent to the following a file.
- email: test@example.com
Other
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
Hashes for syaml-1.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd282e587025ff4e2d6e8aa0f05b9e878a260a9c41b6a456039ff83e38294b90 |
|
MD5 | 3adb08e9013b175a53e72cdbdc382b38 |
|
BLAKE2b-256 | 003dc1bb2780ef9fcfbd301f8e4d7cd609034aa399d95fb0da2a8b9cedabea23 |