Metadata-Version: 2.1
Name: piera
Version: 1.2.0
Summary: a python hiera parser
Home-page: http://github.com/b1naryth1ef/piera
Author: Andrei Zbikowski
Author-email: andrei.zbikowski@gmail.com
License: Apache 2.0
Description: # Piera
        Piera is a lightweight, pure-Python [Hiera](http://docs.puppetlabs.com/hiera/) parser. It was built to help bridge the gap between Puppet/Hiera and Python system scripts. Piera is currently not feature complete, lacking some less-used interoplation and loading features (feel free to contribute!)
        
        ## Why?
        Piera was built at [Braintree](http://github.com/braintree) to help us bridge a gap of emerging Python system scripts, and a historical storage of Puppet/Hiera data.
        
        ## Install It
        
        ### PyPi
        `pip install piera`
        
        ### Manual
        ```bash
        git clone git@github.com:b1naryth1ef/piera.git
        cd piera
        python setup.py install
        ```
        
        ## Usage
        ```python
        import piera
        
        h = piera.Hiera("my_hiera.yaml")
        
        # You can use piera to simply interact with your structured Hiera data
        
        # key: 'value'
        assert h.get("key") == "value"
        
        # key_alias: '%{alias('key')}'
        assert h.get("key_alias") == "value"
        
        # key_hiera: 'OHAI %{hiera('key_alias')}'
        assert h.get("key_hiera") == "OHAI value"
        
        # Give piera context
        assert h.get("my_context_based_key", name='test01', environment='qa') == "context is great!"
        ```
        
        ### Requirements
        
        * Python 2.7+
        
        
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Description-Content-Type: text/markdown
