GithubHelp home page GithubHelp logo

par's Introduction

par - pocket archiver. A simple data compression cli program, which supports a set of compression algorithms:

  • Huffman coding
  • Yet to be added

Installation

Clone the repository

git clone https://github.com/sekvanto/par
cd par

Compile

make

Run

./archive [arguments]

To clean the source directory, run

make clean

Example

example

Usage

Synopsis

./archive [options] [input file] [output file]

Options

Optional flags:

-h, --help Show help

-a Explicit flag to forcefully archive first file into second file

-u Explicit flag to unarchive

--algorithm=algorithm-name

If zero filenames are specified, program archives the default file ("test.txt").

If only one filename is specified, the output file name is generated automatically, e.g. Input = "file.txt" => Output = "file.txt.par". If input name has ".par" extension, file will be decompressed and gain extension ".uar", e.g. Input = "file.txt.par" => Output = "file.txt.uar".

If two filenames are specified, first file is compressed/decompressed into second file. Function will depend either on flags, or on input filename.

algorithm-name

  • huffman (*)
  • adaptive-huffman

TODO

☑ Add Huffman coding support
☑ Modify program structure, rewrite it from Java to C
▢ Add a few other lossless algorithms
▢ Add support for multithreading
▢ Add a few lossy data compression algorithms (esp for multimedia)

Architecture/technical details

See Implementation details on project wiki.

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.