
## RarArchive class

This class represents RAR archive file. Use it to extract RAR archives.

The RarArchive type exposes the following members:
## Constructors
| Name | Description |
| :- | :- |
|RarArchive(path, load_options)|Initializes a new instance of the [RarArchive](/zip/python-net/aspose.zip.rar/rararchive/) class and composes an entry list can be extracted from the archive.|
|RarArchive(source_stream, load_options)|Initializes a new instance of the [RarArchive](/zip/python-net/aspose.zip.rar/rararchive/) class and composes an entry list can be extracted from the archive.|
## Properties
| Name | Description |
| :- | :- |
|entries|Gets entries of [RarArchiveEntry](/zip/python-net/aspose.zip.rar/rararchiveentry/) type constituting the rar archive.|
|file_entries|Gets entries of [IArchiveFileEntry](/zip/python-net/aspose.zip/iarchivefileentry/) type constituting the archive.|
|format|Gets the archive format.|
## Methods
| Name | Description |
| :- | :- |
|extract_to_directory(destination_directory, password)|Extracts all the files in the archive to the directory provided.|
|extract_to_directory(destination_directory)|Extracts all the files in the archive to the directory provided.|

### See Also

* namespace [aspose.zip.rar](/zip/python-net/aspose.zip.rar/)
* assembly [Aspose.Zip](/zip/python-net/)

