Registry¤
The registry component of Scrubber maintains a catalogue of registered functions that can be imported individually as needed. The registry enables the functions to be referenced by name using string values. The code registry is created and accessed using the catalogue library by Explosion.
get_component(s: str) -> Callable
¤
Get a single component from a string.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
s
|
str
|
The name of the function. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Callable |
Callable
|
The function. |
get_components(t: tuple[str, ...]) -> Generator
¤
Get components from a tuple.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
t
|
tuple[str, ...]
|
A tuple containing string names of functions. |
required |
Yields:
| Name | Type | Description |
|---|---|---|
Generator |
Generator
|
A generator containing the functions. |