Skip to main content

a python hiera parser

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

## Usage
```python
import piera

h = piera.Hiera("my_hiera.yaml")

# 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"
```

Project details


Download files

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

Source Distribution

piera-1.0.0rc1.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file piera-1.0.0rc1.tar.gz.

File metadata

  • Download URL: piera-1.0.0rc1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for piera-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 c1e82529e92e292fa2de68e1a75bdffd93d4a4883da537d3e980f0a57892bf83
MD5 168b677d04700f9291401d5c69b56b97
BLAKE2b-256 7910e3cb161b016b875bcfd3c387dc703d96e51b7c388a052b0423025cfbe041

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page