[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#930973: ITP: hiera-py -- Python language bindings for the hiera hierarchical database



Package: wnpp
Severity: wishlist
Owner: Carsten Schoenert <c.schoenert@t-online.de>

* Package name    : hiera-py
  Version         : 0.0.1
  Upstream Author : Thomas Van Doren <thomas@thomasvandoren.com>
* URL             : https://github.com/agx/hiera-py
* License         : BSD
  Programming Lang: Python
  Description     : Python language bindings for the hiera hierarchical database

 Hiera is a key/value lookup tool for configuration data, often used in Puppet
 and created and built to make Puppet better and let you set node-specific data
 without repeating yourself.
 .
 Hiera’s hierarchical lookups follow a “defaults, with overrides” pattern,
 meaning you specify common data once, and override it in situations where the
 default won’t work.
 .
 The hierarchical data can be organised as JSON, YAML, and EYAML files.

Thomas Van Doren has created this Python library mainly in 2013 but has
the further development stopped some time ago and archived his tree on
GitHub.
The original GitHub tree is forked since than several times and on some
of these forks people have added some own needed features and partially
added also Python3 compatibility. By the help of Guido Guenther the
current packaging is already completely Python3 compatible.

We use this Python library on my day job because we can structure
configuration item for a lot of measurement devices really nicely.
Getting config items is really easy by this library.

 >>> import hiera
 >>> hiera_client = hiera.HieraClient('/etc/hiera.yml', environment='dev')
 >>> hiera_client.get('my_key')
 'my_value'

I will maintain this package on Salsa on
https://salsa.debian.org/tijuca/hiera-py (to be created).

Reply to: