Skip to content

Overview

The utils/ package centralizes common functionality used across Visory projects: global settings (via dynaconf), logger configuration, and shared helpers.

  • Imports global settings from conf/ (see conf/log.settings.py for the log-related variables reused across modules)
  • Sets up global logger configuration
  • Provides utility functions like git_get_root() and dvc_get_root() — these resolve the git repo root and DVC root respectively; git_get_root() is also used to locate the conf/ path when importing global settings

LocalSettingsModel is a generic Dynaconf base model that auto-loads only the settings relevant to its subclass. It’s used by setup_logger() (called on utils import) to configure the logger locally, avoiding a circular setup.