labapi.util.types.Index#

class labapi.util.types.Index(
value,
names=<not given>,
*values,
module=None,
qualname=None,
type=None,
start=1,
boundary=None,
)[source]#

Bases: Enum

Represents the available indexing methods for accessing items in a collection.

__init__(*args, **kwds)#

Attributes

Id

Index by the unique identifier of an item.

Name

Index by the human-readable name of an item.

Id = 'id'#

Index by the unique identifier of an item.

Name = 'name'#

Index by the human-readable name of an item.