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

未完待续

Metadata

Release files for extrac 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for extrac 0.8.0
File Size Uploaded Provenance Actions
extrac-0.8.0.tar.gz 13.9 kB Without provenance Details for extrac-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for extrac 0.8.0
File Interpreter ABI Platform Actions
extrac-0.8.0-py3-none-any.whl Python 3 none any Details for extrac-0.8.0-py3-none-any.whl

Total release size: 35.4 kB

Release files / extrac-0.8.0.tar.gz

Download URL extrac-0.8.0.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1629d5b8919a8d63b6fae23b699301580d944c9da65ae194426c9dc8d0dae084
BLAKE2b-256 checksum
How to use checksums
2f238ba85e9cbab7ee44c9101f064d53ef1272fcc560eccc2f2f1b2e4034bbbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.18.2 CPython/3.12.3 Darwin/23.6.0

Release files / extrac-0.8.0-py3-none-any.whl

Download URL extrac-0.8.0-py3-none-any.whl
Size 21.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
685722aa641f657d86b32f1a3bd7ccaf14dca5db1b23ecdd3a8bb8909612a5dd
BLAKE2b-256 checksum
How to use checksums
32f99480d62a9701f68f728eb6df629b5fde93a196b134eded5760708e5b8f4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.18.2 CPython/3.12.3 Darwin/23.6.0

Security for extrac 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page