loadzip#
- loadzip(filename=None, folder=None, load=True, convert=True, **kwargs)[source]#
Load the contents of a zip file into a variable.
See also
sc.load()for loading a gzipped file.- Parameters:
- Returns:
dict with each file loaded as a key
Example:
data = sc.loadzip('my-files.zip')
New in version 2.0.0.New in version 3.0.0: load into memory instead of extracting to disk; seesc.unzip()for extractingNew in version 3.1.4: optionally return just the zipfile object; convert bytes to stringNew in version 3.2.1: load gzip as well as zip files