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
- 0.2.0
- Use subprocess.run instead of Popen and check for errors
- 0.2.1
- Use a dictionary command mapping instead of if else control flow
- 0.2.2
- Removed glob_multiple_extensions, deprecated
s## License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
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.2.2.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file simple_extract-0.2.2.tar.gz
.
File metadata
- Download URL: simple_extract-0.2.2.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.3 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | adec97fbb7dbc05283a593cb5f53e2ad3ff362f10a47db1cc89a2712b191492f |
|
MD5 | d8f5e8fe78af6adb84c7a2676bb6d83a |
|
BLAKE2b-256 | a87bc3029a3b72499ae9b02b43090839283a18e63c8cbe8529ea537c7413de28 |
File details
Details for the file simple_extract-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: simple_extract-0.2.2-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.5.0.1 requests/2.24.0 setuptools/49.1.3 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d36ae601326a99f5e95114209fa5aa31a88a5c8249e8808ffbcc3cd1a32e7de1 |
|
MD5 | c997f839aecd212277266e03d6da895c |
|
BLAKE2b-256 | b9220dada345db84546149f6a3299c828aee2071246e5db4584cd2b971d97100 |