pisces.utilities.config#
Pisces global configuration system.
This module provides a hierarchical, YAML-backed configuration manager for
Pisces. Configurations can be accessed and updated via dot-separated keys
(e.g., pisces_config['system.appearance.disable_progress_bars'] = False) and
changes are persisted to disk if autosave is enabled.
Configuration files are located using the following precedence:
Environment variable
$PISCES_CONFIG(if set)Local project file
.piscesrcin the current working directoryUser-specific config at
~/.config/pisces/config.yamlPackage default config distributed with Pisces
Use pisces_config to access the active configuration. It behaves like a
nested dictionary with automatic loading and saving.
Functions
Return global Pisces configuration following precedence. |
Classes
|
Hierarchical configuration manager with dot-separated keys and optional autosave. |