ewoksndreg.registry.Registered#

class ewoksndreg.registry.Registered[source]#

Bases: object

class RegistryId(name, backend)#

Bases: NamedTuple

backend: str#

Alias for field number 1

count(value, /)#

Return number of occurrences of value.

classmethod factory(value)#
Parameters:

value (Union[RegistryId, str, Tuple])

index(value, start=0, stop=9223372036854775807, /)#

Return first index of value.

Raises ValueError if the value is not present.

name: str#

Alias for field number 0

classmethod get_subclass(registry_id)[source]#
Parameters:

registry_id (RegistryId)

Return type:

Type[Registered]

classmethod get_subclass_id()[source]#
Return type:

Optional[RegistryId]

classmethod get_subclass_ids()[source]#
Return type:

List[RegistryId]

classmethod get_subclass_items()[source]#
Return type:

List[RegistryId]

classmethod get_subclasses()[source]#
Return type:

List[Type[Registered]]