Commandline scripts to split or merge files
Project description
Files Split and Merge
Commandline scripts to split or merge files
Installation
Install using pip:
$ pip install file_split_merge
Usage
file_split_merge
This script is to split or combine or merge the files
--------------------------------------------------------------
Usage: file_split_merge [-h] [-i INPUT] [-s] [-n CHUNK] [-m]\n
optional arguments:
-h, --help show this help message and exit
-i INPUT, --input INPUT
Provide the File that needs to be Split
-s, --split To Split the File
-n CHUNK, --chunk CHUNK
[n]: No. of files to be created
[n]kb : Split the file in nKB size
[n]b : Split the file in nb size
[n]mb : Split the file in nmb size
[n]gb : Split the file in ngb size
-m, --merge Merge the Files
examples :
file_split_merge -s -i first_project.zip -n 5
file_split_merge -s -i first_project.zip -n 5kb
file_split_merge -s -i first_project.zip -n 2gb
file_split_merge -s -i "c:\temp\first_project.zip" -n 5
file_split_merge -m -i first_project.zip
file_split_merge -m -i "c:\temp\\first_project.zip"
----------------------------------------------------------------
The split also creates an additional file as .CRC. and then is compared while merging to check if merging is successful Note : This is not a CRC check, but does good to ensure file is merged properly
Examples :
python file_split_merge -s -i "New folder\first_project.zip" -n 700kb
output
Splitting the File Now
Total file Size : 8162474
Splitting into 12 files of 700kb size
Creating New folder\first_project.zip-1.ros
Creating New folder\first_project.zip-2.ros
Creating New folder\first_project.zip-3.ros
Creating New folder\first_project.zip-4.ros
Creating New folder\first_project.zip-5.ros
Creating New folder\first_project.zip-6.ros
Creating New folder\first_project.zip-7.ros
Creating New folder\first_project.zip-8.ros
Creating New folder\first_project.zip-9.ros
Creating New folder\first_project.zip-10.ros
Creating New folder\first_project.zip-11.ros
Creating New folder\first_project.zip-12.ros
Creating the check file : New folder\first_project.zip-CRC.ros
File split successfully
python file_split_merge -m -i "New folder\first_project.zip"
Merging the file to New folder\first_project.zip
File Already Exist. Please remove the C:\Roshan\ZIP\New folder\first_project.zip and then re-run.
Do you want to remove the file [Y/N] : y
Merging the file first_project.zip-1.ros
Merging the file first_project.zip-2.ros
Merging the file first_project.zip-3.ros
Merging the file first_project.zip-4.ros
Merging the file first_project.zip-5.ros
Merging the file first_project.zip-6.ros
Merging the file first_project.zip-7.ros
Merging the file first_project.zip-8.ros
Merging the file first_project.zip-9.ros
Merging the file first_project.zip-10.ros
Merging the file first_project.zip-11.ros
Merging the file first_project.zip-12.ros
Checking if the files are merged properly
File check : Passed
File Merged successfully
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
File details
Details for the file file_split_merge-1.0.0.tar.gz
.
File metadata
- Download URL: file_split_merge-1.0.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c4d0d551cbb2a3068306fd6e8b6ee878c97f1346e210bde5335e10d2ad9e0937
|
|
MD5 |
da327d1371a01fd350b393439b626a38
|
|
BLAKE2b-256 |
bc19b3d8b4ed9a0a0181903cd37c6f229999b08de16511da0125269b5db7e9dd
|