Skip to main content

hiera-py

Python interface for the hiera hierarchical database.

https://travis-ci.org/thomasvandoren/hiera-py.png?branch=master

See the documentation on puppetlabs.com for more detail.

Installation

pip install hiera-py

# Or, if you prefer easy_install:
easy_install hiera-py

# Or, if you prefer to install from source:
python setup.py install

Supported python versions

  • 2.7

  • PyPy

Eventually, I would like to support 3.x and 2.6+.

Getting Started

>>> import hiera
>>> hiera_client = hiera.HieraClient('/etc/hiera.yml', environment='dev')
>>> hiera_client.get('my_key')
'my_value'
>>> hiera_client.get('nonexistent_key')
Traceback (most recent call last):
...
hiera.exc.HieraError: Failed to retrieve key nonexistent_key. ...

License

BSD

Authors

Thomas Van Doren

Testing

# Run the tests against python 2.7.
tox

# Run the tests against python 2.7 with code coverage.
tox -e cover

# Run the tests against a bunch of python versions.
tox -e py25,py26,py27,py31,py32,py33,pypy

Metadata

Release files for hiera-py 0.0.1

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

Source distribution (sdist)

Source distribution for hiera-py 0.0.1
File Size Uploaded Provenance Actions
hiera-py-0.0.1.tar.gz 3.5 kB Without provenance Details for hiera-py-0.0.1.tar.gz

Release files / hiera-py-0.0.1.tar.gz

Download URL hiera-py-0.0.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a0bc71c6fad912ae13e49405896fab2b5708d55ec3516348c557553343b8cda3
BLAKE2b-256 checksum
How to use checksums
10a438e41f24442ac96c2334c59e4850e168a7ff8bbc2e36810a7d1b8d58f518
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for hiera-py 0.0.1

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

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