Base of the settings dataclasses, JSON in and out.

Methods
to_dict()Dict[str, Any]The settings as plain dict, nested settings included.
from_dict()TSettings from a dict, missing fields get their default.
copy()TA deep copy.

Methods

Settings.to_dict() → Dict[str, Any]

source

The settings as plain dict, nested settings included.

Returns Dict[str, Any]

Settings.from_dict(data: Dict[str, Any]) → Tclass method

source

Settings from a dict, missing fields get their default.

Unknown keys are logged and ignored, so recipes of a newer version still load as far as possible.

ParameterTypeDescription
dataDict[str, Any]—

Returns T

Settings.copy() → T

source

A deep copy.

Returns T