uvex_transients.utils.config#

Global configuration system for uvex_transients.

This module provides a hierarchical, YAML-backed configuration manager. Configuration values are accessed via dot-separated keys (e.g. config["physics.default_cosmology"]); changes are written back to disk immediately (autosave).

Configuration files are located using the following precedence:

  1. Environment variable $UVEX_TRANSIENTS_CONFIG (if set)

  2. Local project file .uvex_transientsrc in the current working directory

  3. User-specific config at ~/.config/uvex_transients/config.yaml

  4. Package default config distributed with uvex_transients

Use config to access the active configuration; it behaves like a nested dictionary with automatic loading and saving.