pyminizip
To create a password encrypted zip file in python. And the zip file is able to extract in WINDOWS.
This is a simple Minizip wrapper of python. (http://www.winimage.com/zLibDll/minizip.html)
This software uses zlib. License: zlib/libpng License.
Install
$ pip install pyminizip
Install zlib
# linux
$ sudo apt-get install zlib
# mac
$ xcode-select --install
$ brew install zlib
How to use
This package just provides three functions.
pyminizip.compress("/srcfile/path.txt", "file_path_prefix", "/distfile/path.zip", "password", int(compress_level))
Args:
- src file path (string)
- src file prefix path (string) or None (path to prepend to file)
- dst file path (string)
- password (string) or None (to create no-password zip)
- compress_level(int) between 1 to 9, 1 (more fast) <---> 9 (more compress) or 0 (default)
Return value:
- always returns None
pyminizip.compress_multiple([u'pyminizip.so', 'file2.txt'], [u'/path_for_file1', u'/path_for_file2'], "file.zip", "1233", 4, progress)
Args:
- src file LIST path (list)
- src file LIST prefix path (list) or []
- dst file path (string)
- password (string) or None (to create no-password zip)
- compress_level(int) between 1 to 9, 1 (more fast) <---> 9 (more compress)
- optional function to be called during processing which takes one argument, the count of how many files have been compressed
Return value:
- always returns None
pyminizip.uncompress("/srcfile/path.zip", "password", "/dirtoextract", int(withoutpath))
Args:
- src file path (string)
- password (string) or None (to unzip encrypted archives)
- dir path to extract files or None (to extract in a specific dir or cwd)
- withoutpath (exclude path of extracted)
Return value:
- always returns None
Metadata
Release files for pyminizip 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyminizip-0.2.6.tar.gz | 261.2 kB | Without provenance | Details for pyminizip-0.2.6.tar.gz |
Release files / pyminizip-0.2.6.tar.gz
| Download URL | pyminizip-0.2.6.tar.gz |
|---|---|
| Size | 261.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a954dd2a65fd72c8b827b83fb806fb4f301075a6ec43e207d3345ab15843a7a
|
|
BLAKE2b-256 checksum How to use checksums |
1bb4b5584325a03acfbca05922700ab9195b5875a936dc23960224087088a409
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Security for pyminizip 0.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.