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 details)

Uploaded Source

File details

Details for the file pyziper-0.3.tar.gz.

File metadata

  • Download URL: pyziper-0.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pyziper-0.3.tar.gz
Algorithm Hash digest
SHA256 ab5d146728963cf6740dccfc417de6f3f4f70a35841b6c5f8e643f8d37c78a3f
MD5 760ea727d1377d2fe6d425f082a9b840
BLAKE2b-256 37b9689d8e7b4d0a7f6a33d3a298cb5dd09506ab6312465c56ab5e659bce83a7

See more details on using hashes here.

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