Skip to main content

A small command line utility to help extract compressed archives.

Project description

simple_extract

Simple File Extraction

Description

A small command line file extraction utility written in Python. It uses external tools to optionally fetch from an url and decompress archives.

Getting started

Python 3.9+ needed

External tools that can be used:

* tar
* gzip
* bzip2
* unrar
* lha
* 7z
* unzip
* rpm2cpio
* cpio
* ar
* xz
* zstd
* curl
* wget
* fetch

Installing

* clone the git repository from https://github.com/berrym/simple_extract.git
or:
* python -m pip install simple-extract
or:
* python -m pip install --user simple-extract

Executing program

* python simple_extract.py some-archive.tar.gz some-other-archive.lzma
or if installed via pip:
* simple-extract https://github.com/ibara/mg/releases/download/mg-6.8.1/mg-6.8.1.tar.gz

Authors

Copyright 2021 Michael Berry trismegustis@gmail.com

Version History

  • 0.1.0
    • Initial Release
  • 0.1.1
    • Change the way paths are handled if stdout is used
  • 0.1.2
    • Updated setup.py
  • 0.1.3
    • Fixed setup.py issue preventing proper builds
  • 0.1.4
    • Added a simple noclobber option for non piped commands
  • 0.1.5
    • Added a command line switch to silence archive downloads
  • 0.1.6
    • Stop splitting text at common extensions
  • 0.1.7
    • Split archive paths only at valid extensions
  • 0.1.8
    • Changed imports, check for local archive existence in should_fetch archive
  • 0.1.9
    • Improved url validation and error handling

License

This project is licensed under the MIT License - see the LICENSE file for details.

License: MIT Code style: black

Project details


Download files

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

Source Distribution

simple_extract-0.1.9.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

simple_extract-0.1.9-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file simple_extract-0.1.9.tar.gz.

File metadata

  • Download URL: simple_extract-0.1.9.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for simple_extract-0.1.9.tar.gz
Algorithm Hash digest
SHA256 1537155e98e21712aab8d035e58f59bb407a88e61ae09fdacce3497f0386ed0e
MD5 de45230a34ad3ec6ee991f56405873d9
BLAKE2b-256 1f9dfeee2e69f106ad5700402687ae2e390b46b7796882dbae2fa721b596a934

See more details on using hashes here.

File details

Details for the file simple_extract-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: simple_extract-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for simple_extract-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 33c36315f98610727e35128545b8e3b335d580f0b913391770ae0d3280713a99
MD5 653245c38a326732039b3e7b4f82aee6
BLAKE2b-256 8232afcd9d0bcf5bf6fe4c31255c61f33824ea717d11e1644643b7e6c245ad29

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page