cornflakes.decorator.config_group
- cornflakes.decorator.config_group(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, kw_only=False, slots=False, match_args=True, dict_factory=None, tuple_factory=None, value_factory=None, alias_generator=None, eval_env=False, validate=False, updatable=False, ignore_none=False, files=None, allow_empty=None, chain_configs=False, **kwargs)
Config decorator with a Subset of configs to parse Ini Files.
- Parameter:
ignore_none (bool) –
alias_generator (Callable[[str], str] | None) –
value_factory (Callable | None) –
updatable (bool) –
validate (bool) –
eval_env (bool) –
tuple_factory (Callable | None) –
dict_factory (Callable | None) –
match_args (bool) –
slots (bool) –
kw_only (bool) –
frozen (bool) –
unsafe_hash (bool) –
order (bool) –
eq (bool) –
repr (bool) –
init (bool) –
cls (Type[_T] | None) – Config class
files (List[str] | str | None) – Default config files
allow_empty (bool | None) – Flag that allows empty config result
chain_configs (bool | None) – flag indicating whether to chain files in to single config.
kwargs – Additional args for custom dataclass. (dict_factory, eval_env. …).
- Rückgabe:
wrapped class or the wrapper itself with the custom default arguments if the config class is not
- Rückgabetyp:
Callable[[Type[_T]], Type[ConfigGroup] | Type[CornflakesDataclass] | MappingWrapper[_T]] | Type[ConfigGroup] | Type[CornflakesDataclass] | MappingWrapper[_T]