MCPcopy Index your code
hub / github.com/auto-Dog/delete_when_unzip

github.com/auto-Dog/delete_when_unzip @v3.5.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.5.3 ↗ · + Follow
174 symbols 358 edges 10 files 44 documented · 25% updated 20d agov3.5.3 · 2025-05-22★ 902 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Delete When Unzip ——边解压边删除的解压工具


Usage

pip install -r requirements.txt
python delete_when_unzip.py filepath chunk_size(byte) password(optional)   # 1 zip file, support zip
python delete_when_unzip_rar.py filepath chunk_size(byte) password(optional)   # 1 zip file, support rar, etc.

# when unzip segmented ones (multi-volume archives)
python delete_when_unzip_multi.py filepath(name of the main volume, *.zip) chunk_size(byte) password(optional)   # segmented zip files,  support zip
python delete_when_unzip_rar_multi.py filepath(name of the main volume, *.zip) chunk_size(byte) password(optional) # segmented zip files, support rar, etc.

Visualize interface:

python app.py

对于大型游戏压缩文件解压需要翻倍空间的情况,这是一个值得拥有的工具. 可以边解压便删除完成部分
GOODNEWS FOR GAMERS! Big ZIP/RAR files can be unzipped under limited disk space,no need for doubled space. It deletes used parts when uncompressing archive.

  • 通常,下载并解压100G的游戏压缩文件需要至少200G的空间,对硬盘空间有限的用户及其不友好
  • Usually, a 100G game requires at least 200G disk space when download and unzip, which is bad for users with limited space

  • 本工具利用流式解压库stream_unzip,将本地压缩文件按顺序流式读取到内存,每次读取固定大小的块并解压。在解压过一部分块后,立即删除原压缩文件的块,因此解压过程中对硬盘的占用将远远小于压缩文件的2倍。NEW: 使用libarchive库,自行构建了文件流读取器,支持zip,rar,tar等。利用unrar cli工具可以高效解压并删除分卷rar(windows下可用)

  • The program imports stream_unzip and sees local ZIP file as a stream. For each iteration it reads a chunk into memory then apply unzip algorithm. After 'unzip a chunk', it deteles the in original ZIP file, thus keeps a low usage of disk space(at least you donnot need doubled space to unzip) NEW: use libarchive library with custome file streamer. Now support zip,rar,tar.gz files. For Windows User a unrar CLI interface is efficiently used for rar volumes。

  • 支持单文件和分段zip,RAR文件(大多游戏资源文件形式,如原神)边解压边删除。当前支持zip,rar类型文件

  • Support both single zip and segmented zip/RAR, both can be deleted when unzip. RAR is also supported now!

  • 注意:边解边删有中途解压失败的风险,失败可能导致压缩包损坏

  • ATTENTION: If error occurs when unzip&delete, the archive might be damaged.

Core symbols most depended-on inside this repo

robust_basename_split
called by 5
robust_split.py
get_multi_filecounts
called by 4
app.py
end_process
called by 3
app.py
remove_one_chunk
called by 2
delete_when_unzip_cli.py
_read_next_chunk
called by 2
delete_when_unzip_rar.py
remove_one_chunk
called by 2
delete_when_unzip_rar_multi.py
_read_next_chunk
called by 2
delete_when_unzip_rar_multi.py
thread_it
called by 2
app.py

Shape

Function 153
Method 16
Class 5

Languages

C72%
Python25%
C++3%

Modules by API surface

boosting/weak_decrypt.c126 symbols
delete_when_unzip_rar_multi.py11 symbols
delete_when_unzip_rar.py11 symbols
app.py11 symbols
boosting/zipcrypto_decrypt.cpp5 symbols
delete_when_unzip_multi.py3 symbols
delete_when_unzip_cli.py3 symbols
delete_when_unzip.py3 symbols
robust_split.py1 symbols

For agents

$ claude mcp add delete_when_unzip \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact