Skip to content

Consider supporting deflate64 in zipfile #134334

Open

Description

@thatch

Feature or enhancement

Proposal:

Among the third-party projects that monkeypatch zipfile to support additional compression formats is https://github.com/brianhelba/zipfile-deflate64 with notes at https://en.wikipedia.org/wiki/Deflate#Deflate64,_Enhanced_Deflate about the "proprietary nature"

I wish adding additional formats didn't require monkeypatching, but in the meantime this is one of the ones that files containing it exist in the wild.

@emmatyping

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Activity

  1. added
    stdlibStandard Library Python modules in the Lib/ directory
    on May 20, 2025
  2. emmatyping commented on May 20, 2025

    @emmatyping
    Member

    I chatted with @thatch a bit at the PyConUS sprints this year. Deflate64 is a proprietary compression format, but it is generated by a few tools and dotnet. It's not much better than Deflate, and newer tools should probably use a newer format (i.e. LZMA/Zstandard). The use case is mostly for analyzing existing files.

  3. gpshead commented on May 22, 2025

    @gpshead
    Member

    #113767 seems like it'd be a way for deflate64 PyPI package to add support without the monkeys.

  4. quassy commented on Aug 15, 2025

    @quassy

    inflate64 is available for current Python versions and genereally seems to be more actively maintained than zipfile-deflate64, so it might be a better candidate for deflate64 support.

    As Windows uses deflate64 by default for bigger files / archives I think this compression is much more common than thought.

  5. emmatyping commented on Oct 16, 2025

    @emmatyping
    Member

    As Windows uses deflate64 by default for bigger files / archives I think this compression is much more common than thought.

    Hm, reading online it seems this is used when the zip file becomes >2GB, so this isn't super common but not uncommon either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions