Blog · release
Handlr 0.41.0
🧾 Settings as a file (#82). No migration.
- Settings → 🧾 Settings as a file. Download writes
settings.toml: every rule field on the Settings page (the core's and each module's) with the value it has now, grouped and labelled like the page. Import reads one back, and compares first: a page shows old → new for every key the file sets, and nothing is written until you press its button. A key the file leaves out is left alone, so a change can be a two-line file. - Taken whole or not at all. An unknown key (with the nearest real one suggested), a value a key refuses, or anything that is not one line of text: every reason is listed and nothing changes. If a setting moves between the comparison and the button, the comparison is shown again instead of being written.
- A file cannot write what the page cannot: only declared rule fields. The look, consent and bot switches, share presets, the Pup ID, tokens and secrets are not in the download and are refused in an import. The Settings form and the import share one write.
- One line in your log per applied import (
settings_import, yours), naming the keys that changed and never their values. Housekeeping: no XP, no streak, no heatmap cell. python -m handlr.settings check FILE: the same validator from a clone, the same sentences;handlr.settings.check(data)for a tool that imports Handlr.- Not on
/api/v1, on purpose. A token that could rewrite the hygiene schedule or the Handler's name would be a new consent surface; a file you read and import is not. - Guide: Customise → Settings as a file.
Also, for theme makers:
python -m handlr.themes check FILE(#83): the theme check under the same name the playset and settings checks use, withhandlr.themes.check(data)for a tool that imports Handlr. Exit 0 clean, 1 with every refusal, 2 for a file it cannot read (that used to be a traceback).python -m handlr.web.apptheme checkstill answers.