prefect.utilities.dispatch
Provides methods for performing dynamic dispatch for actions on base type to one of its
subtypes.
Example:
Functions
get_registry_for_type
None is returned.
get_dispatch_key
__dispatch_key__ attribute. If it is a callable, it
will be resolved.
If allow_missing is False, an exception will be raised if the attribute is not
defined or the key is null. If True, None will be returned in these cases.
register_base_type
register_type.
The base class may or may not define a __dispatch_key__ to allow lookups of the
base type.
register_type
__dispatch_key__.
One of the classes base types must be registered using register_base_type.