file-split-kit
将大文件按固定大小拆分,并根据 JSON 清单逐字节还原。校验涵盖每个分块和完整文件的大小及 SHA-256。
命令行
file-split-kit split archive.bin
file-split-kit verify archive.bin.parts
file-split-kit merge archive.bin.parts --output archive.restored.bin
split 默认每块最多 20 MiB,在原文件旁生成 <原文件名>.parts/,内含 manifest.json 和分块。用 --chunk-size BYTES 调整上限,或用 --output-dir PATH 指定分块目录。
verify 只做校验。merge 默认在分块目录同级以原文件名还原,也可用 --output PATH 指定目标。split 和 merge 会自动创建缺失的父目录,覆盖已有结果需显式指定 --overwrite。
Python API
from file_split_kit import merge, split, verify
parts_dir = split("archive.bin")
verify(parts_dir)
restored = merge(parts_dir, "archive.restored.bin")
split 和 merge 返回输出路径。清单或分块校验失败时抛出 file_split_kit.IntegrityError。
Metadata
Release files for file-split-kit 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| file_split_kit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for file_split_kit-0.1.0-py3-none-any.whl |
Release files / file_split_kit-0.1.0-py3-none-any.whl
| Download URL | file_split_kit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e22ad056e9dd6d0075efe0a1689da5e66b16c085c1cb9b02f5b6ae100a92c81
|
|
BLAKE2b-256 checksum How to use checksums |
f518c0c9cc0684b86da5b6f8f12cbdc5007d92d33ca529f55b2d06f821127c9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.16
|
Security for file-split-kit 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.