Configlib
An easy python config library. Manage multiple configuration environments and complex nested configurations with ease.
Examples
{
"config_var": "jo",
"other_var": 3,
"subConfig": {
"subconfigvar": 10
}
}
from configlib import BaseConfig
class SubConfig(object):
subconfigvar: int
class Config(BaseConfig):
config_var: str
other_var: int
subConfig: SubConfig
# Usage
config = Config.get_instance()
config.config_var # "jo"
config.SubConfig.subconfigvar # 10
Other Features
Having multiple config environments inheriting properties from each other, loading data from environment variables, etc.