.net we will have configuration in
1. appsettings.json,
2. appsettings.{environment}.json
3. Environment variables
4. External providers like azure key vault, azure app configuration
Here it is like an heirachical configuration. Where the values from bottom overrides the generic ones.
Any such way si there in python? Any packages commonly used.Hi All,
I python how do we manage configuration.
For eg- in .net we will have configuration in
1. appsettings.json,
2. appsettings.{environment}.json
3. Environment variables
4. External providers like azure key vault, azure app configuration
Here it is like an heirachical configuration. Where the values from bottom overrides the generic ones.
Any such way si there in python? Any packages commonly used.
https://docs.python.org/3/library/configparser.html
Thanks for responding Correct me if I am wrong. Here I can only read from files. Not from environment variables or cloud provided services like azure app configuration
For env vars you can use https://environ-config.readthedocs.io/en/stable/
Обсуждают сегодня