From 176c20d861f22950a2d86ee91cb5f2468643caf8 Mon Sep 17 00:00:00 2001 From: sandes Date: Sun, 17 May 2020 23:41:24 -0300 Subject: [PATCH 1/3] enabled long description content type of markdown --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index aedd61f..b9325f9 100644 --- a/setup.py +++ b/setup.py @@ -23,9 +23,9 @@ name='zipfly', packages=['zipfly'], description='ZipFly', - version='2.1.2', + version='3.0.1', url='http://github.com/buzonIO/zipfly', - download_url = 'https://github.com/BuzonIO/zipfly/archive/v2.1.2.tar.gz', + download_url = 'https://github.com/BuzonIO/zipfly/archive/v3.0.1.tar.gz', author='Buzon', long_description=open('README.md').read(), long_description_content_type='text/markdown', From fe3dc6436da976b7e924057ff15abe3ec32cb15c Mon Sep 17 00:00:00 2001 From: sandes Date: Sun, 17 May 2020 23:41:49 -0300 Subject: [PATCH 2/3] Dumped version; master is now v3.0.1 --- zipfly/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipfly/__init__.py b/zipfly/__init__.py index 4a94d24..ca614c3 100644 --- a/zipfly/__init__.py +++ b/zipfly/__init__.py @@ -2,7 +2,7 @@ from __future__ import unicode_literals, print_function, with_statement -__version__ = '2.1.2' +__version__ = '3.0.1' __author__ = 'Santiago Debus - Grow HQ, Inc.' __license__ = 'MIT' From e7c76926fa4a1072c8ebf2284790e7f173be7b99 Mon Sep 17 00:00:00 2001 From: sandes Date: Sun, 17 May 2020 23:42:20 -0300 Subject: [PATCH 3/3] Package info --- zipfly.egg-info/PKG-INFO | 89 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 85 insertions(+), 4 deletions(-) diff --git a/zipfly.egg-info/PKG-INFO b/zipfly.egg-info/PKG-INFO index 1a16b27..a9b625d 100644 --- a/zipfly.egg-info/PKG-INFO +++ b/zipfly.egg-info/PKG-INFO @@ -1,13 +1,93 @@ -Metadata-Version: 1.1 +Metadata-Version: 2.1 Name: zipfly -Version: 2.0.1 +Version: 2.1.2 Summary: ZipFly Home-page: http://github.com/buzonIO/zipfly Author: Buzon Author-email: support@buzon.io License: UNKNOWN -Download-URL: https://github.com/BuzonIO/zipfly/archive/v2.0.1.tar.gz -Description: UNKNOWN +Download-URL: https://github.com/BuzonIO/zipfly/archive/v2.1.2.tar.gz +Description: [![Downloads](https://pepy.tech/badge/zipfly)](https://pepy.tech/project/zipfly) + + # 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.5+ + + # 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` default attributes: + + - paths: [ ]
+ - mode: w
+ - chunksize: (bytes) 16384
+ - compression: Stored
+ - allowZip64: True
+ - compresslevel: None
+ - storesize: (bytes) 0
+ + +
+ + `paths` list of dictionaries: + + - `fs` (filesystem): `path from your disk`
+ - `n` (name): `final path in zip file` + + + ```python + import zipfly + + paths = [ + { + 'fs': 'home/user/Videos/jupiter.mp4', + 'n': 'movies/jupiter.mp4', + }, + { + 'fs': 'home/user/Documents/mercury.mp4', + 'n': 'movies/mercury.mp4', + }, + ] + + zfly = zipfly.ZipFly( paths = paths ) + + generator = zfly.generator() + print ( generator ) + # + + with open("test.zip", "wb") as f: + for i in generator: + f.write(i) + + + ``` + # Examples + + > Create a ZIP file with size estimation + 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 + + > Streaming multiple files in a zip + The easiest is to use the Django or Flask built-in streaming feature + + + # Maintainer + Santiago Debus (@santiagodebus.com)
+ + Santiago's open-source projects are supported by his Patreon. If you found this project helpful, any monetary contributions to the Patreon are appreciated and will be put to good creative use. + + # License + This library was created by Buzon.io and is released under the MIT. Copyright 2020 Grow HQ, Inc. + Keywords: zipfly,buzon Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable @@ -18,3 +98,4 @@ Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 +Description-Content-Type: text/markdown