{"id":24871,"library":"zipstream","title":"Zipstream","description":"Zipfile generator that allows streaming zip file creation with iterators, suitable for large files. Current version 1.1.4, released Oct 2020. Maintenance mode.","status":"maintenance","version":"1.1.4","language":"python","source_language":"en","source_url":"https://github.com/allanlei/python-zipstream","tags":["zip","streaming","generator","archive"],"install":[{"cmd":"pip install zipstream","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"ZipStream","correct":"from zipstream import ZipStream"}],"quickstart":{"code":"from zipstream import ZipStream\n\nz = ZipStream()\nz.write('/path/to/file.txt')\n\nwith open('output.zip', 'wb') as f:\n    for chunk in z:\n        f.write(chunk)","lang":"python","description":"Create a zip from a file and iterate chunks."},"warnings":[{"fix":"Migrate to zipfile or streamingzip if possible.","message":"ZipStream is in maintenance mode with no active development. Consider using zipfile (standard library) for in-memory zips or streamingzip for large streaming.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Create separate ZipStream instances per thread.","message":"ZipStream is not thread-safe. Do not share a ZipStream instance across threads.","severity":"gotcha","affected_versions":"all"},{"fix":"Do not call .seek() on the output of ZipStream. Accumulate data if seeking is required.","message":"In v1.1.2, PointerIO.seek() was removed, making the stream non-seekable. Code that relied on .seek() will break.","severity":"breaking","affected_versions":">=1.1.2"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from zipstream import ZipStream'","cause":"Wrong import. zipstream exports ZipStream, not zipstream.ZipStream.","error":"AttributeError: module 'zipstream' has no attribute 'ZipStream'"},{"fix":"Provide a valid file path string to z.write(path).","cause":"Passing None as the file path to write().","error":"TypeError: argument should be integer or None, not 'NoneType'"},{"fix":"Set allowZip64=True when creating ZipStream: z = ZipStream(allowZip64=True)","cause":"File larger than 4 GiB without zip64 flag.","error":"ValueError: ZIP64 extensions required but not enabled"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}