Registry

pyinduct.registry covers the interface for registration of bases (a base is a set of initial functions).

register_base(label, base, overwrite=False)[source]

Register a basis to make it accessible all over the pyinduct framework.

Parameters:
  • base (Base) – base to register
  • label (str) – String that will be used as label.
  • overwrite – Force overwrite if a basis is already registered under this label.
is_registered(label)[source]

Checks whether a specific label has already been registered.

Args: label (str): Label to check for.

Returns:True if registered, False if not.
Return type:bool
deregister_base(label)[source]

Removes a set of initial functions from the packages registry.

Parameters:label (str) – String, label of functions that are to be removed.
Raises:ValueError – If label is not found in registry.
get_base(label)[source]

Retrieve registered set of initial functions by their label.

Parameters:label (str) – String, label of functions to retrieve.
Returns:initial_functions