Skip to main content

ConfigAttribute

Makes an attribute forward to the config

Attributes

AttributeTypeDescription
namestringThe key name used to look up or set the corresponding value within the application's configuration dictionary.
get_converter`t.Callable[[t.Any], T]None` = None

Constructor

Signature

def ConfigAttribute(
name: str,
get_converter: t.Callable[[t.Any], T]| None = None
) - > None

Parameters

NameTypeDescription
namestrThe name of the configuration key to forward to.
get_converter`t.Callable[[t.Any], T]None` = None

Signature

def ConfigAttribute(
name: string,
get_converter: callable = None
) - > None

Parameters

NameTypeDescription
namestringThe key name in the application configuration dictionary to forward access to
get_convertercallable = NoneAn optional function to transform the configuration value when it is retrieved