Unpacks things.

Related tags

CLI Tools unp
Overview
$ 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.
Comments
  • Unmaintained?

    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.

    opened by milibopp 4
  • unp in diablo

    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' orperldoc 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.

    opened by Sergei-Alekseev 1
  • Add --force-basename option

    Add --force-basename option

    When extracting multiple similar archives with only one top-level element, user usually wants to have them in a destination directory named after archive's name.

    Currently the first archive is extracted to a directory named after the single top-level element while other archives are extracted to directories named after archive's basename.

    The --force-basename option is forcing the latter behaviour for every archive.

    For example, let's say we have two archives, with only one top-level directory in them (called var):

    $ ls BundleLogs*zip
    BundleLogs-1495008842230.zip  BundleLogs-1495008843374.zip
    

    When trying to unpack them at once:

    $ unp --output /tmp/logs BundleLogs*zip
    

    The default behaviour leaves us with:

    $ ls /tmp/logs
    BundleLogs-1495008843374  var
    

    Using --force-basename option:

    $ unp --force-basename --output /tmp/logs_basename BundleLogs*zip
    

    We get the following result:

    $ ls /tmp/logs_basename
    BundleLogs-1495008842230  BundleLogs-1495008843374
    
    opened by slafs 0
  • what is the 'click' modules

    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'

    opened by Sherlock-Holo 0
  • Is there a flag to tell unp to overwrite

    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 ?

    opened by simminni 0
Owner
Armin Ronacher
Software developer and Open Source nut. Creator of the Flask framework. Engineering at @getsentry. Other things of interest: @pallets and @rust-lang
Armin Ronacher
A curated list of awesome things related to Textual

Awesome Textual | A curated list of awesome things related to Textual. Textual is a TUI (Text User Interface) framework for Python inspired by modern

Marcelo Trylesinski 5 May 8, 2022
A modular Karton Framework service that unpacks common packers like UPX and others using the Qiling Framework.

Unpacker Karton Service A modular Karton Framework service that unpacks common packers like UPX and others using the Qiling Framework. This project is

c3rb3ru5 45 Jan 5, 2023
Proxy server that records responses for UI testing (and other things)

Welcome to playback-proxy ?? A proxy tool that records communication (requests, websockets) between client and server. This recording can later be use

Yurii 41 Apr 1, 2022
Helps working with singletons - things like global settings that you want to edit from the admin site.

Django Solo +---------------------------+ | | | | | \ | Django Solo helps

Sylvain Toé 726 Jan 8, 2023
Looks at Python code to search for things which look "dodgy" such as passwords or diffs

dodgy Dodgy is a very basic tool to run against your codebase to search for "dodgy" looking values. It is a series of simple regular expressions desig

Landscape 112 Nov 25, 2022
Nuitka Organization 8k Jan 7, 2023
All of the ad-hoc things you're doing to manage incidents today, done for you, and much more!

About What's Dispatch? Put simply, Dispatch is: All of the ad-hoc things you’re doing to manage incidents today, done for you, and a bunch of other th

Netflix, Inc. 3.7k Jan 5, 2023
get things from one computer to another, safely

Magic Wormhole Get things from one computer to another, safely. This package provides a library and a command-line tool named wormhole, which makes it

null 15.4k Jan 1, 2023
A curated list of awesome things related to Pydantic! 🌪️

Awesome Pydantic A curated list of awesome things related to Pydantic. These packages have not been vetted or approved by the pydantic team. Feel free

Marcelo Trylesinski 186 Jan 5, 2023
a harbinger of events or things.

Herald: Intrusion Detection System using IR and ML Herald - noun; a harbinger of events or things. Overview Herald is an intrusion detection system us

Muhammad Muzzammil 4 Jun 7, 2021
Lazy, a tool for running things in idle time

Lazy, a tool for running things in idle time Mostly used to stop CUDA ML model training from making my desktop unusable. Simply monitors keyboard/mous

N Shepperd 46 Nov 6, 2022
This is a Python script for Github Bot which uses Selenium to Automate things.

github-follow-unfollow-bot This is a Python script for Github Bot which uses Selenium to Automate things. Pre-requisites :- Python A Github Account Re

Chaudhary Hamdan 10 Jul 1, 2022
A FastAPI Framework for things like Database, Redis, Logging, JWT Authentication and Rate Limits

A FastAPI Framework for things like Database, Redis, Logging, JWT Authentication and Rate Limits Install You can install this Library with: pip instal

Tert0 33 Nov 28, 2022
A command line interface to buy things in stregsystemet

Stregsystemet-CLI This repository is the Stregsystemet CLI, to buy things in Stregsystemet, at AAU. Use of this cli-tool is at your own risk and there

F-klubben 14 Oct 18, 2022
A repository dedicated to IoT(internet of things ) and python scripts

?? Introduction Week of Learning is a weekly program in which you will get all the necessary knowledge about Circuit-Building, Arduino and Micro-Contr

null 27 Nov 22, 2022
Creates folders into a directory to categorize files in that directory by file extensions and move all things from sub-directories to current directory.

Categorize and Uncategorize Your Folders Table of Content TL;DR just take me to how to install. What are Extension Categorizer and Folder Dumper Insta

Furkan Baytekin 1 Oct 17, 2021
Multipurpose Growtopia Server tools, can be used for newbie to learn things.

Multipurpose Growtopia Server tools, can be used for newbie to learn things.

FelixF 3 Dec 1, 2021
A python software that can help blind people find things like laptops, phones, etc the same way a guide dog guides a blind person in finding his way.

GuidEye A python software that can help blind people find things like laptops, phones, etc the same way a guide dog guides a blind person in finding h

Munal Jain 0 Aug 9, 2022
An Open Source ALL-In-One Telegram RoBot, that can do lot of things.

An Open Source ALL-In-One Telegram RoBot, that can do lot of things.

JOBIN 0 Dec 1, 2021
An Open Source ALL-In-One Telegram RoBot, that can do lot of things.

URL Uploader Bot An Open Source ALL-In-One Telegram RoBot, that can do lot of things. My Features Installation The Easy Way You can also tap the Deplo

NT BOTS 1 Oct 23, 2021