absfuyu.config package

Absfuyu: Configuration

Package configuration module

Version: 5.1.0 Date updated: 10/03/2025 (dd/mm/yyyy)

class absfuyu.config.Config(config_file: Path, name: str | None = None)[source]

Bases: BaseClass

Config handling

save() None[source]

Save config to .json file

property setting_list: list[str]

List of name of available settings

reset_config() None[source]

Reset all settings to default value

show_settings() list[Setting][source]

Returns a list of available settings (wrapper for Config.settings)

change_setting(name: str, value: Any) None[source]

Change Setting (if available)

Parameters:
  • name (str) – Name of the setting

  • value (Any) – Value of the setting

toggle_setting(name: str) None[source]

Special change_setting() method. Turn on/off if type(<setting>) is bool

Parameters:

name (str) – Name of the setting

add_setting(name: str, value: Any, default: Any, help_: str = '') None[source]

Add Setting if not exist

Parameters:
  • name (str) – Name of the setting

  • value (Any) – Value of the setting

  • default (Any) – Default value of the setting

  • help (str) – Description of the setting (Default: None)

del_setting(name: str) None[source]

Delete Setting

Parameters:

name (str) – Name of the setting

welcome() None[source]

Run first-run script (if any)