Skip to main content

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

  1. go https://github.com/GGN-2015/cuffers/releases and download a .whl file.
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cuffers-0.0.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

cuffers-0.0.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

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

Hashes for cuffers-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4272e1ce2c4ffb31586d4d834286adbf5f4b20f570dd779be1284c2b06df2809
MD5 06fb20516054e5fc11295c4bea66c829
BLAKE2b-256 ccdb663ebbe00fe4f6e2504c50f3a5e4b40a157357bd6f64258ebf481983ddbc

See more details on using hashes here.

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

Hashes for cuffers-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4544d54b9239236a09bddc440ff95bee0a690bde6d1e7a42a7e02a8b6607109d
MD5 4b7842c874bbb8ec182f0d9fcb441e4d
BLAKE2b-256 6055c3bae9d5a9184e5a312d4c4374902b421ae5a94d70b4c2ff212273a518ba

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page