Is there anyway I can zip dynamically generated content, such as a freshly rendered html template, into a zip file using zipfile?
There seem to be some examples arou
In addition to Schnouki's excellent answer, you can also pass ZipFile a file-like object, such as one created by StringIO.StringIO.