base#

@author: ☙ Ryan McConnell ❧

class grave_settings.base.Settings(*args, initialize_settings=True, **kwargs)[source]#

Bases: IASettings

sd#
classmethod get_versioning_endpoint()[source]#
Return type:

Type[VersionedSerializable]

update([E, ]**F) None.  Update D from mapping/iterable E and F.[source]#

If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

Parameters:
  • _Settings__m (Mapping[_KT, _VT]) –

  • kwargs (_VT) –

generate_key_value_pairs(**kwargs)[source]#
Return type:

Generator[tuple[object, object], None, None]

to_dict(context, **kwargs)[source]#
Parameters:

context (FormatterContext) –

Return type:

dict

class grave_settings.base.SlotSettings[source]#

Bases: IASettings

SETTINGS_KEYS = None#
static assemble_settings_keys_from_base(cls)[source]#
Parameters:

cls (Type) –

Return type:

tuple

classmethod get_versioning_endpoint()[source]#
Return type:

Type[VersionedSerializable]

get_settings_keys_rems(rems=None)[source]#
Return type:

set

get_settings_keys_base_slots()[source]#
Return type:

set

get_settings_keys()[source]#
safe_update(mapping_obj, **kwargs)[source]#
Parameters:
  • mapping_obj (Mapping[_KT, _VT]) –

  • kwargs (_VT) –

generate_key_value_pairs()[source]#
Return type:

Generator[tuple[object, object], None, None]

to_dict(context, **kwargs)[source]#
Parameters:

context (FormatterContext) –

Return type:

dict