betty.plugin.resolve module

Tools to resolve plugin-related typed.

betty.plugin.resolve.resolve_plugin_definition(plugin_definition: ResolvablePluginDefinition[PluginDefinitionT], /) PluginDefinitionT
betty.plugin.resolve.resolve_plugin_definition(plugin_definition: Any, /) Never

Resolve a plugin definition.

Raises:

ValueError – Raised if the value cannot be resolved to a plugin definition.

betty.plugin.resolve.resolve_plugin_id(plugin_id: ResolvablePluginId, /) MachineName
betty.plugin.resolve.resolve_plugin_id(plugin_id: Any, /) Never

Resolve a plugin identifier to a plugin ID.

Raises:

ValueError – Raised if the value cannot be resolved to a plugin ID.

betty.plugin.resolve.resolve_plugin_type_id(plugin_type_id: ResolvablePluginTypeId, /) MachineName
betty.plugin.resolve.resolve_plugin_type_id(plugin_type_id: Any, /) Never

Resolve a plugin type identifier to a plugin type ID.

Raises:

ValueError – Raised if the value cannot be resolved to a plugin type ID.