GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mh97m/Compressor-Files-Python: this app, compress your directory with any algorithm that you want.

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
compress.py
compress.py
 
 
requirement.txt
requirement.txt
 
 

Repository files navigation

Compress Files

This Code Compress files of directory that you gave in arguments.

Algorithms

  • gzip
  • bzip2
  • xz
  • zstd

Performance

This code wrote with process threading together for fastest run that ever can make...

In this code, the main bottleneck is the I/O operations of reading and writing files, which is why multiprocessing is used.

Usage

Note

python3 is prefix for execute python files in linux.

py is prefix for execute python files in windows.

Compression

python3 compress.py /path/to/directory gzip
python3 compress.py /path/to/directory bzip2
python3 compress.py /path/to/directory xz
python3 compress.py /path/to/directory zstd

Compare

gzip is a good general-purpose compression algorithm that is widely used for compressing text-based files like HTML, CSS, and JavaScript. However, for other types of files, there may be more efficient compression algorithms that can produce smaller compressed file sizes.

Some other popular compression algorithms include:

  • bzip2: a compression algorithm that is generally slower than gzip, but can produce smaller compressed file sizes for certain types of data, such as text-based files with long repetitive patterns.

  • xz: a compression algorithm that is slower than both gzip and bzip2, but can produce even smaller compressed file sizes for certain types of data.

  • zstd: a relatively new compression algorithm that is designed to be very fast while still achieving good compression ratios. It can be a good choice for large files that need to be compressed quickly.

-Compress-Compress files-bzip2: a compression algorithm-gzip: a compression algorithm-xz: a compression algorithm-zst: a compression algorithm-Compress using python-Python compressor-Python file compressor

About

this app, compress your directory with any algorithm that you want.

Topics

bz2bzip2compresscompressioncompression-algorithmcompressordecompressdecompressiondecompression-algorithmdecompressorgzgzippythonpython-scriptpython3tarxzzipzstzstd

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.