Skip to main content

RAR archive reader for Python

Project description

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, 7zip or bsdtar.

  • Works with Python 3.6+.

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

  • Requires 7zip-rar package on Debian/Ubuntu.

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

Links:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rarfile-4.5.tar.gz (155.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rarfile-4.5-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

Details for the file rarfile-4.5.tar.gz.

File metadata

  • Download URL: rarfile-4.5.tar.gz
  • Upload date:
  • Size: 155.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for rarfile-4.5.tar.gz
Algorithm Hash digest
SHA256 7425d0afa180f0092db903abb1526a130b36858980aad90b3694f48e41420155
MD5 7a18c96cc936e80623893dd2de1dcb20
BLAKE2b-256 b2eb33ea5625de4e84144069ea021a282ea3c44ff7bd341b740bcadff028bea7

See more details on using hashes here.

File details

Details for the file rarfile-4.5-py3-none-any.whl.

File metadata

  • Download URL: rarfile-4.5-py3-none-any.whl
  • Upload date:
  • Size: 30.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for rarfile-4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c74341f4b9a3a3ebb35ef396d59daf059eb028f34995a7162950a41d97b84de9
MD5 3bbcc844e5f036ad5208f090670a6782
BLAKE2b-256 f536ffd87452bf72310dfd1185ade33e5b8be374ab370d19573a8197ca25c95b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page