Skip to main content

Pure python 7-zip decompression(restricted) library

Project description

https://readthedocs.org/projects/py7zr/badge/?version=latest https://badge.fury.io/py/py7zr.svg https://travis-ci.org/miurahr/py7zr.svg?branch=master https://ci.appveyor.com/api/projects/status/966k084122lhs3i6?svg=true https://dev.azure.com/miurahr/github/_apis/build/status/miurahr.py7zr?branchName=master https://coveralls.io/repos/github/miurahr/py7zr/badge.svg?branch=master

Pure python 7-zip implementation

Dependency

It uses a standard lzma module that is supported in Python3.3 and later.

Document

Here is a readthedocs manual document.

Usage

You can run command script py7zr like as follows;

$ py7zr l test.7z

py7zr is a library which can use in your pyhton application. Here is a code snippet how to decompress some file in your applicaiton.

import py7zr

def decompress(file):
    archive = py7zr.Archive(file)
    archive.extractall(path="/tmp")

py7zr also support shutil unpack interface.

frpm py7zr import unpack_7zarchive
import shutil

shutil.register_unpack_format('7zip', ['.7z'], unpack_7zarchive)
shutil.unpack_archive('test.7z', '/tmp')

License

  • Copyright (C) 2019 Hiroshi Miura

  • Copyright (c) 2004-2015 by Joachim Bauch

  • 7-Zip Copyright (C) 1999-2010 Igor Pavlov

  • LZMA SDK Copyright (C) 1999-2010 Igor Pavlov

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

py7zr-0.4.3.tar.gz (17.8 MB view details)

Uploaded Source

Built Distribution

py7zr-0.4.3-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

Details for the file py7zr-0.4.3.tar.gz.

File metadata

  • Download URL: py7zr-0.4.3.tar.gz
  • Upload date:
  • Size: 17.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.1

File hashes

Hashes for py7zr-0.4.3.tar.gz
Algorithm Hash digest
SHA256 120c7b07577f006a7e3d7a4cd4fc8fb1e05bdaa2bab7595f7ac9001d1a1b6a46
MD5 62e642182ae28122e02fe68c3ea21af0
BLAKE2b-256 76fecce918cb2c56525caebde130cb6277fc82ce0407e560c8b1eb089e975f4e

See more details on using hashes here.

Provenance

File details

Details for the file py7zr-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: py7zr-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 39.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.1

File hashes

Hashes for py7zr-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 16b1f8a304583ec25a1521ffb2a41cea69461beea22a24bdcc5c085409063c27
MD5 b60eb2a95b6c4b4dedaab9ca8e1239cc
BLAKE2b-256 091d037e8a89b393df7140faa964fde2b3cfcf3bc50a0d3f8864e8433ba5433c

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page