datumaro.components.registry#

Classes

class datumaro.components.registry.Registry[source]#

Bases: Generic[T]

register(name: str, value: T) → T[source]#
unregister(name: str) → T | None[source]#
get(key: str) → T[source]#

Returns a class or a factory function

items() → Generator[Tuple[str, T], None, None][source]#
class datumaro.components.registry.PluginRegistry[source]#

Bases: Registry[Type[CliPlugin]]

get(key: str) → Type[CliPlugin][source]#

Returns a class or a factory function

batch_register(values: Iterable[Type[CliPlugin]])[source]#
class datumaro.components.registry.DatasetBaseRegistry[source]#

Bases: PluginRegistry

class datumaro.components.registry.ImporterRegistry[source]#

Bases: PluginRegistry

register(name: str, value: Type[Importer] | LazyPlugin) → Type[Importer] | LazyPlugin[source]#
class datumaro.components.registry.ExporterRegistry[source]#

Bases: PluginRegistry

class datumaro.components.registry.GeneratorRegistry[source]#

Bases: PluginRegistry

class datumaro.components.registry.TransformRegistry[source]#

Bases: PluginRegistry

class datumaro.components.registry.ValidatorRegistry[source]#

Bases: PluginRegistry