Skip to main content

pyziper a simple cli tools to help you to handle archive file ,like zipping and unzipping

Project description

pyziper

pyziper a simple cli tools to help you to handle archive file ,like zipping and unzipping

installing

install from pip:

pip install patool # this is required and install it globally
pip install pyziper

install from source :

git clone https://github.com/AlphaBeta1906/pyziper.git
cd pyziper

pip install patool
pip install -e . # install it globally so you can use it everywhere in  your machine

usage

zipping/archiving

simple usage to zip a folder:

pyziper zip folder_name zip_name

complete command to zip file(s)/folder(s):

pyziper zip folder_name zip_name --type zip|7z|tar --multi  --output output_dir

by default your folder is archived using standard zip method(.zip) and output zip file will appear in current dir.
there are 2 other types of archive method that are supported by pyziper, that is tar.gz and 7z, you can access them using the -T/--type option,example :

# 7z
pyziper zip folder_name zip_name -T 7z

#tar.gz
pyziper zip folder_name zip_name -T tar

#zip/default

pyziper zip folder_name zip_name -T zip

# or simply
pyziper zip folder_name zip_name

Note : please dont use ../ to zip a file,pyziper only zip files/folder in current diectory or subdirectory of current directory,not files/folders in previouse directory otherwise archive will error when exctracting

you also can spicify output dir by using -O/--output options,example:

pyziper zip folder_name zip_name -T  tar -O 

in version 0.2,--multi/-m was added,and used to add multiple folders or/and files separated by coma into archive,example:

pyziper zip folder1,folder2,file1,file2.... zip_file -T 7z|tar --multi --output output/dir/

Note : default zip(.zip) currently doesnt have support to archive multiple folders or files. it only worked for 7z and tar.gz archive

unziping/extracting

simple usage of unzipping

pyziper unzip zip_name.zip|7z|tar.gz --output output_dir

option in pyziper(current)

option function
--type/-T defining archive type,default is .zip
--multi/-M if it enabled, it will allow you to archive multiple files and/or folders only for 7z and tar type
--output/-O defining output directory for your archived file,default is your current working directory

new feature will be added soon

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyziper-0.3.tar.gz (3.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page