Skip to main content

PyDecompress eases the process of extracting contents from different types of archives.

Project description

PyDecompress

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')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Built Distribution

pydecompress-0.0.2-py3-none-any.whl (2.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page