Registry / serialization / zipstream

zipstream

JSON →
library1.1.4pypypi✓ verified 80d ago

Zipfile generator that allows streaming zip file creation with iterators, suitable for large files. Current version 1.1.4, released Oct 2020. Maintenance mode.

pip install zipstream
INSTALL
IMPORT
SIG · ZIPSTREAM
Z
zipstream
serializationpythonv1.1.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ZipFile
from zipstream import ZipFile
from zipstream import ZipStream

Create a zip from a file and iterate chunks.

from zipstream import ZipStream z = ZipStream() z.write('/path/to/file.txt') with open('output.zip', 'wb') as f: for chunk in z: f.write(chunk)
Debug
Known issues
deprecatedZipStream is in maintenance mode with no active development. Consider using zipfile (standard library) for in-memory zips or streamingzip for large streaming.
fix
Migrate to zipfile or streamingzip if possible.
affects: >=1.0.0
gotchaZipStream is not thread-safe. Do not share a ZipStream instance across threads.
fix
Create separate ZipStream instances per thread.
affects: all
breakingIn v1.1.2, PointerIO.seek() was removed, making the stream non-seekable. Code that relied on .seek() will break.
fix
Do not call .seek() on the output of ZipStream. Accumulate data if seeking is required.
affects: >=1.1.2
Upgrade
Version history
1.1.4latest on PyPI · released May 6, 2016
Audit
Dependencies

No dependency data recorded yet.

Agent activity
49 hits · last 30 days
node
40
OpenAI (training)
1
Resources
zipstream — pip install zipstream · libregistry