providers.EnvironmentConfigurationProvider
The EnvironmentConfigurationProvider consumes environment variables as key-value pairs. For example, consider these bash exports:
export ConnectionStrings__SampleDb=my_cxn_string
export ConnectionStrings__AnotherDb=another_cxn_string
The above will result in a Configuration object with the following state (represented as JSON):
{
"ConnectionStrings": {
"SampleDb": "my_cxn_string",
"AnotherDb": "another_cxn_string"
}
}
- class EnvironmentConfigurationProvider
Bases:
ConfigurationProviderA
ConfigurationProviderthat populates configuration data from Environment variables.- populate_configuration(configuration: Configuration) None
Populate the provided
Configurationobject using provider-specific methods.
- populateConfiguration(configuration: Configuration) None
⚠️ DEPRECATED: use
populate_configuration(...)instead.