Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

a python hiera parser

Project Description

# Piera
Piera is a pure-Python [Hiera]( parser and toolkit. It's a nearly feature complete implementation that allows you to use your favorite systems data store, in your favorite systems language.

Piera was originally built at [Braintree]( to help bridge a gap of emerging Python system scripts, and a historical storage of Puppet/Hiera data.

## Shortcomings
Right now Piera does not have a fully-complete deep-merge implementation, although it is planned.

## Install It

### PyPi
`pip install piera`

### Manual
git clone
cd piera
python install

## Usage
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!"

# Pass a fully compliant hiera object with enforced scope, useful for contextual templates/etc
newiera = h.scoped(name='test02', environment='staging')
assert newaiera.get("my_staging_overriden_key") == "ohai staging"

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


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.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(6.0 kB) Copy SHA256 Hash SHA256
Source None Jan 9, 2018

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate