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.4.tar.gz (155.4 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.4-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rarfile-4.4.tar.gz
Algorithm Hash digest
SHA256 b7d29d671223cdc80e8b992df212d152ad88e6c961d4426c3fb2fefe8dd86fdf
MD5 78363db91f32a64801ea832aa9604136
BLAKE2b-256 0984a00a5be12adbe5abb0094513ad6d3aefc80fe5dfa4a5604e22561d4b7d3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rarfile-4.4-py3-none-any.whl
  • Upload date:
  • Size: 29.9 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 befb813c283fbcdd46dda2bad090f8272c8bb1de246d04cd570e9d890294d119
MD5 1a58a7f9c4989f83ccd159c4f965700f
BLAKE2b-256 e2067135da7d7d662767aee9aeebaa360f4ad29f08d9198cc1b1632428114acd

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