Read RAR file from python -- cffi edition
Project description
unrar-cffi -- Work with RAR files.
Description
unrar-cffi is a python extension that exposes unrar library
functionality through a zipfile-like interface.
Features
The package implements the following RarFile functions:
namelist()infolist()getinfo()read()open()testrar()rarfile.is_rar_file()
Usage
-
Install with PIP:
pip install unrar-cffi -
Use from code:
from unrar.cffi import rarfile
rar = rarfile.RarFile('sample.rar')
assert rar.testrar() == None
for filename in rar.namelist():
info = rar.getinfo(filename)
print("Reading {}, {}, {} bytes ({} bytes compressed)".format(info.filename, info.date_time, info.file_size, info.compress_size))
data = rar.read(filename)
print("\t{}...\n".format(data[:100]))
Build
Requirements
Linux:
- gcc compiler suite (
build-essentialpackages should be enough) - docker (only for
buildmanylinux)
Windows:
- VS2017 Build Tools (PLATFORM_TOOLSET=v141)
- Visual C++ compiler suite
Compile and test
./build.sh init./build.sh build./build.sh test
If you have docker installed, you can build all the manylinux wheels:
./build.sh within [manylinux docker image] buildmanylinux./build.sh within [manylinux docker image] testmanylinux
By deafult the image quay.io/pypa/manylinux2010_x86_64 will be used.
Use $DOCKER_IMAGE and $PLAT variables to customize the build.
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 Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unrar-cffi-0.2.2.tar.gz.
File metadata
- Download URL: unrar-cffi-0.2.2.tar.gz
- Upload date:
- Size: 244.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9de6d907c0728724be07acfcb479eadf2692f1039ca7cf2df268abb5dfaf4b5d
|
|
| MD5 |
c43edb6a966263c6f1cb4c93e81665e4
|
|
| BLAKE2b-256 |
5e8669bb34ba96db686d05c27d8db00df5b524cacc21e0727cfe52fbf7e17e46
|
File details
Details for the file unrar_cffi-0.2.2-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 183.8 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4c00b0ce1532aea581236445e7c854f5af0166577402e3cef7710d0b91ab4af
|
|
| MD5 |
7154ed55c4a19500106f524637dbe70a
|
|
| BLAKE2b-256 |
cedc71a46270fc47ed1d3db0bc1e4a7dfd8182e86106cd995ce4cb0e724229c9
|
File details
Details for the file unrar_cffi-0.2.2-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 196.0 kB
- Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52e4d9c930893ac297c8b657c3d93b30c1f8a68a22f88aa56c5bc18c27314221
|
|
| MD5 |
429150caa79be046519d03a0e552caf5
|
|
| BLAKE2b-256 |
94b6b53437008e65b1b35d390ea88fa00c2cfb68f4980fdd2f6809bbf957662b
|
File details
Details for the file unrar_cffi-0.2.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 189.3 kB
- Tags: CPython 3.9, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f27aca951c34312e9b5038835a344c2cee37345492e7283d7385ec67a37e791
|
|
| MD5 |
85ecd1bda3771694e60b57a8e40b122b
|
|
| BLAKE2b-256 |
69b3af77ecff4138b63cc27082d2f2b0bf3016f55b6cc43ae8fe3d84c610f49b
|
File details
Details for the file unrar_cffi-0.2.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 194.1 kB
- Tags: CPython 3.9, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97d47ee108601ec0fbe89aba18a208a57dc9f319830162ecccdc9763a24be540
|
|
| MD5 |
094dc9a50961e49627f5994a2d16f069
|
|
| BLAKE2b-256 |
182d5ea6e499b3823af0249d6bc0ee587077c48929f9d3acb10425802de4f66a
|
File details
Details for the file unrar_cffi-0.2.2-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 183.8 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7986bf7931a6eb4fb241ef99dcf95c51567a6237eccf06c17bdf4c2797ab02a2
|
|
| MD5 |
8cb217ef9a7aef496727ebef550944a4
|
|
| BLAKE2b-256 |
9c2df58c65b032c3e98df13ccf2b3b534bdd1b5eac6f05a94d8e30837ff69d5c
|
File details
Details for the file unrar_cffi-0.2.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 196.3 kB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f64b7cf3def3674de2cc77ab301cbaf1e4d2feedee6ee2b68c464deee0aad461
|
|
| MD5 |
a0342177ee76a24d00623eb769b06fa3
|
|
| BLAKE2b-256 |
d622c8e8a42c1b7371839934feac00269baeb987c5729148b3da11da4b9ce01f
|
File details
Details for the file unrar_cffi-0.2.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 189.6 kB
- Tags: CPython 3.8, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff49b48adfab3b847b8c0b5b34c5195e7bfcc7f77e8398870faf863108fa6f88
|
|
| MD5 |
dd0aba338b9fee068464984df22a2f7a
|
|
| BLAKE2b-256 |
4466d564c800c4df96732695f8e9f6470c10178aa1b4017e3ae18d85ecdd1809
|
File details
Details for the file unrar_cffi-0.2.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 194.4 kB
- Tags: CPython 3.8, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66fa34e5889913b1615177094e5936103486f784240c6c58a813b9280f4776e4
|
|
| MD5 |
f11dff4bf997ce3b4c03edfafeebc05a
|
|
| BLAKE2b-256 |
fd469886e6d562daf72cc3b53e03634ec450222a90a483d3fa36b047467321af
|
File details
Details for the file unrar_cffi-0.2.2-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 183.8 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9907f973561df85f0c69e14fe1ddf0dcbccc4b6679570842ae5358dfda75c024
|
|
| MD5 |
456b57b659514f4bda528a2ecb44cf93
|
|
| BLAKE2b-256 |
d1272161393d82a6ebdeb7fa95659325851988613429cec69093810abc7df039
|
File details
Details for the file unrar_cffi-0.2.2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 195.8 kB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77a58b469a8166eec671f6d86365f8b8e039fe2fde658272a6be07b8a1c98556
|
|
| MD5 |
a62c9813469170fb29f5c989f5ab9219
|
|
| BLAKE2b-256 |
622d297d32b9b392ad2df395973d0bedae70c34992b7795e6d5152feef4f5530
|
File details
Details for the file unrar_cffi-0.2.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 189.2 kB
- Tags: CPython 3.7m, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3605fcd65c1c045e1a35c4d017492ecd3d6fbb182b43bf35a94bc826e52b4a9
|
|
| MD5 |
b6e68d372e0c88cb95a58e9df9527646
|
|
| BLAKE2b-256 |
8fef3c76fef407ad0bdb9feb5b493e23d6239ec11424076a475a046cd3c60e6b
|
File details
Details for the file unrar_cffi-0.2.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 194.0 kB
- Tags: CPython 3.7m, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6acc7b6f20116b66df11e57fd9a0905e4db0e8468f2b5a64571c526ef0487304
|
|
| MD5 |
64b0a577ea3c3de41ba82b265db0c9ba
|
|
| BLAKE2b-256 |
6c1283fb052c093c1e863b1edd58dbefe5aa1dc1c94977e5d0939874c8128724
|
File details
Details for the file unrar_cffi-0.2.2-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 195.8 kB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc3f22f2816594c4b3ca47a11fad3f09ef22a035ce33296a0648b4c3ad8b2214
|
|
| MD5 |
5331da2e9113eb21fc2a41d6f2077298
|
|
| BLAKE2b-256 |
1d333715d11ab636996b540df3832aa7d0062670fe58589cd0221e823d121c8f
|
File details
Details for the file unrar_cffi-0.2.2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 189.2 kB
- Tags: CPython 3.6m, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5033d417fd0e00719e0a9d6179eff8f24445061723d02a0f5ee750bdb70e0122
|
|
| MD5 |
f508c1d1c12f0b004629f60e1ba28694
|
|
| BLAKE2b-256 |
ba3337b6a9cfa7b8ae8e5f180714fc4a3c43b1c48acc18aad7cadfa9bf9c300c
|
File details
Details for the file unrar_cffi-0.2.2-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 194.0 kB
- Tags: CPython 3.6m, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04757483c727cc4006594d4d1cf0a982294522f2d0c6654dfbd7f655d0cbc584
|
|
| MD5 |
86426ce4e6ebfe0947fbcef77425b04b
|
|
| BLAKE2b-256 |
f72885c9db1aec9b8b862c9517806953ee6baad35de902cce4daf9914d0adab8
|
File details
Details for the file unrar_cffi-0.2.2-cp36-cp36m-macosx_10_12_x86_64.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp36-cp36m-macosx_10_12_x86_64.whl
- Upload date:
- Size: 153.3 kB
- Tags: CPython 3.6m, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b06be02128974f53846ecee62f1e812ea4189acd711d3ecd6aad03f02aa121d0
|
|
| MD5 |
6d2a6c615998c40f491786c6c11e1451
|
|
| BLAKE2b-256 |
e60f3a9b2b2be6a16d5e2030c45676ab1e288f333e29bc7886482bc2ec50b3a6
|
File details
Details for the file unrar_cffi-0.2.2-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 189.2 kB
- Tags: CPython 3.5m, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a0ac9b2aad4576cd2621806896619727b2362c96beabc62fa1027915a7590be
|
|
| MD5 |
a381fe453417433e4b69d8b7dd01f7fc
|
|
| BLAKE2b-256 |
20f81a38cea37a162f4743da49dd42673c773f3494e39e4f2678b50125e1236b
|
File details
Details for the file unrar_cffi-0.2.2-cp35-cp35m-manylinux_2_5_i686.manylinux1_i686.whl.
File metadata
- Download URL: unrar_cffi-0.2.2-cp35-cp35m-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 194.0 kB
- Tags: CPython 3.5m, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a63510b9d20ba54061a8f261ac7e5e209656e9439c7852c8e5d82510d3f107c
|
|
| MD5 |
2e50dd2af67fb024debc063c8a6c0164
|
|
| BLAKE2b-256 |
235926cca26ab676c475fa165b462b5b13d24b53778c7c19567fade853f83559
|