grains.utils.decompress_inmemory

grains.utils.decompress_inmemory(filename)[source]

Decompresses the contents of a zip archive into a dictionary.

Parameters

filename (str) – Name of the zip archive.

Returns

data (dict) – The keys of the dictionary are the compressed file names (without extension), the corresponding values are their contents.

See also

zipfile.ZipFile