Pure python 7zr implementation
Project description
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
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.2.0.tar.gz
.
File metadata
- Download URL: py7zr-0.2.0.tar.gz
- Upload date:
- Size: 10.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ddc2b7e53e0968c396f3ca179a934b6d3d52bb000f7809a4e70c16b1351f5f4 |
|
MD5 | 48025b7882a334dd95cf3fc084d2f873 |
|
BLAKE2b-256 | a4c4dcb021577087c7161d131c68be352c6cbfb4a4c7aef632b535a123ce6316 |
Provenance
File details
Details for the file py7zr-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: py7zr-0.2.0-py3-none-any.whl
- Upload date:
- Size: 35.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf99c7d2c40476aadfd2ff8bbff60947717d9419beb8cc4449c788cd35e3c3cf |
|
MD5 | f0806728255d486b503f56949686a72d |
|
BLAKE2b-256 | a42ac49c35096e35efc5ba9ee88f777c18295cd512c11e2d56aa90ebec5f61ca |