pkglts.config_management module
Main config object and functions to manipulate it.
- class pkglts.config_management.Config(*args, **kwds)[source]
Bases:
dict
Object used to store both a templated version of the config as a dict interface its resolution and a jinja2 environment that reflect the config.
- add_test(name, func)[source]
Add a new test in jinja2 environment.
- Parameters:
name (str) – name of test (must be unique)
func (callable) – function use for test
- Returns:
None
- class pkglts.config_management.ConfigSection[source]
Bases:
object
Small class to allow accessing parameters using the dot method instead of [‘param_name’] method
- pkglts.config_management.get_pkg_config(rep='.')[source]
Read pkg_cfg file associated to this package.
- Parameters:
rep (Path) – directory to search for info
- Returns:
Config initialized with pkg_config
- Return type:
(Config)