ConfigAttribute
Makes an attribute forward to the config
Attributes
| Attribute | Type | Description |
|---|---|---|
| name | string | The 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
| Name | Type | Description |
|---|---|---|
| name | str | The 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
| Name | Type | Description |
|---|---|---|
| name | string | The key name in the application configuration dictionary to forward access to |
| get_converter | callable = None | An optional function to transform the configuration value when it is retrieved |