{"id":13825620,"url":"https://github.com/uktrade/stream-zip","last_synced_at":"2026-02-04T08:15:18.914Z","repository":{"id":45052909,"uuid":"442695385","full_name":"uktrade/stream-zip","owner":"uktrade","description":"Python function to construct a ZIP archive on the fly","archived":false,"fork":false,"pushed_at":"2024-09-28T12:17:20.000Z","size":968,"stargazers_count":113,"open_issues_count":3,"forks_count":9,"subscribers_count":30,"default_branch":"main","last_synced_at":"2024-11-17T13:50:14.796Z","etag":null,"topics":["data-infrastructure","diapp","zip"],"latest_commit_sha":null,"homepage":"https://stream-zip.docs.trade.gov.uk/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uktrade.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-29T07:31:26.000Z","updated_at":"2024-11-12T20:47:01.000Z","dependencies_parsed_at":"2024-01-03T17:27:53.613Z","dependency_job_id":"685a99bf-eb74-4c23-9d9d-73d06729f9e9","html_url":"https://github.com/uktrade/stream-zip","commit_stats":{"total_commits":299,"total_committers":1,"mean_commits":299.0,"dds":0.0,"last_synced_commit":"499961ba8a6d0173494211bb4a41604b27721710"},"previous_names":[],"tags_count":83,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uktrade%2Fstream-zip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uktrade%2Fstream-zip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uktrade%2Fstream-zip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uktrade%2Fstream-zip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uktrade","download_url":"https://codeload.github.com/uktrade/stream-zip/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225470631,"owners_count":17479366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-infrastructure","diapp","zip"],"created_at":"2024-08-04T09:01:24.335Z","updated_at":"2026-02-04T08:15:13.861Z","avatar_url":"https://github.com/uktrade.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\u003c!-- --8\u003c-- [start:intro] --\u003e\n# stream-zip\n\n[![Debian (unstable) package](https://img.shields.io/debian/v/python3-stream-zip/sid?label=Debian%20%28unstable%29)](https://packages.debian.org/sid/python3-stream-zip) [![conda-forge package](https://img.shields.io/conda/v/conda-forge/stream-zip?label=conda-forge\u0026color=%234c1)](https://anaconda.org/conda-forge/stream-zip) [![PyPI package](https://img.shields.io/pypi/v/stream-zip?label=PyPI%20package\u0026color=%234c1)](https://pypi.org/project/stream-zip/) [![Test suite](https://img.shields.io/github/actions/workflow/status/uktrade/stream-zip/test.yml?label=Test%20suite)](https://github.com/uktrade/stream-zip/actions/workflows/test.yml) [![Code coverage](https://img.shields.io/codecov/c/github/uktrade/stream-zip?label=Code%20coverage)](https://app.codecov.io/gh/uktrade/stream-zip)\n\nPython function to construct a ZIP archive on the fly - without having to store the entire ZIP in memory or disk. This is useful in memory-constrained environments, or when you would like to start returning compressed data before you've even retrieved all the uncompressed data. Generating ZIPs on-demand in a web server is a typical use case for stream-zip.\n\nOffers similar functionality to [zipfly](https://github.com/BuzonIO/zipfly), but with a different API, and does not use Python's zipfile module under the hood. Creates both Zip32/2.0/Legacy and Zip64 files.\n\u003c!-- --8\u003c-- [end:intro] --\u003e\n\nTo unZIP files on the fly try [stream-unzip](https://github.com/uktrade/stream-unzip).\n\n\u003c!-- --8\u003c-- [start:features] --\u003e\n## Features\n\nIn addition to being memory efficient (with some [limitations](https://stream-zip.docs.trade.gov.uk/get-started/#limitations)) stream-zip:\n\n- Constructs ZIP files that can be stream unzipped, for example by [stream-unzip](https://stream-unzip.docs.trade.gov.uk/)\n\n- Can construct Zip64 ZIP files. Zip64 ZIP files allow sizes far beyond the approximate 4GiB limit of the original ZIP format\n\n- Can construct ZIP files that contain symbolic links\n\n- Can construct ZIP files that contain directories, including empty directories\n\n- Can construct password protected / AES-256 encrypted ZIP files adhering to the [WinZip AE-2 specification](https://www.winzip.com/en/support/aes-encryption/).\n\n- Allows the specification of permissions on the member files and directories (although not all clients respect them)\n\n- By default stores modification time as an extended timestamp. An extended timestamp is a more accurate timestamp than the original ZIP format allows\n\n- Provides an async interface (that uses threads under the hood)\n\n\u003c!-- --8\u003c-- [end:features] --\u003e\n\n---\n\nVisit the [stream-zip documentation](https://stream-zip.docs.trade.gov.uk/) for usage instructions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuktrade%2Fstream-zip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuktrade%2Fstream-zip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuktrade%2Fstream-zip/lists"}