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.2.tar.gz (153.5 kB view details)

Uploaded Source

Built Distribution

rarfile-4.2-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rarfile-4.2.tar.gz
Algorithm Hash digest
SHA256 8e1c8e72d0845ad2b32a47ab11a719bc2e41165ec101fd4d3fe9e92aa3f469ef
MD5 b6ee1935d0fcb29966e5ec27ba62a346
BLAKE2b-256 263f3118a797444e7e30e784921c4bfafb6500fb288a0c84cb8c32ed15853c16

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for rarfile-4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8757e1e3757e32962e229cab2432efc1f15f210823cc96ccba0f6a39d17370c9
MD5 abfba4b941182ebb4d32d7d793de5123
BLAKE2b-256 62fcab37559419ca36dd8dd317c3a98395ed4dcee2beeb28bf6059b972906727

See more details on using hashes here.

Supported by

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