Skip to main content

Pure python 7zr implementation

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://coveralls.io/repos/github/miurahr/py7zr/badge.svg?branch=master

Pure python 7zr 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

This version

0.1.1

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.1.1.tar.gz (10.3 MB view details)

Uploaded Source

Built Distribution

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

py7zr-0.1.1-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py7zr-0.1.1.tar.gz
  • Upload date:
  • Size: 10.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for py7zr-0.1.1.tar.gz
Algorithm Hash digest
SHA256 69e63254e78755dad154858c79d0392ebe6feaca7c708c5371cd30a14b5c7f82
MD5 a7006b2d59dd3fe44ffa28a7fa4aa107
BLAKE2b-256 68bfc8b9ae6c12ee39f40a789408b9f6a79dd973c34e178d249dbb655230c67d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py7zr-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 34.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for py7zr-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 097641d7eab73003aa3fd51ec347b4c7322b432d992d732176cff7cede4ead67
MD5 bd64f795be8e38a7e9658666235e74fa
BLAKE2b-256 30e3d8fb88bc3f335c6ab01c0e936ebb25e2c5e0226303df7be405773b0b9590

See more details on using hashes here.

Supported by

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