config_file#
@author: ☙ Ryan McConnell ❧
- class grave_settings.config_file.LogFileLink(config=None, file_path=None, rel_path=None)[source]#
Bases:
Serializable
- to_dict(context, **kwargs)[source]#
- Parameters:
context (FormatterContext) –
- Return type:
- from_dict(state_obj, context, **kwargs)[source]#
- Parameters:
state_obj (dict) –
context (FormatterContext) –
- class grave_settings.config_file.ConfigFile(file_path, data=None, formatter=None, auto_save=False, read_only=False)[source]#
Bases:
Serializable
- Parameters:
- FORMATTER_STR_DICT = {'json': <grave_settings.formatters.json.JsonFormatter object>, 'toml': <grave_settings.formatters.toml.TomlFormatter object>}#
- add_config_dependency(other, relative_path=True)[source]#
- Parameters:
other (ConfigFile) –
- add_log_file_link(link)[source]#
- Parameters:
link (LogFileLink) –
- classmethod check_in_serialization_context(context)[source]#
This method typically is called on an instantiated object, so it may not be necessary for it to be a class method.
- Parameters:
context (FormatterContext) –
- handle_serialize_IASettings(serializer, obj, **kwargs)[source]#
- Parameters:
serializer (Serializer) –
obj (IASettings) –
- classmethod check_in_deserialization_context(context)[source]#
This method is typically called on type objects, so it should remain a class method in sub-classes. This is where you can put a reference to
NotifyFinalizedMethodName
to get a callback- Parameters:
context (FormatterContext) –
- handle_deserialize_LogFileLink(deserializer, obj, **kwargs)[source]#
- Parameters:
deserializer (DeSerializer) –
obj (LogFileLink) –