
## SnappyArchive class

This class represents a snappy archive file. Use it to compose or extract snappy archives.

The SnappyArchive type exposes the following members:
## Constructors
| Name | Description |
| :- | :- |
|SnappyArchive()|Initializes a new instance of the [SnappyArchive](/zip/python-net/aspose.zip.snappy/snappyarchive/) class prepared for compressing.|
|SnappyArchive(source)|Initializes a new instance of the [SnappyArchive](/zip/python-net/aspose.zip.snappy/snappyarchive/) class prepared for decompressing.|
|SnappyArchive(path)|Initializes a new instance of the [SnappyArchive](/zip/python-net/aspose.zip.snappy/snappyarchive/) class prepared for decompressing.|
## Properties
| Name | Description |
| :- | :- |
|file_entries|Gets entries of [IArchiveFileEntry](/zip/python-net/aspose.zip/iarchivefileentry/) type constituting the archive.|
|format|Gets the archive format.|
|name|Gets name of the entry.|
|length|Gets the length of the entry in bytes.|
## Methods
| Name | Description |
| :- | :- |
|extract(destination)|Extracts snappy archive to a stream.|
|extract(file_info)|Extracts snappy archive to a file.|
|extract(path)|Extracts snappy archive to a file by path.|
|set_source(source)|Sets the content to be compressed within the archive.|
|set_source(file_info)|Sets the content to be compressed within the archive.|
|set_source(source_path)|Sets the content to be compressed within the archive.|
|save(output)|Saves snappy archive to the stream provided.|
|save(destination)|Saves snappy archive to the destination file provided.|
|save(destination_file_name)|Saves snappy archive to a destination file provided.|
|extract_to_directory(destination_directory)|Extracts content of the archive to the directory provided.|

### See Also

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

