Pure python 7-zip decompression(restricted) library
Project description
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
Built Distribution
File details
Details for the file py7zr-0.4.1.tar.gz
.
File metadata
- Download URL: py7zr-0.4.1.tar.gz
- Upload date:
- Size: 17.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee9c9846e8f2cdd4fe44c4b3f2273382e3f6f48d3487cadf1a70b8d5a918564e |
|
MD5 | c5b5d5aabe62219c95c522e8de3fe0e0 |
|
BLAKE2b-256 | 72542735eb8ed54de35c00d14b390e4853c0ab6422f28c81303856b1b659d0d2 |
Provenance
File details
Details for the file py7zr-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: py7zr-0.4.1-py3-none-any.whl
- Upload date:
- Size: 39.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62ba907e05735da5f05b05053fbdad2c57f362c360141edc9491f5d7eb873e00 |
|
MD5 | 718d001dcab2843acca83293010e4c94 |
|
BLAKE2b-256 | ce51cac74f941fa42f483605536bab67c30755e6fa42a9eb909cd0f7d3318a9f |