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

Release files for aspose-zip 26.8

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 26.8
File
aspose_zip-26.8-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
aspose_zip-26.8-py3-none-win32.whl Python 3 none Windows x86-32 Details
aspose_zip-26.8-py3-none-manylinux1_x86_64.whl Python 3 none Linux glibc 2.5+ x86-64 Details
aspose_zip-26.8-py3-none-macosx_10_14_x86_64.whl Python 3 none macOS 10.14+ x86-64 Details

Total release size: 162.1 MB

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

Download URL aspose_zip-26.8-py3-none-win_amd64.whl
Size 38.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
667bd12d1d54f2971501f889d1b72b64c603a9d2dd943ef55c4af0cd6203a839
BLAKE2b-256 checksum
How to use checksums
2b38c910d299f0d945577f1ad3fe6edeb45ebd6a5b5c2777a9a3908568170102
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

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

Download URL aspose_zip-26.8-py3-none-win32.whl
Size 34.4 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
51e200a03004c18d5054b2ccae212d7b9f9dbb0a47af08ce804d7d37d8626d80
BLAKE2b-256 checksum
How to use checksums
3864b3e259842797294d8d4d7d5aef375a1e02883592ba716cd9e5eeb73ff998
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

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

Download URL aspose_zip-26.8-py3-none-manylinux1_x86_64.whl
Size 46.9 MB
Tags Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
b17b5b39be85ab6974d90c79e3257da7dd0a1420d5d3699b02a882d8fd00693d
BLAKE2b-256 checksum
How to use checksums
a71919eaaee8e8b24ed5c91ccf38841f7b34932d6e8079ec456cbad11b555299
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / aspose_zip-26.8-py3-none-macosx_10_14_x86_64.whl

Download URL aspose_zip-26.8-py3-none-macosx_10_14_x86_64.whl
Size 42.0 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
c4fc4f4bddf6b355d90fc464f316664e131a08b365435b9c36c0fbc9d783b31a
BLAKE2b-256 checksum
How to use checksums
ab30b9730de11b6b008e2177d24b867904e340c113838cb562a82fc3e59d276a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release history Release notifications | RSS feed

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