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
Metadata
Release files for py7zr 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py7zr-0.1.4.tar.gz | 10.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py7zr-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.3 MB
Release files / py7zr-0.1.4.tar.gz
| Download URL | py7zr-0.1.4.tar.gz |
|---|---|
| Size | 10.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9c1e26440b3d236caad888745d32761e3594d393f0fc8ab8a3722fbbefd4062
|
|
BLAKE2b-256 checksum How to use checksums |
aee1dfb52f654f8768d9e0b900468f4b7bb7984e4045d73d215c068f551825cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / py7zr-0.1.4-py3-none-any.whl
| Download URL | py7zr-0.1.4-py3-none-any.whl |
|---|---|
| Size | 35.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0202459c5df0b2747d12311385a6fe7c12c842beaf3afd393ff56973e6001d4
|
|
BLAKE2b-256 checksum How to use checksums |
aa9f6222fdedae8767b27d38c8585e916848911367a676ab7fc074da48d7a241
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|