Code Monkey home page Code Monkey logo

splich's Introduction

Splich (Split-Stitch)

MIT License

Splits a file into parts or stitches them back

Splich, because it can split or stitch, is a simple file splitting tool written in python that can split a file into parts, and stitch them back together.

Table of Contents

Features

  • Split into specific number of parts
  • Split into parts of specific size
  • Automatically finds the split parts in the directory
  • SHA256 hash verification included

Requirements

  • Python 3

Options

Required arguments

Argument Description
filename File to split or stitch

Optional Arguments

Option Description
-sp, --split split the file
-st, --stitch stitch the file
-p , --parts number of parts to split in
-s , --size size of each chunk
-hf , --hashfile file containing hash of the original file
-o , --outfile write stitched file to (default - same as the input file)
-vv, --verbose verbose mode
-v, --version show program's version number and exit

Usage

To split a file into specific number of parts

splich.py file --split --parts no_of_parts

To split a file into parts of specific size

splich.py file --split --size size_of_each_part

To stitch a file

splich.py original_filename --stitch

To specify an output file to place stitched files to

splich.py original_filename --stitch -o newfile

To hash verify while stitching

splich.py original_filename --stitch -hf hash_file_from_split

Examples

splich.py ebook.pdf --split --size 100000
splich.py flask.pdf --split --parts 10

splich.py flask.pdf --stitch -o flask_stitched -hf flask_hash_05112022_1126 --verbose

LICENSE

MIT

splich's People

Contributors

shine-jayakumar avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

splich's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.