azure.appconfiguration.provider.aio package

class azure.appconfiguration.provider.aio.AzureAppConfigurationProvider(**kwargs: Any)[source]

Provides a dictionary-like interface to Azure App Configuration settings. Enables loading of sets of configuration settings from Azure App Configuration into a Python application. Enables trimming of prefixes from configuration keys. Enables resolution of Key Vault references in configuration settings.

async close() None[source]

Closes the connection to Azure App Configuration.

get(key: str, default: str | Mapping[str, Any] | _T | None = None) str | Mapping[str, Any] | _T | None

Returns the value of the specified key. If the key does not exist, returns the default value.

Parameters:
  • key (str) – The key of the value to get.

  • default – The default value to return.

Type:

str or None

Returns:

The value of the specified key.

Return type:

Union[str, JSON]

items() ItemsView[str, str | Mapping[str, Any]]
Returns a set-like object of key-value pairs loaded from Azure App Configuration. Any values that are Key Vault

references will be resolved.

Returns:

A set-like object of key-value pairs loaded from Azure App Configuration.

Return type:

ItemsView[str, Union[str, Mapping[str, Any]]]

keys() KeysView[str]

Returns a list of keys loaded from Azure App Configuration.

Returns:

A list of keys loaded from Azure App Configuration.

Return type:

KeysView[str]

async refresh(**kwargs) None[source]
values() ValuesView[str | Mapping[str, Any]]

Returns a list of values loaded from Azure App Configuration. Any values that are Key Vault references will be resolved.

Returns:

A list of values loaded from Azure App Configuration. The values are either Strings or JSON objects, based on there content type.

Return type:

ValuesView[Union[str, Mapping[str, Any]]]

async azure.appconfiguration.provider.aio.load(*args, **kwargs) AzureAppConfigurationProvider[source]