https://github.com/BuzonIO/zipfly#lib Skip to content Sign up * Why GitHub? Features - + Code review + Project management + Integrations + Actions + Packages + Security + Team management + Hosting + Mobile + Customer stories - + Security - * Team * Enterprise * Explore + Explore GitHub - Learn & contribute + Topics + Collections + Trending + Learning Lab + Open source guides Connect with others + Events + Community forum + GitHub Education + GitHub Stars program * Marketplace * Pricing Plans - + Compare plans + Contact Sales + Nonprofit - + Education - [ ] [search-key] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} BuzonIO / zipfly * Watch 4 * Star 212 * Fork 11 Writing large ZIP archives without memory inflation buzon.io MIT License 212 stars 11 forks Star Watch * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights master 8 branches 23 tags Go to file Code Clone HTTPS GitHub CLI [https://github.com/B] Use Git or checkout with SVN using the web URL. [gh repo clone BuzonI] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching Xcode If nothing happens, download Xcode and try again. Go back Launching Visual Studio If nothing happens, download the GitHub extension for Visual Studio and try again. Go back Latest commit @sandes sandes -- chunksize ... 7c11a1e Oct 27, 2020 -- chunksize 7c11a1e Git stats * 442 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time dist new dist May 28, 2020 examples Example; prediction size May 28, 2020 zipfly.egg-info Package info May 28, 2020 zipfly init-- Sep 22, 2020 .travis.yml BufferPredictionSize; xenial May 24, 2020 LICENSE LICENSE Jul 3, 2020 README.md -- chunksize Oct 27, 2020 setup.cfg readme Mar 24, 2020 setup.py version update May 28, 2020 View code README.md Build Status GitHub release (latest by date) Downloads Buzon - ZipFly ZipFly is a zip archive generator based on zipfile.py. It was created by Buzon.io to generate very large ZIP archives for immediate sending out to clients, or for writing large ZIP archives without memory inflation. Requirements Python 3.6+ Install pip3 install zipfly Basic usage, compress on-the-fly during writes Basic use case is compressing on the fly. Some data will be buffered by the zipfile deflater, but memory inflation is going to be very constrained. Data will be written to destination at fairly regular intervals. ZipFly defaults attributes: * paths: [ ] * mode: (write) w * chunksize: (hex) '0x4000' * compression: Stored * allowZip64: True * compresslevel: None * storesize: (bytes) 0 * encode: utf-8 paths list of dictionaries: . fs Should be the path to a file on the filesystem n (Optional) Is the name which it will have within the archive (by default, this will be the same as fs) import zipfly paths = [ { 'fs': '/path/to/large/file' }, ] zfly = zipfly.ZipFly(paths = paths) generator = zfly.generator() print (generator) # with open("large.zip", "wb") as f: for i in generator: f.write(i) Examples Streaming multiple files in a zip with Django or Flask Send forth large files to clients with the most popular frameworks Create paths Easy way to create the array paths from a parent folder. Predict the size of the zip file before creating it Use the BufferPredictionSize to compute the correct size of the resulting archive before creating it. Streaming a large file Efficient way to read a single very large binary file in python Set a comment Your own comment in the zip file Maintainer Santiago Debus (@santiagodebus.com) License This library was created by Buzon.io and is released under the MIT. Copyright 2020 Buzon, Inc. About Writing large ZIP archives without memory inflation buzon.io Topics zipfly zipfile memory-inflation streaming buzon compression python Resources Readme License MIT License Releases 23 v6.0.3 Latest May 28, 2020 + 22 releases Packages 0 No packages published Languages * Python 100.0% * (c) 2021 GitHub, Inc. * Terms * Privacy * Security * Status * Help * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.