Skip to content

itsMajid-dev/compression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Title

Data compression with Python and the LZW algorithm
With the help of this code, you can reduce the size of html and xml text files by up to 90% !

About the LZW algorithm :

WikiPedia

Usage/Compression:

import main 

x= main.Encoding()
x.load('a.txt')
x.compress()
x.save('ac')

Usage/Decompress:

import main 

x= main.Decoding()
x.load('ac')
x.decompress()
x.save('a.txt')

Compression information:

x = main.Encoding()
i = x.compressing_informations()

The original file size, the compressed file size and the compressed percentage return to the dictionary.

File validation:

x = main.Decoding()
v = x.valid("a.txt" , 'ac')

Returns True if the compressed file is equal to the original file.

GUI version :

compressing

The installation file and images are in this repository. This file is a beta version that will eventually compress 1.2 MB text files.

About

Data compression with Python and the LZW algorithm 🗜️

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages