Pyminizip is a Python wrapper for the minizip library, designed specifically to create password-encrypted ZIP files. It also provides functionality to uncompress these password-protected archives. The current version is 0.2.6. The project appears to be in maintenance mode with infrequent updates, as its last release was in December 2021.
pip install pyminizipVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to compress a single file into a password-protected ZIP archive and then uncompress it using `pyminizip`.
Install 'Microsoft C++ Build Tools' from Visual Studio's website or via the Visual Studio Installer if on Windows.
Be aware of the project's maintenance status. Consider auditing the codebase for security vulnerabilities or contributing fixes if critical issues arise.
Avoid using non-ASCII characters in file paths for compression or decompression with `pyminizip`, especially on Windows.
Ensure that the `pyminizip` package is built or installed in an environment with a GLIBC version compatible with your deployment target. Building from source in the target environment or using a compatible base image in containers might resolve this.
Use with caution in production environments, and thoroughly test for stability. Be prepared for potential breaking changes or unexpected behavior.
Install 'Microsoft C++ Build Tools' from Visual Studio's website or via the Visual Studio Installer if on Windows.
Ensure the `pyminizip` package is built or installed in an environment with a GLIBC version compatible with your deployment target, often by building from source in the target environment or using a compatible base image in containers.
First, try `pip install pyminizip`. If that fails, check for underlying installation errors like missing C++ build tools (on Windows) or GLIBC compatibility issues (on Linux), as these prevent successful package compilation and installation.
Ensure all five arguments are provided and are of the correct type (strings for paths/password, integer for compression level). When using temporary files, pass the `.name` attribute of the temporary file/directory object as the path. For example, use `tmp.name` instead of `tmp` if `tmp` is a temporary file object.
No dependency data recorded yet.