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
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.0.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file simple_extract-0.2.0.tar.gz
.
File metadata
- Download URL: simple_extract-0.2.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b4ee06e5ebf70b53048e66d610ee0102d33946286082fa56d2ed1eec22e3eb0 |
|
MD5 | 42544f1464e42eedbebb73c764f01902 |
|
BLAKE2b-256 | 5f4fb5463445eec8ffd4e06e88d5cb5ee2f8e125d9ca2b2c8d41e786b417a1e8 |
File details
Details for the file simple_extract-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: simple_extract-0.2.0-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4125e2cf6da44410cb54e2c0189c702fb09d18353cac272911894e13c49e04c1 |
|
MD5 | 49b6cab092bf4a30fbff7dd08233fc56 |
|
BLAKE2b-256 | 2f57415c6dbb5da38d3fca0a6a6c4787b0c444ca0f1a63455921bee08ccaf177 |