Skip to main content

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:

Metadata

Release files for rarfile 4.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rarfile 4.5
File Size Uploaded
rarfile-4.5.tar.gz 155.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rarfile 4.5
File Interpreter ABI Platform
rarfile-4.5-py3-none-any.whl Python 3 none any Details

Total release size: 185.6 kB

Release files / rarfile-4.5.tar.gz

Download URL rarfile-4.5.tar.gz
Size 155.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7425d0afa180f0092db903abb1526a130b36858980aad90b3694f48e41420155
BLAKE2b-256 checksum
How to use checksums
b2eb33ea5625de4e84144069ea021a282ea3c44ff7bd341b740bcadff028bea7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / rarfile-4.5-py3-none-any.whl

Download URL rarfile-4.5-py3-none-any.whl
Size 30.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c74341f4b9a3a3ebb35ef396d59daf059eb028f34995a7162950a41d97b84de9
BLAKE2b-256 checksum
How to use checksums
f536ffd87452bf72310dfd1185ade33e5b8be374ab370d19573a8197ca25c95b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

4.5 This release

2 release files

4.4

2 release files

4.3

2 release files

4.2

2 release files

4.1

2 release files

4.0

2 release files

3.3

1 release file

3.2

1 release file

3.1

1 release file

3.0

1 release file

2.8

1 release file

2.7

1 release file

2.6

1 release file

2.5

1 release file

2.4

1 release file

2.3

2.2

2.1

2.0

1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page