Skip to content

Configuration API

Programmatic access to the loaded configuration. For the file formats and every key's meaning, see the configuration guide.

ingestlib.config.get_config

get_config() -> IngestConfig

Full typed configuration, loaded lazily from config.yaml + .env and cached.

ingestlib.config.reset_config

reset_config() -> None

Forget the cached config and every client singleton built from it.

The next library call rediscovers config.yaml, reloads the .env beside it, and rebuilds clients lazily. Call this after editing config files in a long-lived process (a settings UI, a notebook); first-time setup never needs it — the initial load is already lazy.

Secrets a previous load injected from .env are un-set, so both edits and deletions apply on reload; variables exported by the shell are left alone and keep winning over .env.

ingestlib.config.IngestConfig dataclass