Skip to main content

Backport of zipfile Python 3.9 to Python 2.7 with some enhancements

Project description

[![PyPI](https://img.shields.io/pypi/v/zipfile39)](https://pypi.org/project/zipfile39/)

## zipfile39

  • Backport of zipfile Python 3.9 (especially caae717) to older Python including Python 2.7.
    • This means Python 2.7 can use zf.open(name, ‘w’).

  • Uses backports.lzma for ZIP_LZMA (method 14) Python2 handler.

  • Introduces ZIP_DEFLATED64 (method 9), ZIP_ZSTANDARD(method 93), ZIP_XZ (method 95) and ZIP_PPMD (method 98) handlers.
    • ZIP_ZSTANDARD Python2 uses zstandard 0.14.1 (the last compatible version).

    • Due to bindings availability, DEFLATED64 is Python3 only.

  • If isal is installed:
    • crc32 and inflation are accelerated automatically.

    • compresslevel -1, -2 and -3 are available, which correspond to isal compression level 1, 2 and 3.

  • Installation requisites:
    • pathlib2 (Python2 only)

    • contextlib2 (Python2 only)

  • Optional requisites:
    • backports.lzma (Python2 only)

    • zstandard

    • isal
      • Python2 need python -m pip install git+https://github.com/cielavenir/python-isal-py2@0.11.0-py2
        • macOS need python -m pip install git+https://github.com/cielavenir/python-isal-py2@0.11.0-py2_mac

    • pyppmd
      • Python2 need python -m pip install git+https://github.com/cielavenir/pyppmd@py2

  • Optional requisites (only available for Python3):
    • zipfile_deflate64

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zipfile39-0.0.3.tar.gz (27.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page