mkt.schema.io_utils.untar_files_in_memory
- mkt.schema.io_utils.untar_files_in_memory(str_path: str, bool_extract: bool = True, list_ids: list[str] | None = None) dict[str, str][source]
Untar files exclusively in memory.
- Parameters:
str_path (str) – Path to the tar.gz file.
bool_extract (bool, optional) – If True, extract the files to memory, by default True.
list_ids (list[str] | None, optional) – List of IDs to filter the files if reading from memory, by default None. If None, all files will be extracted.
- Returns:
Dictionary of file names and their contents as strings.
- Return type:
dict[str, str]