Question: providers.Configuration from *.ini
See original GitHub issueHi,
I use this module daily at work and for me fits perfectly! Thanks so much for your work!
Question:
Is there any way to load ini file directly to dependency_injector.providers.Configuration
?
Currently I solve this by implementing in Core
my configuration loader and then override config values.
Other way is to use directly python ConfigParser
, load ini
file and then override Core.config
. I don’t want to use directly ConfigParser
because I had too much customized this class.
So there is another question:
Is there any awy to use customized ConfigParser
to paste parameters from ini
to Core.config
?
best regards!
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
ASP.NET Core Configuration - Configuration Providers
In this article, we're going to talk about different configuration providers in ASP.NET Core applications.
Read more >Configuration provider - Dependency Injector
Configuration provider provides configuration options to the other providers. ... It implements the principle “use first, define later”. Loading from an INI file....
Read more >Inject different implementation based on yaml configuration
So using dependency injector package, I've created a container: class Container(containers.DeclarativeContainer): config = providers.
Read more >Using a configuration provider to externalize secrets
A configuration provider lets you specify variables instead of plaintext in a connector or worker configuration, and workers running in your connector resolve ......
Read more >Configuration providers - .NET - Microsoft Learn
XML configuration provider ; INI configuration provider. Keys are case-insensitive. All of the file configuration providers throw the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@thegrymek @LastStarDust
Gentlemen,
The day has come.
http://python-dependency-injector.ets-labs.org/providers/configuration.html#loading-from-ini-file
Available since version
3.18
.Thank you very much