pyminizip
A minizip wrapper - To create a password encrypted zip file in python.
What it is and what it does
pyminizip is a thin Python wrapper around the minizip C library that lets you create password-encrypted ZIP archives and extract them, with explicit support for Windows compatibility. It exposes three functions: compress() for single files, compress_multiple() for batches with optional progress callbacks, and uncompress() for extraction. The package has no runtime Python dependencies but requires the zlib system library to be installed before pip install will succeed.
The package is classified as Alpha and has been dormant since late 2023, with its last release in December 2021. It supports both Python 2 and Python 3 according to its classifiers, though the exact version support is unspecified. The lack of recent maintenance combined with two known security vulnerabilities means you should evaluate whether the security posture is acceptable for your use case.
Use it for:
- Encrypt sensitive files with a password before distributing them to Windows users who need to extract them locally.
- Batch-compress multiple files into a single password-protected archive with progress tracking during the operation.
- Create password-protected backups of configuration or data files that need to be extracted on Windows systems.
- Add password protection to ZIP files in a Python application without requiring external command-line tools.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Creates password-encrypted ZIP files that can be extracted on Windows, wrapping the minizip C library for compression and decompression with optional password protection.
Yes-with-conditions. The package does what it claims, but install friction is real (zlib system dependency required), maintenance is dormant (no updates since 2023), and two security vulnerabilities are flagged. Install only if you need Windows-compatible encrypted ZIPs and can verify the vulnerabilities do not affect your threat model; consider alternatives if you need active maintenance.
Install
pyminizip on PyPI
pip
pip install pyminizipuv
uv add pyminizippoetry
poetry add pyminizipInstalling pyminizip
Before you install
High install friction: requires zlib system library (apt-get on Linux, brew on macOS, xcode-select on macOS). Package is dormant—last release December 2021, no commits since September 2023—so dependency issues or platform-specific build failures are unlikely to be addressed.
License in practice
Permissive zlib/libpng license; no restrictions on use or redistribution in proprietary or open-source projects.
Quickstart
pip install pyminizip
import pyminizip
pyminizip.compress('/path/to/file.txt', '', '/path/to/output.zip', 'mypassword', 5)
pyminizip.uncompress('/path/to/output.zip', 'mypassword', '/extract/here', 0)
zlib system library must be installed before pip install (apt-get install zlib on Linux, brew install zlib on macOS, xcode-select --install on macOS).
Verify before relying
- Whether the package still builds cleanly against current zlib versions on modern Python versions.
- Current status of the two known vulnerabilities (GHSA-mq29-j5xf-cjwr, PYSEC-2026-501) and their severity.
- Whether Windows extraction compatibility claim still holds for modern Windows versions.
- Exact Python version support, as classifiers indicate Python 2 and 3 but requires_python is unspecified.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | dormant — 1,697 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 427,873/month — #6,747 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | 2 — GHSA-mq29-j5xf-cjwr, PYSEC-2026-501 |
Evidence: pyminizip-0.2.6.tar.gz
Keywords: zip, file, compress, password, encryption
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pyzipperpyzipper replaces Python's standard zipfile…
permissive · top 5,000 on PyPI
zipfile-deflate64Enables extraction of Deflate64-compressed ZIP…
permissive · top 5,000 on PyPI
zip-filesProvides command-line tools to create zip files…
permissive · top 15,000 on PyPI
cartCaRT is a file format and Python library for…
permissive · top 15,000 on PyPI
zipfile-zstdExtends Python's standard zipfile module to…
permissive · top 5,000 on PyPI
pyppmdCompresses and decompresses data using the PPMd…
copyleft · top 5,000 on PyPI
python-lzfProvides Python bindings to the liblzf…
permissive · top 15,000 on PyPI
gzip-streamWraps streams to compress data on-the-fly using…
permissive · top 15,000 on PyPI
xpress9Xpress9 is a Python wrapper for Microsoft's…
permissive · top 15,000 on PyPI
pysmbpysmb implements the SMB/CIFS protocol to let…
permissive · top 5,000 on PyPI