skillfed

zipstream

Zipfile generator

zipstream v1.1.4 118.5K downloads/30d#12,115 on PyPI131
License unclear UNKNOWN Abandoned released

What it is and what it does

zipstream is a Python library that generates zip archives on-the-fly as an iterator, yielding chunks of bytes that can be streamed to a client or written to disk. Instead of building the entire archive in memory before sending it, you feed it file paths or byte iterables, and it yields the zip data incrementally. This is particularly useful in web applications where you want to let users download dynamically generated archives of large files without consuming server memory or disk space.

The package wraps Python's standard zipfile.py and supports both file-system paths and in-memory byte iterables as archive contents. It integrates with web frameworks by returning the ZipFile object as an iterator. However, the package has been abandoned since 2016-05-06, with no recent maintenance, making it a legacy choice for new projects.

Use it for:

  • Stream a zip download from a web app without buffering the entire archive in memory
  • Generate a downloadable archive of user-selected files from a file system on demand
  • Combine filesystem files and dynamically generated content into a single streamed zip
  • Serve large file collections as compressed downloads without temporary disk storage

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Generates zip archives as an iterator of byte chunks, enabling streaming downloads of large file collections without storing the complete archive in memory or on disk.

No—not for new projects. The package is abandoned (last release 2016-05-06, no maintenance since 2023-04-25), has an unclear license, and requires source compilation (high install friction). Only consider it if you have legacy code already using it and cannot migrate.

Install

zipstream on PyPI

pip

pip install zipstream

uv

uv add zipstream

poetry

poetry add zipstream

Installing zipstream

Before you install

High install friction due to source-only distribution. Package is abandoned (last release 2016-05-06, no commits since 2023-04-25), raising maintenance concerns for compatibility with current Python versions.

License in practice

License is unclear (marked UNKNOWN with no SPDX identifier). Before installing, verify the actual license terms in the repository to understand your usage rights and obligations.

Quickstart

import zipstream

z = zipstream.ZipFile()
z.write('path/to/files')

with open('zipfile.zip', 'wb') as f:
    for data in z:
        f.write(data)

No runtime dependencies listed; zlib module required for compression support if available

Verify before relying

  • Whether the package works reliably with modern Python versions and current web frameworks
  • Whether zlib compression support is functional and whether optional compression dependencies are documented
  • Whether the abandoned status means critical bugs or security issues remain unfixed

Package facts

License UNKNOWN (unclear)
Python support not specified
Install friction high — source build required
Runtime dependencies none
Maintenance abandoned — 3,752 days since the last release
Last repo commit
First released
Downloads 118,492/month — #12,115 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: zipstream-1.1.4.tar.gz

Keywords: zip, streaming

Tags

streaming zip file generatorzip archive iteratorlarge file download streamingdynamic zip generationmemory-efficient zip creation
streamingzip-archivelegacy

More Utilities packages