open_archive package#
Submodules#
open_archive.open_archive module#
- open_archive.open_archive.open_archive(context: MLClientCtx, archive_url: DataItem, subdir: str = 'content/', key: str = 'content', target_path: str | None = None)[source]#
Open a file/object archive into a target directory. Currently, supports zip and tar.gz.
- Parameters:
context – function execution context
archive_url – url of archive file
subdir – path within artifact store where extracted files are stored, default is “/content”
key – key of archive contents in artifact store
target_path – file system path to store extracted files