aistore.sdk.multiobj.object_range
aistore.sdk.multiobj.object_range
Module Contents
Classes
API
Bases: ObjectCollection
Class representing a range of object names
Parameters:
prefix
Prefix contained in all names of objects
min_index
Starting index in the name of objects
max_index
Last index in the name of all objects
pad_width
Left-pad indices with zeros up to the width provided, e.g. pad_width = 3 will transform 1 to 001
step
Size of iterator steps between each item
suffix
Suffix at the end of all object names
_max_index
_min_index
staticmethod
Raises:
InvalidObjectRangeIndex: If the indices passed to the range are not valid
classmethod
Construct an ObjectRange instance from a valid range string like ‘input-{00..99..1}.txt’
Parameters:
range_string
The range string to parse
Returns:
An instance of the ObjectRange class