unzip truncated or corrupt zip files
Project description
justunzip
CLI tool to just unzip a truncated or partially corrupt zipfile
Installation
pip install justunzip
Usage
user@bar:~$ unzip -l test.zip
Archive: test.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of test.zip or
test.zip.zip, and cannot find test.zip.ZIP, period.
user@bar:~$ unzip test.zip
Archive: test.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of test.zip or
test.zip.zip, and cannot find test.zip.ZIP, period.
user@bar:~$ justunzip -l test.zip
Archive: test.zip
Length Name
---------- ----
0 justunzip/build/
0 justunzip/dist/
1062 justunzip/LICENSE
76 justunzip/README.md
823 justunzip/setup.py
0 justunzip/src/
0 justunzip/build/bdist.linux-x86_64/
0 justunzip/build/lib/
0 justunzip/build/lib/justunzip/
0 justunzip/build/lib/justunzip/__init__.py
1936 justunzip/build/lib/justunzip/justunzip.py
2614 justunzip/dist/justunzip-0.0.1-py3.8.egg
user@bar:~$ justunzip test.zip
Archive: test.zip
creating: justunzip/LICENSE
creating: justunzip/README.md
creating: justunzip/setup.py
creating: justunzip/build/lib/justunzip/justunzip.py
WARNING:root:b'justunzip/dist/justunzip-0.0.1-py3.8.egg' is truncated
ERROR:root:error decompressing b'justunzip/dist/justunzip-0.0.1-py3.8.egg'
creating: justunzip/dist/justunzip-0.0.1-py3.8.egg
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
justunzip-0.0.11.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file justunzip-0.0.11.tar.gz
.
File metadata
- Download URL: justunzip-0.0.11.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 352726eed03c2cb0464e4e524a8961194129e57bb2c6b1c12d5e174949b5dea0 |
|
MD5 | 2b8a2319552a7a784f53d417389633dd |
|
BLAKE2b-256 | 29426e3216484309fc19bd8627337ca0d108fcc8c856a7e084167916ea3fa17e |
File details
Details for the file justunzip-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: justunzip-0.0.11-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b48806e56c5ec8e5d38c015c73ca6913a5aa1ce2178663e363d9ec96350eca9 |
|
MD5 | 20a4c5896c20fa87f8ed38eb0f5ca7bd |
|
BLAKE2b-256 | d0fddf4d4afb66ab58225bbd4f22057340742c32397d545336a43ae7fe972baa |