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
- 0.2.3
- Refactored main()
- 0.2.4
- Added logging
- 0.2.5
- New control switch --force_download bypasses should_fetch_url() check
- 0.2.6
- Fixed a crash when fetching an url and content length is invalid
- 0.2.7
- Do no create log file
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.9.tar.gz
(7.8 kB
view details)
Built Distribution
File details
Details for the file simple-extract-0.2.9.tar.gz
.
File metadata
- Download URL: simple-extract-0.2.9.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e59fe149ba3c84a7f1e4fba396114f6c1725f51e1ede8b28b753f12353cb6f00 |
|
MD5 | 6ec79e4955e5d012c61e1d3005d33658 |
|
BLAKE2b-256 | 0b0d3f25eb2bfe284a1d0e25954bf4e3af09045f6650d4ae398c6d8867ee684a |
File details
Details for the file simple_extract-0.2.9-py3-none-any.whl
.
File metadata
- Download URL: simple_extract-0.2.9-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20196a1cf719093cf30a24d71cd04ca39ae7064805a094a995c151662787a9a6 |
|
MD5 | afdf53c619689e949496bcf1844fbc9d |
|
BLAKE2b-256 | 4f6db37df69e94351d33bb23deda5ce4f1de90fb770de3e1bba6329d5d74b4c8 |