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

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.3.tar.gz (154.9 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.3-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rarfile-4.3.tar.gz
Algorithm Hash digest
SHA256 0d8b5a7ffb9f8e9a7b002f2398905e4420c0cb373e799b48e48f418db9c8816a
MD5 952862d009bb237b67a3f464b9b98bed
BLAKE2b-256 c680442df102d81a10d31ec2cf73d6f411f5575e3bb7adc0aaa45cbe693a37b6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for rarfile-4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f9dd2f8bd811b2e30fb074aa176f972f51633aa41cf909db3f2921ed040e1128
MD5 794caaf4d61df22999a16024e7947b54
BLAKE2b-256 782d4a161de993dab0baac89b8c5b9765f420e8cc5239c5c82e0f51cb41e5a74

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