A tool to zip multiple files into batches.
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| README.md | ||
| zip_multi_file.py | ||
Multi-File Batch Zipper
A fast, parallelized Python tool to split large collections of files into multiple independent .zip archives. Unlike standard split archives, each resulting zip file is a fully valid, standalone archive that can be opened individually.
Features
- Independent Archives: Files are grouped into separate
.zipfiles (default: 1000 files per zip), making them easy to manage and transfer. - High Performance: Uses multi-processing to zip files in parallel across all available CPU cores.
- Dual Interfaces:
- CLI: Ideal for automation and scripting.
- GUI: A user-friendly graphical interface built with
tkinterfor desktop users.
- Recursive Search: Option to include files found within subdirectories.
- Customizable: Set custom batch sizes, output prefixes, and the number of parallel worker processes.
Installation
Ensure you have Python 3 installed on your system. No external dependencies are required as it uses standard libraries (tkinter is usually included with Python).
# On some Linux distributions, you might need to install tkinter separately:
# sudo apt-get install python3-tk
Usage
Command Line Interface (CLI)
python zip_multi_file.py <source_folder> <output_folder> [options]
Arguments:
| Argument | Description | Default |
|---|---|---|
source |
Folder containing files to zip | Required |
output |
Folder where the .zip files will be saved |
Required |
Options:
| Option | Description | Default |
|---|---|---|
--batch-size |
Maximum number of files per zip archive | 1000 |
--recursive |
Include files from subfolders | False |
--prefix |
Filename prefix for output zips | batch |
--workers |
Number of parallel processes to use | CPU Count |
--gui |
Launch the graphical user interface | False |
Example:
python zip_multi_file.py ./my_photos ./archives --batch-size 500 --recursive --prefix photo_batch
Graphical User Interface (GUI)
Launch the interactive window with:
python zip_multi_file.py --gui
Credits & License
- Created with Google Gemma 4 26B
- License: GNU v3