markokr / rarfile

Python module for RAR archive reading
https://pypi.org/project/rarfile/
ISC License
246 stars 55 forks source link
archive python rar unrar

rarfile - RAR archive reader for Python

This is Python module for RAR archive reading. The interface follows the style of zipfile. Licensed under ISC_ license.

Features:

.. RAR: https://en.wikipedia.org/wiki/RAR%28file_format%29 .. _zipfile: https://docs.python.org/3/library/zipfile.html .. _ISC: https://en.wikipedia.org/wiki/ISC_license .. _bsdtar: https://github.com/libarchive/libarchive .. _unrar: https://www.rarlab.com/ .. _unar: https://theunarchiver.com/command-line .. _7zip: https://www.7-zip.org/

Backends:

+-------------+----------------------+-----------------------------------------------------+ | Backend | Status | Notes | +=============+======================+=====================================================+ | unrar | Supported | Recommended: full format support. | | | | Non-free software, but free to use. | +-------------+----------------------+-----------------------------------------------------+ | unar | Supported | Not usable on Windows: last build is from 2013 | | | | (v1.8.1) that does support output to stdout. | | | | Does not support RAR2 locked files. | | | | Does not support RAR5 Blake2 hash checking. | +-------------+----------------------+-----------------------------------------------------+ | 7zip_ | Supported | RAR support not available on Debian/Ubuntu repos. | +-------------+----------------------+-----------------------------------------------------+ | p7zip | Supported | Unmaintained? | | | | Requires p7zip-rar package on Debian/Ubuntu. | +-------------+----------------------+-----------------------------------------------------+ | bsdtar | Supported | Not recommended: limited RAR format support. | | | | Does not support multi-volume archives. | | | | Does not support solid archives. | | | | Does not support password-protected archives. | | | | Does not support RARVM-based compression filters. | +-------------+----------------------+-----------------------------------------------------+ | unrar-free_ | Supported | Supports output to stdout (v0.2.0). | | | | * Based on libarchive so similar format support | | | | as bsdtar but supports multi-volume (v0.3.0). | +-------------+----------------------+-----------------------------------------------------+

.. _p7zip: https://sourceforge.net/projects/p7zip/ .. _unrar-free: https://gitlab.com/bgermann/unrar-free

Links:

.. _Git: https://github.com/markokr/rarfile .. _Downloads: https://pypi.org/project/rarfile/#files .. _Documentation: https://rarfile.readthedocs.io/