archivebox.config.collection
Module Contents
Classes
Pseudo-section for all plugin config keys written to [PLUGINS] section in ArchiveBox.conf |
Functions
get the up-to-date canonical name for a given old alias or current key |
|
parse bool, int, and str key=value pairs from env |
|
load the ini-formatted config file from DATA_DIR/Archivebox.conf |
|
Find the config section containing a given key. |
|
load the ini-formatted config file from DATA_DIR/Archivebox.conf |
|
Load all config sections and return as a flat dict. |
API
- class archivebox.config.collection.CaseConfigParser(defaults=None, dict_type=_default_dict, allow_no_value=False, *, delimiters=('=', ':'), comment_prefixes=('#', ';'), inline_comment_prefixes=None, strict=True, empty_lines_in_values=True, default_section=DEFAULTSECT, interpolation=_UNSET, converters=_UNSET)[source]
Bases:
configparser.ConfigParser
- archivebox.config.collection.get_real_name(key: str) str[source]
get the up-to-date canonical name for a given old alias or current key
- archivebox.config.collection.load_config_val(key: str, default: Any = None, type: archivebox.config.collection.load_config_val.type | None = None, aliases: tuple[str, ...] | None = None, config: benedict.benedict | None = None, env_vars: os._Environ | None = None, config_file_vars: dict[str, str] | None = None) Any[source]
parse bool, int, and str key=value pairs from env
- archivebox.config.collection.load_config_file() benedict.benedict | None[source]
load the ini-formatted config file from DATA_DIR/Archivebox.conf
- class archivebox.config.collection.PluginConfigSection(key: str)[source]
Pseudo-section for all plugin config keys written to [PLUGINS] section in ArchiveBox.conf
Initialization
- archivebox.config.collection.section_for_key(key: str) Any[source]
Find the config section containing a given key.
- archivebox.config.collection.write_config_file(config: dict[str, str]) benedict.benedict[source]
load the ini-formatted config file from DATA_DIR/Archivebox.conf