Skip to main content

extrac

PyPI version License Static Badge PyPI - Downloads Pepy Total Downlods

Homepage: https://github.com/belingud/python_extrac

One magic word to unpack archive, pure python implementation, no command-line tools required.

一个命令解压所有压缩文件,纯Python实现,不依赖任何命令行工具。

Support 7z(.7z),AR(.a,.ar),RAR(.rar),ZIP(.zip,.jar),TAR(.tar.gz,.tgz,.tar.bz ,.tar.bz2,.tbz,.tbz2,.tar.xz,.txz),GZIP(.gz),compress(.Z),CAB(.cab),XZ(.xz,. lzma),BZIP2(.bz2),BZIP(.bz),ZSTD(.zstd,.zst),DEB(deb) archives for now.

目前支持7z(.7z),AR(.a,.ar),RAR(.rar),ZIP(.zip,.jar),TAR(.tar.gz,.tgz,.tar.bz ,.tar.bz2,.tbz,.tbz2,.tar.xz,.txz),GZIP(.gz),compress(.Z),CAB(.cab),XZ(.xz,. lzma),BZIP2(.bz2),BZIP(.bz),ZSTD(.zstd,.zst),DEB(deb) 后缀的压缩文件。

Install

Recommended installation with pipx:

$ pipx install extrac
  installed package extrac x.x.x, installed using Python 3.12.3
  These apps are now globally available
    - extrac
    - x
done!  🌟 

Support Format:

  • .ar/.a
  • .bz2/.bz/.dmg
  • .cab
  • .gz
  • .xz
  • .7z
  • .Z
  • .tar.gz/.tgz
  • .tar.bz/.tbz
  • .tar.xz/.txz
  • .tar
  • .rar
  • .zip/.jar
  • .zstd/.zst
  • .deb
  • .xz/.lzma
  • .arj
  • .rp
  • .pkg

Usage:

Contains two commands x and extrac.

Not support specified output filename yet

# Auto extract to current directory as sample/
x test/archives/sample.zip
extrac test/archives/sample.zip
# Specified output directory as test/sample/
x test/archives/sample.tar.bz test/
extrac test/archives/sample.tar.bz test/

encoding

Encoding support types:

  • zip
  • xz

example:

x test/archives/sample.zip --encoding gbk

TO BE CONTINUE

未完待续

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

extrac-0.8.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

extrac-0.8.0-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file extrac-0.8.0.tar.gz.

File metadata

  • Download URL: extrac-0.8.0.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.18.2 CPython/3.12.3 Darwin/23.6.0

File hashes

Hashes for extrac-0.8.0.tar.gz
Algorithm Hash digest
SHA256 1629d5b8919a8d63b6fae23b699301580d944c9da65ae194426c9dc8d0dae084
MD5 504d198c3b2fee6963b6e2d45bdbae95
BLAKE2b-256 2f238ba85e9cbab7ee44c9101f064d53ef1272fcc560eccc2f2f1b2e4034bbbe

See more details on using hashes here.

File details

Details for the file extrac-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: extrac-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.18.2 CPython/3.12.3 Darwin/23.6.0

File hashes

Hashes for extrac-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 685722aa641f657d86b32f1a3bd7ccaf14dca5db1b23ecdd3a8bb8909612a5dd
MD5 786b841f64d39cd93289ca9859aea851
BLAKE2b-256 32f99480d62a9701f68f728eb6df629b5fde93a196b134eded5760708e5b8f4d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 files

0.7.3

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

1 file

0.2.0

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page