generate_changelog.actions.Registry

Registry#

class generate_changelog.actions.Registry[source]#

Built-in action registry.

This allows setting keys normally. When getting a key, it makes sure the appropriate modules are imported to fill the internal dictionary before getting the key.

__init__(initialdata=None)[source]#
Parameters:

initialdata (MutableMapping[str, Callable] | None) –

__getitem__(key)[source]#

Make sure the built-in actions are loaded.

Return type:

Callable

Parameters:

key (str) –

__contains__(key)[source]#

Make sure the built-in actions are loaded before testing containment.

Return type:

bool

Parameters:

key (object) –

load_builtins()[source]#

Import all submodules so the decorated functions get registered.

Return type:

None