a python module to split a large file into smaller files with multiple processes.
Project description
cuffers
a python module to split a large file into smaller files.
install from github release
- go https://github.com/GGN-2015/cuffers/releases and download a
.whl
file. - use
pip install cuffers-<version>-py3-none-any.whl
to install the package into your local environment.
install from pypi
pip install cuffers
usage
split file into small files (no more than 1MB)
python3 -m cuffers <input_file> <output_folder>
<output_folder>
will be automatically generated when you run this command, and all fractions will be saved in that folder along with a file named summary.<index>.json
.
merge fractions into a whole file
python3 -m cuffers --merge <input_folder>
a merged file will be generated based on the fractions in <input_folder>
and the name
stated in <input_folder>/summary.<index>.json
. the newly generated file will be placed right outside the folder <input_folder>
, and if there has already been a file with the same name, the merge operation will be ignored (and you will get a warning output to stderr).
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
File details
Details for the file cuffers-0.0.2.tar.gz
.
File metadata
- Download URL: cuffers-0.0.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4272e1ce2c4ffb31586d4d834286adbf5f4b20f570dd779be1284c2b06df2809 |
|
MD5 | 06fb20516054e5fc11295c4bea66c829 |
|
BLAKE2b-256 | ccdb663ebbe00fe4f6e2504c50f3a5e4b40a157357bd6f64258ebf481983ddbc |
File details
Details for the file cuffers-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: cuffers-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4544d54b9239236a09bddc440ff95bee0a690bde6d1e7a42a7e02a8b6607109d |
|
MD5 | 4b7842c874bbb8ec182f0d9fcb441e4d |
|
BLAKE2b-256 | 6055c3bae9d5a9184e5a312d4c4374902b421ae5a94d70b4c2ff212273a518ba |