skillfed

pyminizip

A minizip wrapper - To create a password encrypted zip file in python.

pyminizip v0.2.6 427.9K downloads/30d#6,747 on PyPI105
Permissive license DORMANT released

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 pyminizip

uv

uv add pyminizip

poetry

poetry add pyminizip

Installing 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

Development Status :: 3 - AlphaEnvironment :: Other EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: zlib/libpng LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Archiving :: Compression

Tags

password protected zip filesencrypted zip creation pythonminizip wrapperzip compression with passwordcreate encrypted archives
compressionencryptionwindows-compatible

More Python Modules packages