Skip to main content

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 or Bzip2 to pack files & folders into a TAR archive.
  • Supports LZMA or LZMA2 compression & optional encryption to create 7z 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
import os

with zp.Archive(None) as archive, open('my_archive.zip', 'xb') as f:
	archive.create_entry("entry_name.dat", "input_file.dat", True, None)
	archive.save(f, None)

How to UnZIP files

using (var archive = new Archive("input_archive.zip"))
{
   archive.ExtractToDirectory("outputDirectory");
}

How to create 7z Archive with AES Encryption

using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
   archive.CreateEntry("data.bin", new MemoryStream(new byte[] { 0x00, 0xFF }));
   archive.Save("result_archive.7z");
}

Demos:

Product Page | Documentation | Demos | Blog | API Reference | Search | Free Support | Temporary License

Metadata

Release files for aspose-zip 23.6.0

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

Built distributions (wheels)

Table of built distributions (wheels) for aspose-zip 23.6.0
File Interpreter ABI Platform
aspose_zip-23.6.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
aspose_zip-23.6.0-py3-none-win32.whl Python 3 none Windows x86-32 Details
aspose_zip-23.6.0-py3-none-manylinux1_x86_64.whl Python 3 none Linux glibc 2.5+ x86-64 Details

Total release size: 110.1 MB

Release files / aspose_zip-23.6.0-py3-none-win_amd64.whl

Download URL aspose_zip-23.6.0-py3-none-win_amd64.whl
Size 36.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
75bec4bf2750e28e8ffee8d48f6392ab2cbe00e9056d3eddbf1c33111a463850
BLAKE2b-256 checksum
How to use checksums
8a2595587c128133b754424673e7d6344b7e8b1ca09ad1df10d194845103ce7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / aspose_zip-23.6.0-py3-none-win32.whl

Download URL aspose_zip-23.6.0-py3-none-win32.whl
Size 32.5 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
97cf515e898cefd7f2095ad9f7bae5f1434db79e871c7691b916131ea3740956
BLAKE2b-256 checksum
How to use checksums
3451abe7d4d6a5526772c503f90abf2737a37e23abaf06841826cf892b0406df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / aspose_zip-23.6.0-py3-none-manylinux1_x86_64.whl

Download URL aspose_zip-23.6.0-py3-none-manylinux1_x86_64.whl
Size 41.1 MB
Tags Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
d79300f04495526de17ab7eeb1a52b9603b2ab46e1ccc8a9201ce41be6d71b33
BLAKE2b-256 checksum
How to use checksums
cd55b3f25f5e92c1c76cc22836e6f6daaea63406cf1bce7988bd8b275f87e92f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release history Release notifications | RSS feed

26.9.0

4 release files

26.8

4 release files

26.7.0

4 release files

26.6.0

4 release files

26.5.0

4 release files

26.4.0

4 release files

26.3.0

4 release files

26.2.0

4 release files

26.1.0

4 release files

25.9.0

4 release files

25.8.0

4 release files

25.7.0

4 release files

25.6.0

4 release files

25.5.0

4 release files

25.4.0

4 release files

25.3.0

4 release files

25.2.0

4 release files

25.1.0

4 release files

24.9.0

4 release files

24.8.0

4 release files

24.7.0

4 release files

24.6.0

4 release files

24.5.0

4 release files

24.4.0

4 release files

24.3.0

4 release files

24.2.0

4 release files

24.1.0

4 release files

23.9.0

4 release files

23.8.0

3 release files

23.7.0

3 release files

23.6.1

3 release files

This release

23.6.0 This release

3 release files

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