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

  • 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

Not supported

  • Unusable: Does not support output to stdout.

  • Based on libarchive so similar format support as bsdtar.

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.1.tar.gz (152.8 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.1-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rarfile-4.1.tar.gz
  • Upload date:
  • Size: 152.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for rarfile-4.1.tar.gz
Algorithm Hash digest
SHA256 db60b3b5bc1c4bdeb941427d50b606d51df677353385255583847639473eda48
MD5 35940bb31c831b49c963c48280416873
BLAKE2b-256 d7eeb3f1e882c4fcfaf3a33bb12d5ef77d7f1b92474628d2aedcab231a21cfb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rarfile-4.1-py3-none-any.whl
  • Upload date:
  • Size: 29.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for rarfile-4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17d7554c93c776ceae677e9d927051267d4c5eba38bf64b9cc89a415d9a5f901
MD5 4d6e59e61e1fc7a841df78abd41d13b9
BLAKE2b-256 7534f06b7de74bcea328d8d7a950aad099c1100578cc3960ffc5a00d30ab511c

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