{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/4"}],"enrichment":{"capability":"Generates zip files on-the-fly by streaming data without temporary files or excessive memory, supporting files, bytes, strings, and iterables with optional pre-calculation of final size.","skillfed_tags":["streaming","web-backend","compression"],"use_cases":["Web backend serving user-requested file collections as a single zip download without temporary disk files or high memory overhead","Streaming large directory archives over HTTP with Content-Length and Last-Modified headers for client progress bars and cache validation","Generating zip files on-demand from database records, API responses, or other non-filesystem iterables without buffering to disk","Building archive responses in Flask, FastAPI, or other web frameworks where memory and latency are constraints","Creating zip manifests with embedded metadata by generating the stream, pausing to add a manifest file, then finalizing"],"what_it_does":"zipstream-ng is a Python library for generating zip files on-the-fly as a stream, rather than building the entire archive in memory or writing to disk first. It reads files and data iteratively, yielding compressed chunks as they are requested, which makes it ideal for web backends that need to serve zipped downloads without consuming significant memory or disk space. The library supports adding files from filesystem paths, raw bytes, strings, and any iterable object, and can optionally calculate the total size of the resulting zip before generation begins\u2014useful for setting HTTP Content-Length headers.\n\nThe package has no external dependencies and is threadsafe, meaning multiple threads can safely add data to the same stream concurrently. It automatically uses Zip64 extensions only when needed, tracks the modification date of the most recent file for Last-Modified headers, and includes a built-in HTTP server module that can serve directories as downloadable zips. The library is performant and memory-efficient: typical peak memory usage stays below 20MB even when zipping terabytes of files.","worth_installing":"Yes. Low install friction, no dependencies, active maintenance, copyleft license (acceptable for most use cases), and zero known vulnerabilities. Install if you need to stream zips efficiently in a web backend or generate archives on-the-fly from iterables. Verify license compatibility if distributing in closed-source software."},"id":"zipstream-ng","links":{"html":"https://skillfed.io/packages/zipstream-ng","md":"https://skillfed.io/packages/zipstream-ng.md","pypi":"https://pypi.org/project/zipstream-ng/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-17","license_spdx":"LGPL-3.0-only","license_treatment":"copyleft","name":"zipstream-ng","python_support":"supports_current","summary":"A modern and easy to use streamable zip file generator"},"popularity":{"monthly_downloads":1083846,"position":4391,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.9.2"}
