Bug 270750 - [NEW PORT] archivers/py-zipstream-ng: Modern and easy to use streamable zip file generator
Summary: [NEW PORT] archivers/py-zipstream-ng: Modern and easy to use streamable zip f...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Robert Clausecker
URL: https://github.com/pR0Ps/zipstream-ng/
Keywords:
Depends on:
Blocks: 270751
  Show dependency treegraph
 
Reported: 2023-04-10 23:53 UTC by Jesús Daniel Colmenares Oviedo
Modified: 2023-04-30 18:49 UTC (History)
1 user (show)

See Also:


Attachments
py-zipstream-ng-1.5.0.patch (4.21 KB, patch)
2023-04-10 23:53 UTC, Jesús Daniel Colmenares Oviedo
no flags Details | Diff
py-zipstream-ng.1.5.0.patch (4.21 KB, patch)
2023-04-28 11:38 UTC, Jesús Daniel Colmenares Oviedo
DtxdF: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesús Daniel Colmenares Oviedo 2023-04-10 23:53:17 UTC
Created attachment 241406 [details]
py-zipstream-ng-1.5.0.patch

Description:

zipstream-ng is a modern and easy to use streamable zip file
generator. It can package and stream many files and folders on the
fly without needing temporary files or excessive memory.

Includes the ability to calculate the total size of the stream
before any data is actually added (provided no compression is used).
This makes it ideal for use in web applications since the total
size can be used to set the `Content-Length` header without having
to generate the entire file first.

Features:
 * Generates zip data on the fly as it's requested.
 * Can calculate the total size of the resulting zip file before generation even
   begins.
 * Flexible API: Typical use cases are simple, complicated ones are possible.
 * Supports zipping data from files, bytes, strings, and any other iterable
   objects.
 * Threadsafe: Won't mangle data if multiple threads concurrently add/read data
   to/from the same stream.
 * Includes a clone of Python's `http.server` module with zip support added.
   Try `python -m zipstream.server`.
 * Automatically uses Zip64 extensions, but only if they are required.
 * No external dependencies.

www: https://github.com/pR0Ps/zipstream-ng/

QA:

* portlint: OK (looks fine.)
* testport: OK (poudriere: 13.1-RELEASE, amd64)
Comment 1 Jesús Daniel Colmenares Oviedo 2023-04-28 11:38:33 UTC
Created attachment 241819 [details]
py-zipstream-ng.1.5.0.patch

Description:

zipstream-ng is a modern and easy to use streamable zip file
generator. It can package and stream many files and folders on the
fly without needing temporary files or excessive memory.

Includes the ability to calculate the total size of the stream
before any data is actually added (provided no compression is used).
This makes it ideal for use in web applications since the total
size can be used to set the `Content-Length` header without having
to generate the entire file first.

Features:
 * Generates zip data on the fly as it's requested.
 * Can calculate the total size of the resulting zip file before generation even
   begins.
 * Flexible API: Typical use cases are simple, complicated ones are possible.
 * Supports zipping data from files, bytes, strings, and any other iterable
   objects.
 * Threadsafe: Won't mangle data if multiple threads concurrently add/read data
   to/from the same stream.
 * Includes a clone of Python's `http.server` module with zip support added.
   Try `python -m zipstream.server`.
 * Automatically uses Zip64 extensions, but only if they are required.
 * No external dependencies.

www: https://github.com/pR0Ps/zipstream-ng/

QA:

* portlint: OK (looks fine.)
* testport: OK (poudriere: 13.1-RELEASE, amd64)
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-04-30 18:44:12 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4dc6444322ea7e531a3c2bfbc87911295daff4ec

commit 4dc6444322ea7e531a3c2bfbc87911295daff4ec
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2023-04-10 23:33:30 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-04-30 18:41:44 +0000

    archivers/py-zipstream-ng: New port: streamable zip file generator

    zipstream-ng is a modern and easy to use streamable zip file
    generator. It can package and stream many files and folders on the
    fly without needing temporary files or excessive memory.

    Includes the ability to calculate the total size of the stream
    before any data is actually added (provided no compression is used).
    This makes it ideal for use in web applications since the total
    size can be used to set the `Content-Length` header without having
    to generate the entire file first.

    Features:
     * Generates zip data on the fly as it's requested.
     * Can calculate the total size of the resulting zip file before generation even
       begins.
     * Flexible API: Typical use cases are simple, complicated ones are possible.
     * Supports zipping data from files, bytes, strings, and any other iterable
       objects.
     * Threadsafe: Won't mangle data if multiple threads concurrently add/read data
       to/from the same stream.
     * Includes a clone of Python's `http.server` module with zip support added.
       Try `python -m zipstream.server`.
     * Automatically uses Zip64 extensions, but only if they are required.
     * No external dependencies.

    WWW: https://github.com/pR0Ps/zipstream-ng/

    PR:             270750

 archivers/Makefile                        |  1 +
 archivers/py-zipstream-ng/Makefile (new)  | 19 +++++++++++++++++++
 archivers/py-zipstream-ng/distinfo (new)  |  3 +++
 archivers/py-zipstream-ng/pkg-descr (new) | 23 +++++++++++++++++++++++
 4 files changed, 46 insertions(+)
Comment 3 Robert Clausecker freebsd_committer freebsd_triage 2023-04-30 18:49:19 UTC
Thank you for your contribution.