Config¶
transcript_indexer.config
¶
default_db_path()
¶
default_config_path()
¶
render_default_config_toml()
¶
Return the default config file contents with platform-appropriate paths.
ensure_config_file(path=None, *, force=False)
¶
Create the user-level config file with defaults if it doesn't exist.
Returns (path, created). created is True if a new file was written.
With force=True, an existing file is overwritten.
Source code in src/transcript_indexer/config.py
load_config(explicit=None)
¶
Load config from --config flag, env var, default user path, or defaults.
If no config file exists at the default user-level path (and the user didn't specify one), seed it with the default template so first-time users have a discoverable file to edit.
Override hierarchy: CLI flag > env var > config file > built-in default.