Aspose.Zip for Python via .NET is a library that can be used by Python developers for a variety of archive-processing tasks. It supports ZIP, GZIP, BZIP2, TAR, CPIO, LZIP, 7Z, LZMA, XZ and Z formats. It allows you to encrypt and decrypt files, create self-extracting archives and extract RAR, CAB, WIM formats as well. The API is easy to use and robust.
Project description
Product Page | Documentation | Demos | Blog | API Reference | Search | Free Support | Temporary License
Try our Free Online Apps demonstrating some of the most popular compression and archive-related functionality.
Aspose.Zip for Python via .NET is a Python API to create, manipulate, extract & protect archive formats including ZIP, BZIP, BZ2 & TAR. It allows your Python applications to compress/decompress files and folders without getting into the complexity of coding new compression algorithms or understanding the existing ones. Enable your programs to work with a vast range of features, such as creating archives, saving archives, archive extraction, encrypting/decrypting archives, compressing single or multiple files as well as directory contents. It also allows you to apply security to your archived and compressed files and folders via password, AES (128, 192, 256) encryption, or mixed encryption. Check out the Landing Pages of Aspose.Zip for Python via .NET for a more detailed description of the features and possibilities of the library.
Archive Processing Features
- Compress files and folders into standard ZIP formats.
- Supports Deflate,
Bzip2
&LZMA
compression algorithms. - Apply simple password or
AES128
,AES192
,AES256
encryption to archives. - Employ different protection schemes for each file within an archive.
- Append more files to an existing zipped archive.
- Use
Gzip
orBzip2
to pack files & folders into aTAR
archive. - Supports
LZMA
orLZMA2
compression & optional encryption to create7z
archives. - Create self-extracting compressed archives.
Compress Files As
Compression: Zip, Tar, Cpio, GZip, Bz2, Z, Xz, Lzip, 7z
Read Archives
Decompression: Zip, Rar, Cab, Tar, Cpio, GZip, Bz2, Z, Xz, Lzip
Platform Independence
Aspose.Zip for Python via .NET can be used to develop 32-bit and 64-bit Python applications for different operating systems (such as Windows, Linux or MacOS) where Python 3.5 or later is installed.
Get Started
Run pip install aspose-zip
to fetch the package. If you already have Aspose.Zip for Python via .NET and want to get the latest version, please run pip install --upgrade aspose-zip
.
To learn more about Aspose.Zip for Python via .NET and explore the basic requirements and features of the library, check out the following Aspose.Zip for Python via .NET Documentation pages for other use cases.
How to ZIP files
import aspose.zip as zp
with zp.Archive() as archive:
archive.create_entry("entry_name.dat", "input_file.dat")
archive.save('my_archive.zip')
How to UnZIP files
import aspose.zip as zp
with zp.Archive("input_archive.zip") as archive:
archive.extract_to_directory("outputDirectory")
How to create 7z Archive with AES Encryption
import aspose.zip as zp
import io
with zp.sevenzip.SevenZipArchive(zp.saving.SevenZipEntrySettings(None, zp.saving.SevenZipAESEncryptionSettings("p@s$"))) as archive:
archive.create_entry("data.bin", io.BytesIO(b"\x00\xFF"))
archive.save("result_archive.7z")
Demos:
Product Page | Documentation | Demos | Blog | API Reference | Search | Free Support | Temporary License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file aspose_zip-24.10.0-py3-none-win_amd64.whl
.
File metadata
- Download URL: aspose_zip-24.10.0-py3-none-win_amd64.whl
- Upload date:
- Size: 37.4 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa9a5c4411e406f9a479a71a5a52d84cb94e8eca18d88fdbd88a8f2631e90afd |
|
MD5 | 34140df83af5b53836859c15c20da1ec |
|
BLAKE2b-256 | 3b88fe4eaca4d68f140a20c25d004bff0f1430bdad4a0ea2bca3e11db3e888a3 |
File details
Details for the file aspose_zip-24.10.0-py3-none-win32.whl
.
File metadata
- Download URL: aspose_zip-24.10.0-py3-none-win32.whl
- Upload date:
- Size: 33.3 MB
- Tags: Python 3, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 512a7523c50cc617ff35772b8637ea3e46fcdcc58737f0ee4d03b40fbd5c18ad |
|
MD5 | a8cbb4beb3b73c33da9b2ed521fba12b |
|
BLAKE2b-256 | 3942eb16ef672c303b4daabcdfdd0bac0ae0d860115e3008ee59e8fe07d0504d |
File details
Details for the file aspose_zip-24.10.0-py3-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: aspose_zip-24.10.0-py3-none-manylinux1_x86_64.whl
- Upload date:
- Size: 42.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65bd4953f4590e7c563d9b4674d8bb67c4d1e58f030f4d68cc1e83ae19c9429f |
|
MD5 | 12377c4b50174de0da6012ed6876fc6d |
|
BLAKE2b-256 | a4e0902e8af8c9b4fa2e577de54549bdc6ed0256384ef655dc7aeb03ec2e2d3f |
File details
Details for the file aspose_zip-24.10.0-py3-none-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: aspose_zip-24.10.0-py3-none-macosx_10_14_x86_64.whl
- Upload date:
- Size: 39.3 MB
- Tags: Python 3, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 382bb6dcf5772522235b165b474c24fdfbae4fad312ca28d262ff0b01691e6d5 |
|
MD5 | 85bb2161c698a77b3bbd255b134cf0bf |
|
BLAKE2b-256 | 4c49c439ef0eaf3f7b9f8884674aa24f831197b4e0a9a42d268153a3d8ebe4a8 |