ObjectIndex

class Sloth.index.ObjectIndex

Initializes an ObjectIndex with the given index.

Parameters

indexlist

List of objects to be indexed.

Examples

>>> idx = ObjectIndex(['a', 'b', 'c'])
>>> idx.keys
array(['a', 'b', 'c'], dtype='<U1')

Methods