Skip to content

Allow pre-compressed data to be written into zip files via the zipfile module. #113924

Open
@gpshead

Description

@gpshead

Feature or enhancement

Proposal:

Scenario

You have a larger system generating zip files, often they each contain many of the same files, and you've got a big parallel build setup. All of these would benefit from pre-computing, distributing, and caching the compression of individual members going into the zip file.

Proposal

On zipfile.ZipFile write writestr and open(..., mode="w") methods, add arguments allowing the already compressed data to be provided as-is so that the zipfile modules internal compression step is skipped on those.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions