Python interface for the hiera hierachical database.
Project description
Python interface for the hiera hierarchical database.
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
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hiera-py-0.0.1.tar.gz
(3.5 kB
view details)
File details
Details for the file hiera-py-0.0.1.tar.gz.
File metadata
- Download URL: hiera-py-0.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0bc71c6fad912ae13e49405896fab2b5708d55ec3516348c557553343b8cda3
|
|
| MD5 |
31cbb5416f627dc6c88740034cc59e51
|
|
| BLAKE2b-256 |
10a438e41f24442ac96c2334c59e4850e168a7ff8bbc2e36810a7d1b8d58f518
|