Patool

Latest version: v4.0.0

Safety actively analyzes 715032 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 9

2.1.1

* Added support for 7zz and 7zzs programs from the Linux-specific release
of 7-Zip.
Closes: GH bug 145

2.1.0

* Document all functions and modules, and add linting rule for it.
* Remove spaces between function and argument list
Closes: GH bug 100
* Log warnings when subprocesses in utility functions return errors
that are ignored.
* Fix a TypeError when using unar with passwords.
Thanks to Kevin Matt for the patch.
Closes: GH bug 144
* Catch errors when using file --uncompress on system which do not support this.
Closes: GH bug 141

2.0.0

* Require Python >= 3.10
* Use Python logging module instead of print() for diagnostic output.
Diagnostic output of patool will now be printed on stderr instead of
stdout.
This change is the reason for the major version number increase.
Closes: GH bug 37
* Support the jar program to list and extract ZIP archives.
* Do not use the -v option when extracting or testing ZIP archives
with unzip, since -v lists files instead of printing verbose output.
Closes: GH bug 49
* Use the -sae option for 7z to use the provided archive name.
Closes: GH bug 72
* Add error message about temporary directory when extraction fails.
Closes: GH bug 57
* Removed the recompress command.
* Use the new filter option when extracting TAR archives with the tarfile
module in Python >= 3.12 to detect unsafe archive entries.
* Added new command "patool version" to print version information.
* Do not use maximum compression anymore, the default settings should
be good enough for our standard use case.
* Restore original file name for GZIP (.gz) archives.
Closes: GH bug 67

1.15.0

* Added support for LZ4 archives with the lz4 tool.
Closes: GH bug 46
* Use correct registry key flag for 32-bit Python on 64-bit Windows
when detecting 7z.
Closes: GH bug 35
* Fix configuration for listing .bz2 and .bz3 archives.
* Added support for the unar program which can extract a lot of
archive formats, for example ZIP, RAR, 7Z, TAR, GZIP, BZIP2 etc.
Closes: GH bug 39
* Document how to enable bash completion.
Closes: GH bug 127

1.14.1

* Fix wrong option in bzip3, and add tests.
Closes: GH bug 134
* Create non-existing directories when using the --outdir option
with patool extract.
Closes: GH bug 117, 132
* Ensure log output does not have a UnicodeEncodeError
Closes: GH bug 122, 121, 52, 29
* Don't open new console windows for subprocesses on Windows.
Closes: GH bug 85
* Use 7z to extract, list and test CHM (.chm) archives.
Closes: GH bug 78

1.14.0

* Test if tar supports --force-local on macOS systems.
Closes: GH bug 125
* Enable archive header encryption for 7z
Thanks to Michael Serajnik for the initial patch.
Closes: GH bug 102
* Added support for BZIP3 archives with the bzip3 tool.
Closes: GH bug 129
* Fix Windows tar doesn't use --force-local
Thanks to Jack Cherng for the patch.
* Include tests data in the source distribution.
Thanks to Alfred Wingate for the patch.

Page 3 of 9

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.