python-configuration icon indicating copy to clipboard operation
python-configuration copied to clipboard

A Python library to load configuration parameters

Results 25 python-configuration issues
Sort by recently updated
recently updated
newest added

Hello everyone! I've found an interesting behaviour. Let's say you have the following config file: ```ini [APP_NAME] foo = bar [ANOTHER_APP] spam = egg ``` and also env var: `APP_NAME_EASTER=egg`...

Hello, I am using this library inside an Azure Function. Therefore it would be helpful to be able to use Managed Identity authentication for accessing Key Vaults. With the current...

I've recently been writing a configuration-loading system for a new library. I was copying the system used by [coverage-py](https://coverage.readthedocs.io/en/coverage-5.4/config.html). Now that I've stumbled upon `python-configuration` and I wonder if it...

conf.py ``` var1 = "2020" var2 = "{var1}" var3 = "{var1}/{var2}" ``` mytest.py ``` module_list = ["conf.py"] cfg = config(*module_list, separator="__", interpolate=True, interpolate_type=InterpolateEnumType.DEEP_NO_BACKTRACK) print(cfg["var3"]) ``` Sometimes it will work and...

conf.py ``` var = {"a": "{var1}"} ``` dir/conf.py ``` var1 = "test" ``` code: ``` module_list = ["dir/conf.py", "conf.py"] cfg = config(*module_list, interpolate=True) print(cfg.var) ``` Result is: `{'a': '{var1}'}`

``` values_1 = {"a.b": "value"} values_2 = {"var": "{a.b}"} cfg = config( values_2, values_1, lowercase_keys=True, interpolate=True, ) print(cfg.var) ``` Results in: ``` File "/group/siv_roast_bkup/staff/chinghwa/python-configuration/config/configuration_set.py", line 113, in __getattr__ return self._from_configs("__getattr__",...

``` from config import config DICT = {"var": "1", "var1": "{var}"} cfg = config(DICT, interpolate=True) print(cfg.as_dict()) print(cfg.as_attrdict()) ``` Results is: ``` {'var': '1', 'var1': '{var}'} {'var': '1', 'var1': '{var}'} ```