Giter Site home page Giter Site logo

unp's Introduction

$ unp_

  unp is a command line tool that can unpack archives easily.  It
  mainly acts as a wrapper around other shell tools that you can
  find on various POSIX systems.

  It figures out how to invoke an unpacker to achieve the desired
  result.  In addition to that it will safely unpack files when an
  archive contains more than one top level item.  In those cases it
  will wrap the resulting file in a folder so that your working
  directory does not get messed up.

  All you have to do:

    $ unp myarchive.tar.gz

  To install you can use pipsi:

    $ pipsi install unp

  Supports the following archives:

  - 7zip Archives (*.7z)
  - AR Archives (*.a)
  - Apple Disk Image (*.dmg; *.sparseimage)
  - Bz2 Compressed Files (*.bz2)
  - Bz2 Compressed Tarballs (*.tar.bz2)
  - Gzip Compressed Files (*.gz)
  - Gzip Compressed Tarballs (*.tar.gz; *.tgz)
  - Uncompressed Tarballs (*.tar)
  - WinRAR Archives (*.rar)
  - Windows Cabinet Archive (*.cab)
  - XZ Compressed Files (*.xz)
  - XZ Compressed Tarballs (*.tar.xz)
  - Zip Archives (*.zip; *.egg; *.whl; *.jar)

  DMG is only supported on OS X where it invokes the hdiutil and
  copies out the contents.

unp's People

Contributors

lowks avatar mitsuhiko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unp's Issues

which vs find_executable

Not really an issue but more of a question; is there any particular reason you implemented a which() function yourself over using distutils.spawn.find_executable()?

Is there a flag to tell unp to overwrite

Is there a flag to tell unp to overwrite. Example, if we are uncomrpessing abc.zip(unp abc) it will result in a folder abc under current working directory. If we execute same command again, it will uncompress to abc1 or something like that, without overwriting abc. Is there a flag to force overwrite ?

unp in diablo

Hello.
Trying to use unp on my old Nokia n810.
unp from debian stretch repository.

`[3|user@/]perl -v
This is perl, v5.8.3 built for arm-linux-gnueabi-thread-multi

Copyright 1987-2003, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using man perl' or perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

[3|user@/]unp
Can't locate File/Basename.pm in @inc (@inc contains: /etc/perl /usr/local/lib/perl/5.8.3 /usr/local/share/perl/5.8.3 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/bin/unp line 28.
BEGIN failed--compilation aborted at /usr/bin/unp line 28.
`
How to fix? Thanks.

what is the 'click' modules

I am reading your codes and i an confused about the modules click
I use pip search click and import click, but the python tell me

ModuleNotFoundError: No module named 'click'

not working for zip format

extracting a zip format file resulting in error:

Unpacking "/home/shiva/Desktop/abc.zip" with unzip
Traceback (most recent call last):
File "/usr/local/bin/unp", line 9, in
load_entry_point('unp==0.2', 'console_scripts', 'unp')()
File "/usr/local/lib/python3.4/dist-packages/click-3.3-py3.4.egg/click/core.py", line 610, in call
return self.main(_args, *_kwargs)
File "/usr/local/lib/python3.4/dist-packages/click-3.3-py3.4.egg/click/core.py", line 590, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.4/dist-packages/click-3.3-py3.4.egg/click/core.py", line 782, in invoke
return ctx.invoke(self.callback, *_ctx.params)
File "/usr/local/lib/python3.4/dist-packages/click-3.3-py3.4.egg/click/core.py", line 416, in invoke
return callback(_args, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/unp-0.2-py3.4.egg/unp.py", line 565, in cli
File "/usr/local/lib/python3.4/dist-packages/unp-0.2-py3.4.egg/unp.py", line 210, in unpack
File "/usr/local/lib/python3.4/dist-packages/unp-0.2-py3.4.egg/unp.py", line 243, in real_unpack
File "/usr/local/lib/python3.4/dist-packages/unp-0.2-py3.4.egg/unp.py", line 71, in process
TypeError: can't use a string pattern on a bytes-like object

Unmaintained?

@mitsuhiko is this tool still maintained?

It is a great usability benefit for command-line users, so it would be sad to see it die slowly. I am mainly wondering, as I was thinking about packaging it for NixOS.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.