Getting started
User guide
Additional resources
Developer guide
API
Meta
grains.utils.
compress
Creates a zip archive from a single file.
filename (str) – Name of the file to be compressed.
level (int, optional) – Level of compression. Integers 0 through 9 are accepted. The default is 9.
None.
See also
zipfile.ZipFile