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

To reproduce: ```py import collections conf = Configuration({}) data = collections.ChainMap({"abc": {"def": "ghi"}}) conf.update(data) print(conf["abc.def"]) ``` If `data` is a plain dict or a Configuration object, `conf["abc.def"]` will give "ghi"....

Attempting to compare a `Configuration` to anything that's not mapping-like crashes. This is a particularly nasty surprise when you have a function that returns either a `Configuration` or `None` and...

To reproduce: ```py env = config.EnvConfiguration(prefix="whatever") print(repr(env)) ``` The expected output would be something like ``, but instead it's always `` The fix for this is simple; change `Configuration`'s implementation...

This is a great library and I am using it in my project. I am using this to read 3 configs, a yml, an internal dict and an optional json....

What is the proper way to patch a config using something like `@patch.dict`? In the example below, I would like to insert a custom `url` value in the test. Sample...

.env files are supposed to be a way of defining enviroment variables in a file, to avoid having to set those manually / via script when launching an application. In...

I need to create a user configuration file that if present would override the basic config. ``` base.config.json - checked in config.json - gitignore ``` But the following code does...