cfitall.providers.base.ConfigProviderBase

class ConfigProviderBase

Bases: abc.ABC

Methods

update

The update() method signals the provider to read/update its internal data and should return True on successful update or False on failure.

Attributes

dict

The dict property should return a dictionary of the configuration values obtained by the provider.

provider_name

each provider must provide a unique provider_name

abstract property dict: dict

The dict property should return a dictionary of the configuration values obtained by the provider. This dict is then combined and reconciled with that of the other providers to produce the final configuration.

Return type

dict

provider_name: str = 'not_implemented'

each provider must provide a unique provider_name

abstract update()

The update() method signals the provider to read/update its internal data and should return True on successful update or False on failure.

Return type

bool