Hi,
ZipFile doesn't currently support reading files from archives that were created with the reduce/shrink/implode zip compression types.
These are older formats that aren't widely used but are still well supported by other standards such as InfoZip.
Some projects still need to have support for these (mine included), and there's no reason for Python not to support these natively, at least for reading files. I'd like to emphasize that this issue is only aiming at adding "read-only" support - not suggesting to add full support for writing as part of this issue - as this has even less utility today and the need to create such archives is pretty rare.
I don't see this as a full-blown "new feature" but rather enhancement of the existing support, I believe it will make the Python zip support closer to "feature complete".
I already created an implementation that works for me locally but it might not conform to the standards/methodologies used across the python eco-system so I do require some help, but this implementation was tested with many old zip files and so far no issue was found, it seems to work pretty well.
The following zip file contains the c libs necessary for adding the required support (including source code) and a patch for ZipFile.
The implementation can easily be adjusted to integrate into the current ZipFile codebase instead of the patching it.
zipfile_old.zip
Credits go to Jason Summers (https://github.com/jsummers) who created the c libraries used as a baseline (and that do the heavy lifting) for this implementation. The libs in the attached zip above are a slightly modified version of the these with the adjustments required to support ZipFile compressors/decompressors.
Original libs:
https://github.com/jsummers/oldunzip
Cheers!
Hi,
ZipFile doesn't currently support reading files from archives that were created with the reduce/shrink/implode zip compression types.
These are older formats that aren't widely used but are still well supported by other standards such as InfoZip.
Some projects still need to have support for these (mine included), and there's no reason for Python not to support these natively, at least for reading files. I'd like to emphasize that this issue is only aiming at adding "read-only" support - not suggesting to add full support for writing as part of this issue - as this has even less utility today and the need to create such archives is pretty rare.
I don't see this as a full-blown "new feature" but rather enhancement of the existing support, I believe it will make the Python zip support closer to "feature complete".
I already created an implementation that works for me locally but it might not conform to the standards/methodologies used across the python eco-system so I do require some help, but this implementation was tested with many old zip files and so far no issue was found, it seems to work pretty well.
The following zip file contains the c libs necessary for adding the required support (including source code) and a patch for ZipFile.
The implementation can easily be adjusted to integrate into the current ZipFile codebase instead of the patching it.
zipfile_old.zip
Credits go to Jason Summers (https://github.com/jsummers) who created the c libraries used as a baseline (and that do the heavy lifting) for this implementation. The libs in the attached zip above are a slightly modified version of the these with the adjustments required to support ZipFile compressors/decompressors.
Original libs:
https://github.com/jsummers/oldunzip
Cheers!