[](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_DCLIMPLODED (method 10), 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).
- isal / pyppmd / zipfile_deflate64 Python2 use my own backport.
- If isal is installed:
- crc32 and inflation are accelerated automatically.
- ZIP_DEFLATED compresslevel -10, -11, -12 and -13 are available, which correspond to isal compression level 0, 1, 2 and 3.
- If slz is installed:
- ZIP_DEFLATED compresslevel -21 is available.
- If codecs7z is installed:
- ZIP_DEFLATED/ZIP_BZIP2 compresslevel 11 - 19 are available. Enjoy 7-zip's ultimate compression on Python.
### Requisites
- Installation requisites:
- [pathlib2](https://pypi.org/project/pathlib2/) (Python2 only)
- [contextlib2](https://pypi.org/project/contextlib2/) (Python2 only)
- Optional requisites:
- [backports.lzma](https://pypi.org/project/backports.lzma/) (Python2 only)
- [dclimplode](https://pypi.org/project/dclimplode/)
- [zstandard](https://pypi.org/project/zstandard/) or [pyzstd](https://pypi.org/project/pyzstd/) (Py2 unavailable)
- [isal](https://pypi.org/project/isal/)
- Python2 need `python -m pip install git+https://github.com/cielavenir/python-isal-py2@0.11.0-py2`
- (now this branch support macOS as well)
- Also see https://github.com/cielavenir/python-isal-py2/releases/tag/v0.11.1-py2
- [slz](https://pypi.org/project/slz/)
- [codecs7z](https://pypi.org/project/codecs7z/)
- [pyppmd](https://pypi.org/project/pyppmd/)
- Python2 need `python -m pip install git+https://github.com/cielavenir/pyppmd-py2@py2`
- Also see https://github.com/cielavenir/pyppmd-py2/releases/tag/v0.17.0.1
- [zipfile_deflate64](https://pypi.org/project/zipfile_deflate64/)
- Need 0.2.0 or later.
- Python2 need `python -m pip install git+https://github.com/cielavenir/zipfile-deflate64@py2`
- Also see https://github.com/cielavenir/zipfile-deflate64/releases/tag/v0.2.0.4
- or [inflate64](https://pypi.org/project/inflate64/) (Py2 unavailable)
- Test requisites:
- All optional requisites
- [backports.tempfile](https://pypi.org/project/backports.tempfile/) (Python2 only)
- [funcsigs](https://pypi.org/project/funcsigs/) (Python2 only)
### Wheels
Some dependencies need complex build procedures. For your sake those wheels are published in actions CI.
### Legal
- I'm not sure about the license term when pyppmd / codecs7z / inflate64 is loaded (I'm not lawyer though).
- For pyppmd, note that PPMd code itself is public domain. See https://github.com/miurahr/pyppmd/issues/5#issuecomment-892280467 for detail.
Raw data
{
"_id": null,
"home_page": "https://github.com/cielavenir/zipfile39",
"name": "zipfile39",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "cielavenir",
"author_email": "cielartisan@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/5d/ea/23f2742be2eb840174f04dbed5a47b280f4110b4ad686bc4b5a1545f0a25/zipfile39-0.0.8.0.tar.gz",
"platform": "any",
"description": "[](https://pypi.org/project/zipfile39/)\n\n## zipfile39\n\n- Backport of zipfile Python 3.9 (especially caae717) to older Python including **Python 2.7.**\n - This means Python 2.7 can use `zf.open(name, 'w')`.\n- Uses backports.lzma for ZIP_LZMA (method 14) Python2 handler.\n- Introduces ZIP_DEFLATED64 (method 9), ZIP_DCLIMPLODED (method 10), ZIP_ZSTANDARD(method 93), ZIP_XZ (method 95) and ZIP_PPMD (method 98) handlers.\n - ZIP_ZSTANDARD Python2 uses zstandard 0.14.1 (the last compatible version).\n - isal / pyppmd / zipfile_deflate64 Python2 use my own backport.\n- If isal is installed:\n - crc32 and inflation are accelerated automatically.\n - ZIP_DEFLATED compresslevel -10, -11, -12 and -13 are available, which correspond to isal compression level 0, 1, 2 and 3.\n- If slz is installed:\n - ZIP_DEFLATED compresslevel -21 is available.\n- If codecs7z is installed:\n - ZIP_DEFLATED/ZIP_BZIP2 compresslevel 11 - 19 are available. Enjoy 7-zip's ultimate compression on Python.\n\n### Requisites\n\n- Installation requisites:\n - [pathlib2](https://pypi.org/project/pathlib2/) (Python2 only)\n - [contextlib2](https://pypi.org/project/contextlib2/) (Python2 only)\n- Optional requisites:\n - [backports.lzma](https://pypi.org/project/backports.lzma/) (Python2 only)\n - [dclimplode](https://pypi.org/project/dclimplode/)\n - [zstandard](https://pypi.org/project/zstandard/) or [pyzstd](https://pypi.org/project/pyzstd/) (Py2 unavailable)\n - [isal](https://pypi.org/project/isal/)\n - Python2 need `python -m pip install git+https://github.com/cielavenir/python-isal-py2@0.11.0-py2`\n - (now this branch support macOS as well)\n - Also see https://github.com/cielavenir/python-isal-py2/releases/tag/v0.11.1-py2\n - [slz](https://pypi.org/project/slz/)\n - [codecs7z](https://pypi.org/project/codecs7z/)\n - [pyppmd](https://pypi.org/project/pyppmd/)\n - Python2 need `python -m pip install git+https://github.com/cielavenir/pyppmd-py2@py2`\n - Also see https://github.com/cielavenir/pyppmd-py2/releases/tag/v0.17.0.1\n - [zipfile_deflate64](https://pypi.org/project/zipfile_deflate64/)\n - Need 0.2.0 or later.\n - Python2 need `python -m pip install git+https://github.com/cielavenir/zipfile-deflate64@py2`\n - Also see https://github.com/cielavenir/zipfile-deflate64/releases/tag/v0.2.0.4\n - or [inflate64](https://pypi.org/project/inflate64/) (Py2 unavailable)\n- Test requisites:\n - All optional requisites\n - [backports.tempfile](https://pypi.org/project/backports.tempfile/) (Python2 only)\n - [funcsigs](https://pypi.org/project/funcsigs/) (Python2 only)\n\n### Wheels\n\nSome dependencies need complex build procedures. For your sake those wheels are published in actions CI.\n\n### Legal\n\n- I'm not sure about the license term when pyppmd / codecs7z / inflate64 is loaded (I'm not lawyer though).\n - For pyppmd, note that PPMd code itself is public domain. See https://github.com/miurahr/pyppmd/issues/5#issuecomment-892280467 for detail.",
"bugtrack_url": null,
"license": "PSF",
"summary": "Backport of zipfile Python 3.9 to Python 2.7 with some enhancements",
"version": "0.0.8.0",
"project_urls": {
"Homepage": "https://github.com/cielavenir/zipfile39"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5dea23f2742be2eb840174f04dbed5a47b280f4110b4ad686bc4b5a1545f0a25",
"md5": "4138fd0dc4b208b8a865e92569a7f316",
"sha256": "31dcde3e28a146e8daa93234981e6dd24021ae7c94506a248002a7d1f0ce8192"
},
"downloads": -1,
"filename": "zipfile39-0.0.8.0.tar.gz",
"has_sig": false,
"md5_digest": "4138fd0dc4b208b8a865e92569a7f316",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 426995,
"upload_time": "2023-06-19T03:45:55",
"upload_time_iso_8601": "2023-06-19T03:45:55.853187Z",
"url": "https://files.pythonhosted.org/packages/5d/ea/23f2742be2eb840174f04dbed5a47b280f4110b4ad686bc4b5a1545f0a25/zipfile39-0.0.8.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-19 03:45:55",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cielavenir",
"github_project": "zipfile39",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "zipfile39"
}