Metadata-Version: 1.0
Name: yamlenv
Version: 0.3.2
Summary: Interpolate Yaml files with env vars
Home-page: https://github.com/lbolla/yamlenv
Author: Lorenzo Bolla
Author-email: lbolla@gmail.com
License: UNKNOWN
Description-Content-Type: UNKNOWN
Description: Yamlenv
        =======
        
        |Build Status|
        
        Interpolate YaML files with environmental variables and other YaML
        files.
        
        Given a YaML string like:
        
        .. code-block:: yaml
        
            a: ${A}
            b: 2
        
        and an environmental variable ``$A`` with value ``hello``,
        ``yamlenv.load`` would return:
        
        .. code-block:: python
        
            {
                a: 'hello',
                b: 2
            }
        
        Default values are supported:
        
        .. code-block:: python
        
            yamlenv.load('''
                a: ${A:-hello}
                b: 2
            ''') == {
                'a': 'hello',
                'b': 2
            }
        
        YaML files can include other YaML files, too. E.g. if ``b.yaml``
        contains "2", then:
        
        .. code-block:: python
        
            yamlenv.load('''
                a: 1
                b: !include b.yaml
            ''') == {
                'a': 1
                'b': 2
            }
        
        The included YaML file can be as complex as necessary.
        
        More examples are available in the tests.
        
        .. |Build Status| image:: https://travis-ci.org/lbolla/yamlenv.svg?branch=master
           :target: https://travis-ci.org/lbolla/yamlenv
        
Platform: UNKNOWN
