loadzip#

class loadzip(filename=None, folder=None, **kwargs)[source]#

Load the contents of a zip file into a variable

Parameters:
  • filename (str/path) – the name of the zip file to write to

  • folder (str) – optional additional folder for the filename

  • kwargs (dict) – passed to sc.load()

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; see sc.unzip() for extracting