EasyZip is a lightweight version of Zipfile that simplifies working with zip files.
-
Clone the Repository:
Clone the
easyzipGitHub repository to your local machine using Git:git clone https://github.com/hackifiery/easyzip.git
-
Install the package:
Navigate to the project directory and use
pipto install the package locally:cd easyzip pip install .
To use the module you will first have to import it:
from easyzip import EasyZipwith EasyZip('example.zip') as ez:
ez.add_file('file1.txt')
ez.add_directory('my_directory')with EasyZip('example.zip') as ez:
ez.extract_to('extracted_directory')Also refer to the usage_example.py file.