Re:Python – Writing large ZIP archives without memory inflation
by d136o on Sunday November 21, 2021 @02:32AM
(#29294767)
Interesting, for the read (decompression) case I wrote this a while back:
https://github.com/d136o/StreamingUnzip
Basically, if you have a big zip file with many files in it (csvs for example), you can pipe out the decompressed data…
It’s a bit obtuse to use since it calls for the end chunk of a zip archive (it may come from s3 for example).
Edit: Dang it, GPLv3, sorry (vs Apache 2 of your project).
The two previous discussions with comments may offer enough to get you what you need: https://news.ycombinator.com/item?id=23198233 https://news.ycombinator.com/item?id=25616513
Edit 2: https://github.com/kbbdy/zipstream, no license (yet)