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
Metadata
Release files for pyziper 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyziper-0.3.tar.gz | 3.7 kB | Details |
Release files / pyziper-0.3.tar.gz
| Download URL | pyziper-0.3.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab5d146728963cf6740dccfc417de6f3f4f70a35841b6c5f8e643f8d37c78a3f
|
|
BLAKE2b-256 checksum How to use checksums |
37b9689d8e7b4d0a7f6a33d3a298cb5dd09506ab6312465c56ab5e659bce83a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10
|