tempFile = tempfile.TemporaryFile()
create an instance of a temporary file
tempFile.write(b”string”)
write binary literal to a temp file
tempFile.seek(0)
reset seek pointer to position 0
tempFile.read()
read temp file
tempFile.close()
close temp file
zip {.zip-filename} {filename-to-compress}
create a zip archive with compressed files