zipfile doesn't compress very good, are there other solutions ?

Chris Rebert clp2 at
Thu Jun 11 21:27:19 CEST 2009

On Thu, Jun 11, 2009 at 12:11 PM, Stef Mientki<stef.mientki at> wrote:
> Peter Otten wrote:
>> Stef Mientki wrote:
>>> I packed all sources with zipfile,
>>> but the compression doesn't seem to be very good.
>> If you don't specify the compression, the files are not compressed at all.
>> Just in case you didn't know...
> .. and would you be willing to tell me how I could set the compression ( at
> maximum) ?

If you had glanced @ the docs for 30 seconds:

import zipfile
z = zipfile.ZipFile(dest_file, "w", zipfile.ZIP_DEFLATED)


More information about the Python-list mailing list