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: ConfigurationProvider

A ConfigurationProvider that populates configuration data from Environment variables.

populate_configuration(configuration: Configuration) None

Populate the provided Configuration object using provider-specific methods.

populateConfiguration(configuration: Configuration) None

⚠️ DEPRECATED: use populate_configuration(...) instead.