GithubHelp home page GithubHelp logo

compressiontool's Introduction

Compression Tool

Compression Tool is a tool prepared using Leveraging Huffman coding, it efficiently compresses files, optimizing storage and enhancing data management using Python .

Get started

This tool is in Python , so please ensure that you have latest Python version installed in your device

step 1: git clone https://github.com/priyapatelsp/CompressionTool.git

step 2: Follow the below steps to start the program

Compressing ::

Please type the below command to execute this python program

Step 1: Navigate to the location of the folder and then type below code(since I've used Python3)

Python3

Step 2: Then import the compressionTool

from compressionTool import CompressionTool

Step 3: Define a path variable - it's the location of the text file you need to compress.

path="{PATH OF THE TEXT FILE YOU NEED TO COMPRESS}"

Step 4: Make an object for compression tool

compressionObj=CompressionTool(path)

Step 5: Call the function to compress the file

compressionObj.compress()
You will get the path of compressed file, you can observe the decresed file size. To get it decompressed and open the file you can follow below steps

Decompressing ::

Please type the below command to open the compressed file

Step 1: Define a path variable - it's the location of the compressed text file.

pathCompressedFile="{PATH OF THE COMPRESSED .BON FILE YOU GOT}"

Step 2:Call the function to compress the file on terminal after following above steps

compressionObj.decompress(pathCompressedFile)

Useful resources for Huffman coding

huffman-coding-greedy
huffman-coding-using-priority-queue
huffman-coding-python

Author


Priya Patel
Github : priyapatelsp

compressiontool's People

Contributors

priyapatelsp avatar

Watchers

 avatar

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.