/rh_config

Centralized, simple parameter config

Primary LanguagePythonMIT LicenseMIT

#rh_config

A simple configuration system for the Rhoana pipeline.

Basic usage, either maintain a single config file at ~/.rh-config.yaml or define the location of the config file in the RH_CONFIG_FILENAME.yaml environment variable. Put configuration for all of your packages and applications in this file. Access the loaded configuration like this:

import rh_config    
my_default_config = dict(foo="bar")
...
foo = rh_config.config.get("foo", my_default_config.get("foo"))