Skip to main content

Simple file splitter

Project description

slice - Simple file splitter

[[TOC]]

Overview

Slice is pretty straightforward: it slice your files.

Requirements

This package requires at least Python 3.9 and humanfriendly 10.0 package.

If you want to run tests, Slice needs PyTest 7.0.1

Installation

This package is hosted on PyPi repository.

To install it, run

python -m pip install slice-shukuru --upgrade

Usage

Once installed, just run it with

python -m slice

This program is far from being complicated to use, have a look to CLI help:

usage: slice [-h] [-v] [-V] (-s CHUNK SIZE | -c PARTS COUNT) file

Simple file splitter

positional arguments:
  file                  Path to file you want to be sliced

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Output process on stdout
  -V, --version         Output program version and exit
  -s CHUNK SIZE, --size CHUNK SIZE
                        Numeric or human-readable chunk size value (1024, 16MB, 1GiB, ...)
  -c PARTS COUNT, --count PARTS COUNT
                        Total parts count to slice the file in

TL;DR: -s optional parameter to slice on parts size, -c to slice on part total count.

Actually, there's no option to concatenate parts and "re-build" the original file. You have to use UNIX cat command to do so.

cat *.[0-9] > original_filename

Contribution

Feel free to open a merge request to propose features or an issue if you found a bug. You can also contribute to documentation or tests writing.

License

This program is distributed under BSD 3-Clause License.

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

slice-shukuru-1.0.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slice_shukuru-1.0.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file slice-shukuru-1.0.2.tar.gz.

File metadata

  • Download URL: slice-shukuru-1.0.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for slice-shukuru-1.0.2.tar.gz
Algorithm Hash digest
SHA256 753494296024664e198847ccf109e7395088cfeaa6ad07a6daa83d54a6a19aa4
MD5 e91c0c30c98e4bae466ac1f3a11828b0
BLAKE2b-256 a99893b25040250a9247ba9bd4a0822d32f6b7fef4b51c70402a7a8d1ca9434b

See more details on using hashes here.

File details

Details for the file slice_shukuru-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: slice_shukuru-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for slice_shukuru-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 94f6de90399edc76e8641028d2b274e0abbde32de538363d45ff36a0d6acd29a
MD5 a3d234be0a8b6d382a5d4ace7bdc16cd
BLAKE2b-256 af3ecc95b7c92d6d40cd3b08c544962df70f91b547bb5627e6d25a2bdb4eadb7

See more details on using hashes here.

Supported by

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