ファイルを指定されたサイズで分割し、分割したファイルを復元するツール
Project description
File Size Splitter
ファイルを指定されたサイズで分割し、分割したファイルを復元するツール。
仕様
機能1: ファイル分割
- 指定されたファイルを、指定のサイズで分割する
- 分割サイズの指定方法:数値のみ(例:
10485760)または単位付き(例:10M,1G)の両方に対応 - 単位: K(キロバイト)、M(メガバイト)、G(ギガバイト)
- 分割サイズの指定方法:数値のみ(例:
- 分割されたファイルには連番を付与する(例:
file.001,file.002, ...) - 分割情報を記録したメタデータファイルをJSON形式で生成する
- 出力先ディレクトリを指定可能(指定なしの場合は入力ファイルと同じディレクトリ)
- ストリーミング処理でメモリ効率よく分割する(大きなファイルでも対応)
機能2: 復元用スクリプト生成
- 分割時にBATファイル(Windows用)とPS1ファイル(PowerShell用)の両方を自動生成
- 生成されたスクリプトを使用して、分割されたファイルを元のファイルに復元する
- 復元時のファイル名はメタデータファイルから自動取得
使用方法
ファイル分割
file-size-splitter <入力ファイル> <分割サイズ> [-o 出力ディレクトリ]
例:
# 10MBごとに分割
file-size-splitter largefile.zip 10M
# 出力ディレクトリを指定
file-size-splitter largefile.zip 10M -o output
# バイト数で指定
file-size-splitter largefile.zip 10485760
ファイル復元
分割時に生成された restore.bat または restore.ps1 を実行します。
# BATファイルを使用(Windows)
restore.bat
# PS1ファイルを使用(PowerShell)
powershell -ExecutionPolicy Bypass -File restore.ps1
インストール
pip install file-size-splitter
開発状況
- ファイル分割機能の実装
- BATファイル生成機能の実装
- PS1ファイル生成機能の実装
- テストの作成
- CLIの実装
- PyPI公開
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file file_size_splitter-0.1.1.tar.gz.
File metadata
- Download URL: file_size_splitter-0.1.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bca15db940a6c4a3d77e78fe504870de04a84aeb758fd1b9ee78a2b7ac226569
|
|
| MD5 |
1d5c04c2c84f9094a7116ee85d503a40
|
|
| BLAKE2b-256 |
25ba602862a03e5584b8e5f7d25a3ca301d807cf5809b3dda3c8f1b405a2d147
|
Provenance
The following attestation bundles were made for file_size_splitter-0.1.1.tar.gz:
Publisher:
publish-to-pypi.yml on momoandbanana22/file-size-splitter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
file_size_splitter-0.1.1.tar.gz -
Subject digest:
bca15db940a6c4a3d77e78fe504870de04a84aeb758fd1b9ee78a2b7ac226569 - Sigstore transparency entry: 1280636715
- Sigstore integration time:
-
Permalink:
momoandbanana22/file-size-splitter@deff679447e0920f38c9907f1e76d28b4fd6ebc6 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/momoandbanana22
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@deff679447e0920f38c9907f1e76d28b4fd6ebc6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file file_size_splitter-0.1.1-py3-none-any.whl.
File metadata
- Download URL: file_size_splitter-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf0b1c38a7cd3d8d3581611ca106ebd2963aa3cb38a5c1d248bde34952c4a5f3
|
|
| MD5 |
20058d369cc5bd90b25b0f3368c188f3
|
|
| BLAKE2b-256 |
97965ace6d71d588608fe9f3f2ba3e4872c400524f137413780851380cf87a2c
|
Provenance
The following attestation bundles were made for file_size_splitter-0.1.1-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on momoandbanana22/file-size-splitter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
file_size_splitter-0.1.1-py3-none-any.whl -
Subject digest:
bf0b1c38a7cd3d8d3581611ca106ebd2963aa3cb38a5c1d248bde34952c4a5f3 - Sigstore transparency entry: 1280636718
- Sigstore integration time:
-
Permalink:
momoandbanana22/file-size-splitter@deff679447e0920f38c9907f1e76d28b4fd6ebc6 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/momoandbanana22
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@deff679447e0920f38c9907f1e76d28b4fd6ebc6 -
Trigger Event:
push
-
Statement type: