From cdbf00c26d6e1327f65bf30366fec9f1c343e387 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Tue, 13 Jan 2026 14:19:37 +0000 Subject: [PATCH] Use streaming ZIP extraction --- audmodel/core/backend.py | 16 +++------------- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/audmodel/core/backend.py b/audmodel/core/backend.py index 0f04c08..7b8967c 100644 --- a/audmodel/core/backend.py +++ b/audmodel/core/backend.py @@ -100,23 +100,13 @@ def get_archive( with backend_interface.backend: # get archive - src_path = path - dst_path = os.path.join(tmp_root, "model.zip") - backend_interface.get_file( - src_path, - dst_path, + backend_interface.get_archive( + path, + tmp_root, version, verbose=verbose, ) - # extract files - audeer.extract_archive( - dst_path, - tmp_root, - keep_archive=False, - verbose=verbose, - ) - # move tmp folder to final destination if os.path.exists(root): os.rmdir(root) diff --git a/pyproject.toml b/pyproject.toml index dbcc1cc..8d6c258 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ classifiers = [ ] requires-python = '>=3.10' dependencies = [ - 'audbackend[all] >=2.2.3', + 'audbackend[all] @ git+https://github.com/audeering/audbackend.git@stream-extract', 'filelock', 'oyaml', ]