psychos.utils.register#

psychos.utils.register(name: str, dictionary: dict) Callable[source]#

Decorator to register an object in a dictionary under a specific name.

Parameters:
  • name (str) – The name to register the object.

  • dictionary (dict) – The dictionary to register the object in.

Returns:

A decorator function to register the object.

Return type:

function