> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/aistore/llms.txt.
> For full documentation content, see https://docs.nvidia.com/aistore/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/aistore/_mcp/server.

# aistore.sdk.multiobj.object_range

## Module Contents

### Classes

| Name                                                            | Description                                |
| --------------------------------------------------------------- | ------------------------------------------ |
| [`ObjectRange`](#aistore-sdk-multiobj-object_range-ObjectRange) | Class representing a range of object names |

### API

```python
class aistore.sdk.multiobj.object_range.ObjectRange(
    prefix: str,
    min_index: int = None,
    max_index: int = None,
    pad_width: int = 0,
    step: int = 1,
    suffix: str = ''
)
```

**Bases:** [ObjectCollection](/python/aistore/sdk/multiobj/object_collection#aistore-sdk-multiobj-object_collection-ObjectCollection)

Class representing a range of object names

**Parameters:**

Prefix contained in all names of objects

Starting index in the name of objects

Last index in the name of all objects

Left-pad indices with zeros up to the width provided, e.g. pad\_width = 3 will
transform 1 to 001

Size of iterator steps between each item

Suffix at the end of all object names

```python
aistore.sdk.multiobj.object_range.ObjectRange.__iter__() -> typing.Iterator[str]
```

```python
aistore.sdk.multiobj.object_range.ObjectRange.__str__() -> str
```

```python
aistore.sdk.multiobj.object_range.ObjectRange._indices_set() -> bool
```

```python
aistore.sdk.multiobj.object_range.ObjectRange._validate_indices(
    min_index,
    max_index,
    pad_width
)
```

staticmethod

**Raises:**

* `InvalidObjectRangeIndex`: If the indices passed to the range are not valid

```python
aistore.sdk.multiobj.object_range.ObjectRange.from_string(
    range_string: str
)
```

classmethod

Construct an ObjectRange instance from a valid range string like 'input-\{00..99..1}.txt'

**Parameters:**

The range string to parse

**Returns:**

An instance of the ObjectRange class

```python
aistore.sdk.multiobj.object_range.ObjectRange.get_value()
```