Skip to content

kwargs_model

KwargsModel is a generic configuration object that allows arbitrary fields and values.

Classes

KwargsModel

Bases: SettingsBaseModel

Generic configuration object that allows arbitrary fields and values.

The intended use case is to allow for the creation of configuration objects instance via new_instance.

Warning: this model is not secrets-aware and should not be used for configurations requiring secrets

Use this model with care as it effectively bypasses validation

Functions

__getitem__
__getitem__(key: str) -> Any

Allows dictionary-style access to model fields.

__iter__
__iter__()

Allows the model to be iterated over (as dict keys).

as_dict
as_dict() -> Dict
get
get(key: str, default: Optional[Any] = None) -> Any
items
items() -> ItemsView[str, Any]
keys
keys() -> KeysView[str]
values
values() -> ValuesView[Any]