settings
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| AppSettings datacook.app.settings User settings; `AppState.settings` holds the active (frozen) instance. |
🛈 DocStrings¶
App settings (pydantic, JSON in the platformdirs config dir; Qt-free).
AppSettings
¶
Bases: BaseModel
User settings; AppState.settings holds the active (frozen) instance.
Source code in src/datacook/app/settings.py
memory_budget
class-attribute
instance-attribute
¶
Frame cache budget in bytes (None: engine default, 25 % of RAM).
preview_debounce_ms
class-attribute
instance-attribute
¶
Debounce of the params form (PydanticForm) before a preview starts.
preview_rows
class-attribute
instance-attribute
¶
Rows computed / shown for a params preview.
recipe_folder
class-attribute
instance-attribute
¶
Recipe library folder (None: recipes in the user data dir).
selection_debounce_ms
class-attribute
instance-attribute
¶
Selecting a node that is not cached starts computing after this rest time.
load
classmethod
¶
load(path: Path | None = None) -> AppSettings
Read the settings file; defaults if it is missing or invalid.