Skip to navigation

aistore.sdk.batch.extractor.extractor_registry

View as MarkdownOpen in Claude

Module Contents

Functions

NameDescription
get_extractorReturns the ArchiveStreamExtractor for a given output format.

Data

_FORMAT_MAP

API

aistore.sdk.batch.extractor.extractor_registry.get_extractor(
output_format: str

Returns the ArchiveStreamExtractor for a given output format.

Parameters:

output_format
str

Output format string (e.g. “.tar”, “.zip”)

Returns: ArchiveStreamExtractor

Extractor supporting the given format

Raises:

  • ValueError: If the format is not supported
aistore.sdk.batch.extractor.extractor_registry._FORMAT_MAP: MappingProxyType = MappingProxyType({fmt: extractor for extractor in (TarStreamExtractor(), ZipStre...