> 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.archive_config

## Module Contents

### Classes

| Name                                                         | Description                                                        |
| ------------------------------------------------------------ | ------------------------------------------------------------------ |
| [`ArchiveConfig`](#aistore-sdk-archive_config-ArchiveConfig) | Configuration for extracting files from an archive                 |
| [`ArchiveMode`](#aistore-sdk-archive_config-ArchiveMode)     | Archive mode for getting files/objects from an archive in a bucket |

### API

```python
class aistore.sdk.archive_config.ArchiveConfig(
    archpath: str = '',
    regex: str = '',
    mode: aistore.sdk.archive_config.ArchiveMode = None
)
```

Dataclass

Configuration for extracting files from an archive

archpath (str, optional): If the object is an archive, use `archpath` to extract a single file
from the archive
regex (str, optional): A prefix, suffix, WebDataset key, or general-purpose regular expression
used to match filenames within the archive and select possibly multiple files
mode (ArchiveMode, optional): Specifies the mode of archive extraction when using `regex`

```python
aistore.sdk.archive_config.ArchiveConfig.__post_init__()
```

```python
class aistore.sdk.archive_config.ArchiveMode
```

**Bases:** `enum.Enum`

Archive mode for getting files/objects from an archive in a bucket
See `MatchMode` enum in the cmn/archive/read.go