Skip to content

hackifiery/EasyZip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyZip

EasyZip is a lightweight version of Zipfile that simplifies working with zip files.

Installation

  1. Clone the Repository:

    Clone the easyzip GitHub repository to your local machine using Git:

    git clone https://github.com/hackifiery/easyzip.git
  2. Install the package:

    Navigate to the project directory and use pip to install the package locally:

    cd easyzip
    pip install .

Usage

To use the module you will first have to import it:

from easyzip import EasyZip

Creating a zip file:

with EasyZip('example.zip') as ez:
    ez.add_file('file1.txt')
    ez.add_directory('my_directory')

Extracting zip content:

with EasyZip('example.zip') as ez:
    ez.extract_to('extracted_directory')

Also refer to the usage_example.py file.

About

Lightweight version of Python Zipfile

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages