https://github.com/fantomas42/easy-extract
Easy extraction of archives collections
https://github.com/fantomas42/easy-extract
Last synced: over 1 year ago
JSON representation
Easy extraction of archives collections
- Host: GitHub
- URL: https://github.com/fantomas42/easy-extract
- Owner: Fantomas42
- Created: 2010-01-13T15:04:55.000Z (over 16 years ago)
- Default Branch: develop
- Last Pushed: 2017-01-09T10:15:15.000Z (over 9 years ago)
- Last Synced: 2024-10-07T19:37:10.481Z (almost 2 years ago)
- Language: Python
- Homepage:
- Size: 78.1 KB
- Stars: 11
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Easy-extract
============
.. contents::
Easy-extract try to be a simple and universal multipart unarchiver,
it is designed to extract and repair collections of many archives format
*(rar, zip, xtm)* in one command line.
Very usefull when you grab on Usenet and you have many archives in differents directory.
Installation
------------
Before you start using easy-extract, you must install these softwares :
* unrar-free
* 7zip-full
* par2
Then use easy_install: ::
$ easy_install easy-extract
Usage
-----
Usage: easy_extract [options] [directory]...
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-f, --force Do not prompt confirmation message
-n, --not-repair Do not try to repair archives on errors
-c, --repair-only Do only a check and repair operation
-r, --recursive Find archives recursively
-k, --keep Do not delete archives on success
-x, --no-index Do not index the extracted files
Simply run **easy_extract** in the directory where the collections are: ::
$ easy_extract
To find archives recursively in a directory: ::
$ easy_extract -r my_archives/
All the archives found will be prompted, then confirm the extraction.
Go make a coffee, the script will do the rest !
Easy_extract will handle the repair if the archives are corrupted.
Code
----
If you want to reuse the code to find archives you can do something like that : ::
>>> from easy_extract.archive_finder import ArchiveFinder
>>> from easy_extract.archives.rar import RarArchive
>>> archive_finder = ArchiveFinder('./my_path/', recursive=True, archive_classes=[RarArchive,])
>>> archive_finder.archives
... [, ]