scholium.config.Config#

class Config(config_path=None)[source]#

Bases: object

Manages application configuration.

Initialize configuration.

Parameters:

config_path (Optional[str]) – Path to config.yaml file. If None, looks in current directory.

Methods

ensure_dirs

Ensure all configured directories exist.

get

Get configuration value.

set

Set configuration value.

Attributes

DEFAULT_CONFIG

get(key, default=None)[source]#

Get configuration value.

Parameters:
  • key (str) – Configuration key (supports dot notation, e.g., ‘elevenlabs.api_key’)

  • default (Any) – Default value if key not found

Return type:

Any

Returns:

Configuration value

set(key, value)[source]#

Set configuration value.

Parameters:
  • key (str) – Configuration key (supports dot notation)

  • value (Any) – Value to set

ensure_dirs()[source]#

Ensure all configured directories exist.