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

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

aspose_zip-25.8.0-py3-none-win_amd64.whl (38.9 MB view details)

Uploaded Python 3Windows x86-64

aspose_zip-25.8.0-py3-none-win32.whl (34.6 MB view details)

Uploaded Python 3Windows x86

aspose_zip-25.8.0-py3-none-manylinux1_x86_64.whl (45.9 MB view details)

Uploaded Python 3

aspose_zip-25.8.0-py3-none-macosx_10_14_x86_64.whl (41.6 MB view details)

Uploaded Python 3macOS 10.14+ x86-64

File details

Details for the file aspose_zip-25.8.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: aspose_zip-25.8.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 38.9 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for aspose_zip-25.8.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 557fd3c9894da6c28545757b1324857ef5de1f047745284cba00e61861221c1d
MD5 00024335fe274edad5cf02cafb9505ee
BLAKE2b-256 6082470bf2888e3adf16883b20191b7adeb96e2f2f36d74026a6aeb459ec5e5e

See more details on using hashes here.

File details

Details for the file aspose_zip-25.8.0-py3-none-win32.whl.

File metadata

  • Download URL: aspose_zip-25.8.0-py3-none-win32.whl
  • Upload date:
  • Size: 34.6 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for aspose_zip-25.8.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 d9a913b0db1ed30e78f9112ef314cd2c79b61b586828c2d15a48bb41142db5f5
MD5 82d67b379cd98ce4aa92d379ac534f7b
BLAKE2b-256 0dac184d3a872d888919e7c1b0003712337b68ce41fd01e9a619ab2b43fe4936

See more details on using hashes here.

File details

Details for the file aspose_zip-25.8.0-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for aspose_zip-25.8.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6db5955318c8b1a59d4255bf8b3ebc2f8e6d3918a6d0a6f29011940d9a70f6b0
MD5 7419a6ca64e0030f68379886be541ae7
BLAKE2b-256 6e747f6d4a073b8cf93064a8cb6a9011279167f730e3f809022c373b72f4139b

See more details on using hashes here.

File details

Details for the file aspose_zip-25.8.0-py3-none-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for aspose_zip-25.8.0-py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 f43a6dc62f1dab580f032c2d6fb67b3c3a5284bb859b8551b99fa63858fd0969
MD5 cf86f74905d7a2dd77539e2dd4a8b488
BLAKE2b-256 d26312df20f269976501513a3ad62df32ab8d94598c3515dfdc2af125fa1b00f

See more details on using hashes here.

Release history Release notifications | RSS feed

26.8

4 files

26.7.0

4 files

26.6.0

4 files

26.5.0

4 files

26.4.0

4 files

26.3.0

4 files

26.2.0

4 files

26.1.0

4 files

25.12.0

4 files

25.11.0

4 files

25.9.0

4 files

This release

25.8.0 This release

4 files

25.7.0

4 files

25.6.0

4 files

25.5.0

4 files

25.4.0

4 files

25.3.0

4 files

25.2.0

4 files

25.1.0

4 files

24.12.0

4 files

24.11.0

4 files

24.10.0

4 files

24.9.0

4 files

24.8.0

4 files

24.7.1

4 files

24.7.0

4 files

24.6.0

4 files

24.5.0

4 files

24.4.0

4 files

24.3.0

4 files

24.2.0

4 files

24.1.0

4 files

23.12.0

4 files

23.11.0

4 files

23.10.0

4 files

23.9.0

4 files

23.8.0

3 files

23.7.0

3 files

23.6.1

3 files

23.6.0

3 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