settings
settings.py — read and write config values by path, backed by
Data\config.json and browsable through the
Settings page.
Quick usage
from quantstrip import settings
allocation = settings.get_by_path(
"Settings/Strategy Settings/Monthly Flow Rebalancing/allocation"
)
Reading and writing
The parsed, decrypted value at path. For an environment-backed node, returns
the live OS environment value instead.
None if the path does not exist.Sets (creating if needed) the setting at path. Pass
source="env" and env_var to make it environment-backed instead of
storing value directly.
The raw node — no parsing or decryption — useful for inspecting
_type/_source/_env_var directly.
dict, or None.Whether an environment-backed setting's variable is actually set on the host.
True/False, or None if the
path isn't an environment-backed setting.Tree structure
Names of the child folders/settings under path.
List[str].Creates a folder node, optionally locked.
Deletes a folder or a leaf setting node.
Existence checks — bool.
Whether path, or any ancestor folder in its path, is locked.
bool.get_env_var(name) — reads directly from the Windows
registry (system, then user hive) rather than the process environment, so a value set on the
host is picked up without restarting the Quantstrip service.