Skip to main content

Piera

Piera is a lightweight, pure-Python 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 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

git clone git@github.com:b1naryth1ef/piera.git
cd piera
python setup.py 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!"

Requirements

  • Python 2.7+

Metadata

Release files for piera 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for piera 1.2.0
File Size Uploaded Provenance Actions
piera-1.2.0.tar.gz 6.2 kB Without provenance Details for piera-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for piera 1.2.0
File Interpreter ABI Platform Actions
piera-1.2.0-py3-none-any.whl Python 3 none any Details for piera-1.2.0-py3-none-any.whl

Total release size: 12.5 kB

Release files / piera-1.2.0.tar.gz

Download URL piera-1.2.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
93d64100dc0a239651bdb77b785a4e3b324869151e91ef28714f986a17e2d5ae
BLAKE2b-256 checksum
How to use checksums
8a9e9c94638021638135741f02f2b2145eac2b8a6d45482d9e551f475222d974
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.0

Release files / piera-1.2.0-py3-none-any.whl

Download URL piera-1.2.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b53e7a0763eefaeb62250213ef43c38194f9c350748acb32579e04aac6128312
BLAKE2b-256 checksum
How to use checksums
2c29bb05dea3120f5823d24f48bc3428405b169c2d9c72ae575a54409b9d5e70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.0

Security for piera 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page