Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

YAML parser that environment variable is expanded

Project Description


$ 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 .

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.


- ${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.


- email: ${EMAIL}

If the environment variable EMAIL is set, the above file is equivalent to the following a file.

- email:

Well , you have the following YAML.


- here: ${here}
- name: ${name}
- path: ${path}
- test: OK

You can analyze the YAML with the following code .:

>>> import syaml.syaml
>>> data = syaml.syaml.load('src/syaml/tests/syaml_test.yaml')
>>> import pprint
>>> pprint.pprint(data)
[{'here': '/path/to/syaml/src/syaml/tests'},
 {'name': 'syaml_test.yaml'},
 {'path': '/path/to/syaml/src/syaml/tests/syaml_test.yaml'},
 {'test': 'OK'}]

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(7.7 kB) Copy SHA256 Hash SHA256
3.5 Wheel Jun 15, 2016
(5.3 kB) Copy SHA256 Hash SHA256
Source Jun 15, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting