simpleml.registries.registry

Different registries implementations available

Module Contents

Classes

NamedRegistry

Explicitly named version of the registry (not implicit on class names)

Registry

Importable class to maintain reference to the global registry

simpleml.registries.registry.LOGGER[source]
simpleml.registries.registry.__author__ = Elisha Yadgaran[source]
class simpleml.registries.registry.NamedRegistry[source]

Bases: simpleml.registries.registry.Registry

Explicitly named version of the registry (not implicit on class names)

register(self, name, cls, allow_duplicates=True)[source]
class simpleml.registries.registry.Registry[source]

Bases: object

Importable class to maintain reference to the global registry

clear(self)[source]

Clear registry

drop(self, key: str)None[source]

Drop key from registry

get(self, class_name)[source]
get_from_registry(self, class_name)[source]
register(self, cls)[source]