Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/milkcocoa0902/cocoazip
this is a simple ZIP archiver using python
https://github.com/milkcocoa0902/cocoazip
pyminizip python
Last synced: about 1 month ago
JSON representation
this is a simple ZIP archiver using python
- Host: GitHub
- URL: https://github.com/milkcocoa0902/cocoazip
- Owner: milkcocoa0902
- Created: 2020-12-18T06:46:53.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-23T05:40:58.000Z (about 4 years ago)
- Last Synced: 2023-11-23T16:25:26.883Z (about 1 year ago)
- Topics: pyminizip, python
- Language: Python
- Homepage:
- Size: 5.14 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## CocoaZip
Simple zip archiver with or without password## Dependency
- Python 3.4 or later
- pyminizip
- depends on zlib## CommandLine Options
|option|param|desc|
|---|---|---|
|-d, --folder|folder [folder folder....]|Add Folder to Archive. Folder structure is kept|
|-f, --file|file [file file....]|Add File to Archive. Put on root in archive|
|-g, --gen_password|None|Generate password(length = 12)|
|-o, --output|path|Archive name. if default, Archive.zip is generated on current folder|
|-p, --password|password|Encrypt archive using specified password if you need. if use --gen_password, this option is override|## Use
### case : zipping SINGLE file
```
$ python main.py -- file nyan.txt --output nyan.zipOutput:
nyan.zip/
└ nyan.txt
```### case : zipping MULTIPLE files
```
$ python main.py --file nyan.txt myon.txt --output nyan.zipOutput:
nyan.zip/
┝ nyan.txt
└ myon.txt
```### case : zipping SINGLE folder
```
$ python main.py --folder nyan --output nyan.zipInput:
nyan/
┝ nyan.txt
└ myon.txtOutput:
nyan.zip/
└ nyan/
┝ nyan.txt
└ myon.txt
```### case : zipping MULTIPLE folder
```
$ python main.py --folder nyan myon --output nyan.zipInput:
nyan/
└ nyan.txt
myon/
└ myon.txtOutput:
nyan.zip/
┝ nyan/
| └ nyan.txt
└ myon/
└ myon.txt
```### case : zipping file and folder
```
$ python main.py --file nyan.txt --folder myon --output nyan.zipInput:
nyan.txt
myon/
└ myon.txtOutput:
nyan.zip/
┝ nyan.txt
└ myon/
└ myon.txt```