config
- class mautrix.util.config.BaseConfig
Bases:
abc.ABC
,mautrix.util.config.RecursiveDict
[ruamel.yaml.comments.CommentedMap
]- abstract do_update(helper)
- Parameters
helper (mautrix.util.config.ConfigUpdateHelper) –
- Return type
- abstract load_base()
- Return type
Optional[mautrix.util.config.recursive_dict.RecursiveDict[ruamel.yaml.comments.CommentedMap]]
- exception mautrix.util.config.BaseMissingError
Bases:
ValueError
- class mautrix.util.config.ConfigUpdateHelper
Bases:
object
- __init__(base, config)
- Parameters
base (mautrix.util.config.RecursiveDict) –
config (mautrix.util.config.RecursiveDict) –
- Return type
- copy(from_path, to_path=None)
- copy_dict(from_path, to_path=None, override_existing_map=True)
- base: RecursiveDict[CommentedMap]
- class mautrix.util.config.BaseFileConfig
Bases:
mautrix.util.config.BaseConfig
,abc.ABC
- load_base()
- Return type
Optional[mautrix.util.config.recursive_dict.RecursiveDict[ruamel.yaml.comments.CommentedMap]]
- class mautrix.util.config.BaseProxyConfig
Bases:
mautrix.util.config.BaseConfig
,abc.ABC
- __init__(load, load_base, save)
- Parameters
load (Callable[[], ruamel.yaml.comments.CommentedMap]) –
load_base (Callable[[], Optional[mautrix.util.config.recursive_dict.RecursiveDict[ruamel.yaml.comments.CommentedMap]]]) –
save (Callable[[mautrix.util.config.recursive_dict.RecursiveDict[ruamel.yaml.comments.CommentedMap]], None]) –
- Return type
- load_base()
- Return type
Optional[mautrix.util.config.recursive_dict.RecursiveDict[ruamel.yaml.comments.CommentedMap]]
- class mautrix.util.config.RecursiveDict
Bases:
Generic
[mautrix.util.config.recursive_dict.T
]- __init__(data=None, dict_factory=None)
- Parameters
data (Optional[mautrix.util.config.recursive_dict.T]) –
dict_factory (Optional[Type[mautrix.util.config.recursive_dict.T]]) –
- Return type
- clone()
- Return type
- get(key, default_value, allow_recursion=True)
- class mautrix.util.config.BaseStringConfig
Bases:
mautrix.util.config.BaseConfig
,abc.ABC
- load_base()
- Return type
Optional[mautrix.util.config.recursive_dict.RecursiveDict[ruamel.yaml.comments.CommentedMap]]
- class mautrix.util.config.BaseValidatableConfig
Bases:
mautrix.util.config.BaseConfig
,abc.ABC
- abstract property forbidden_defaults: list[mautrix.util.config.ForbiddenDefault]
- exception mautrix.util.config.ConfigValueError
Bases:
ValueError
- class mautrix.util.config.ForbiddenDefault
Bases:
object
- __init__(key, value, error=None, *, condition=None)
Method generated by attrs for class ForbiddenDefault.
- check(config)
- Parameters
config (mautrix.util.config.BaseConfig) –
- Return type
- property exception: mautrix.util.config.ConfigValueError
- value: Any