Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5054

Looking for a module to manage python configurations [closed]

$
0
0

I am looking for a way to manage project configurations. The requirements are:

  • config files should be human readable (.ini, .json, etc.)
  • a file should be able to hold multiple configurations. I.e. different configs for development, production, testing, etc.
  • Support for inheritance. It should be possible that different configs are derived from a single base config.
  • override via CLI. When launching the program it should be possible to override any option using CLI arguments. For example. pytohn myprogram.py --config="Production" --debug=True. In that case the config for Production is disabled by default but the CLI-Argument forces debug==True

Additionally support for other languages (mainly C++ and JS) would be nice to have.Furthermore the possibility to define rules such as min/max values would also be great.

In the past we have used python files and classes for configs. That way we can achieve inheritance but overriding with CLI arguments is not possible out of the box.

We have also used ConfigParser in the past but it also does not tick all boxes


Viewing all articles
Browse latest Browse all 5054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>