Skip to content

rudymohammadbali/ArchiveTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

ArchiveTool

Create and extract archive files using shutil and py7zr.

Example

from archive_tool import make_archive, extract_archive

def success_callback(msg: str):
    print(msg)


def failure_callback(msg: str):
    print(msg)

# Create
make_archive("path/to/input/dir", "path/to/output/dir", "zip", success_callback, failure_callback)

# Extract
extract_archive("path/to/archive/file", "path/to/output/dir", success_callback, failure_callback)

Requirements

pip install py7zr==0.22.0

Support

If you'd like to support my ongoing efforts in sharing fantastic open-source projects, you can contribute by making a donation via PayPal.

About

Create and extract archive files using shutil and py7zr.

Topics

Resources

License

Stars

Watchers

Forks

Languages