You are not logged in.

#1 2009-03-07 10:46:22

sirmacik
Member
From: Poland/Warsaw
Registered: 2008-06-17
Posts: 65
Website

extractor - simple program that will help You with unpacking many type

DESCRIPTION:
extractor is a simple program written in Python that will help You with unpacking many types of archives

HOMEPAGE:
http://sirmacik.lin4all.org/pmwiki.php/ … /Extractor

DEPENDENCES:
Mainly it depends on Python and tar (I'm sure that You have these programs in Your system).
To extract other types of archives You have to install:
    *.tar.bz2/*.bz2/*.tbz2 => bzip2
    *.tar.gz/*.gz/*.tgz    => gzip
    *.zip/*.ZIP            => unzip<http://www.info-zip.org/>
    *.rar/*.RAR            => unrar
    *.Z                    => zlib
    *.tar.lzma/*.lzma      => lzma
    *.tar.7z/*.7z          => p7zip
All of them are totally optional.

INSTALLATION:
You have to download (here You'll find the newest version) extractor.py file and put it into Your PATH as 'extractor' with execute rights.
Example installation looks like that:

install -Dm 755 extractor.py /usr/bin/extractor

You have to execute command from root account (with su or sudo).
//EDIT: You could also install it from AUR

USING:
Simply, You have to run extractor with a name of Your archive as an argument.
Example:

extractor archive.tar.gz

Little FAQ
1) Why it could be useful for me?
- Hmm. I don't like the situations, when I have many types of archives on my hard drive and I have to remember a command to extract every of them. Maybe You don't like that situations too.
2) Why it's written in python, not bash?
- Simply, I don't like bash. It was (but it still is wink also a kind of terning of programming in python.
3) Why this program is using X function, not Y?
- Also simply. Because in the moment when I was writing extractor I haven't know about Y function or I was thought (and maybe I'm still thinking in that way) that this function will be better. I had started learning python (and programming) not very long time ago. So all suggestions are welcome.

Last edited by sirmacik (2009-03-14 21:59:25)

Offline

#2 2009-03-07 13:10:06

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: extractor - simple program that will help You with unpacking many type

There are some features in atool in community that you should think about implementing:
- saving from tarbomb: atool temporarily extracts to Unpack-[pid], if there is only 1 entry in it then it is moved to the base dir, else everything is moved to a directory named after archive's filename
- option to list what is in the archive
- option to work on multiple archives at once
- force extracting to a directory named after the archive's filename(s)
- verbosity control (only saying whether it was successful, and password checks)

Well those are what I think are important.

Last edited by Procyon (2009-03-07 13:11:01)

Offline

#3 2009-03-07 13:32:24

sirmacik
Member
From: Poland/Warsaw
Registered: 2008-06-17
Posts: 65
Website

Re: extractor - simple program that will help You with unpacking many type

Thanks for Your suggestions. I'll think about that.

Offline

#4 2009-03-08 02:30:19

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: extractor - simple program that will help You with unpacking many type

Implemented in bash here

Offline

#5 2009-03-08 08:55:05

bluewind
Administrator
From: Austria
Registered: 2008-07-13
Posts: 172
Website

Re: extractor - simple program that will help You with unpacking many type

Offline

#6 2009-03-08 14:32:13

sirmacik
Member
From: Poland/Warsaw
Registered: 2008-06-17
Posts: 65
Website

Re: extractor - simple program that will help You with unpacking many type

I know that my script/program is similar to many scripts in many languages. As I said in Little FAQ,  this script was written for training. But I'm going to still develop extractor and extend it with new features.

Last edited by sirmacik (2009-03-14 22:01:14)

Offline

Board footer

Powered by FluxBB