0xIbra / pydecompress

A Python package that eases the process of extracting contents from different types of archives.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lightweight package that allows you to decompress archive files.

Supported formats
  • .zip
  • .tar
  • .tar.gz
  • .tar.xz
  • .tar.bz2
  • .tar.xz
  • .tar.Z - Requires the Linux uncompress package.

Installation

via pip:

pip install pydecompress

Usage example

from pydecompress.extractor import Extractor

res = Extractor.extract('path/to/archive.tar.gz', '/destination/folder')
print(res) # Output: PosixPath('/destination/folder')

About

A Python package that eases the process of extracting contents from different types of archives.


Languages

Language:Python 100.0%