Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
/ pyminizip Public archive
forked from smihica/pyminizip

To create a password encrypted zip file in python.

License

Notifications You must be signed in to change notification settings

bjandras/pyminizip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 zlib

    linux:
    $ sudo apt-get install zlib
    mac:
    $ sudo port install zlib

install pyminizip

    $ pip install pyminizip

----------------------------------------------------------------------------

Provides two functions.
==============================

pyminizip.compress("/srcfile/path.txt", "/distfile/path.zip", "password", int(compress_level))

  Args:
  1. src file path (string)
  2. dst file path (string)
  3. password (string) or None (to create no-password zip)
  4. 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'], "file.zip", "1233", 4, progress)
  Args:
  1. src file LIST path (list)
  2. dst file path (string)
  3. password (string) or None (to create no-password zip)
  4. compress_level(int) between 1 to 9, 1 (more fast)  <---> 9 (more compress)
  5. 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


==============================

About

To create a password encrypted zip file in python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 67.8%
  • Assembly 8.3%
  • Ada 5.3%
  • HTML 5.1%
  • C++ 4.0%
  • Pascal 3.6%
  • Other 5.9%