rarfile icon indicating copy to clipboard operation
rarfile copied to clipboard

Python module for RAR archive reading

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:

  • Supports both RAR3 and RAR5 format archives.
  • Supports multi volume archives.
  • Supports Unicode filenames.
  • Supports password-protected archives.
  • Supports archive and file comments.
  • Archive parsing and non-compressed files are handled in pure Python code.
  • Compressed files are extracted by executing external tool: unrar_ (preferred), unar_ or bsdtar_.
  • Works with Python 3.6+.

.. 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

Links:

  • Documentation_
  • Downloads_
  • Git_ repo

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