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-23.9.0-py3-none-win_amd64.whl (36.8 MB view details)

Uploaded Python 3Windows x86-64

aspose_zip-23.9.0-py3-none-win32.whl (32.8 MB view details)

Uploaded Python 3Windows x86

aspose_zip-23.9.0-py3-none-manylinux1_x86_64.whl (41.4 MB view details)

Uploaded Python 3

aspose_zip-23.9.0-py3-none-macosx_10_14_x86_64.whl (38.5 MB view details)

Uploaded Python 3macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: aspose_zip-23.9.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 36.8 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-23.9.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 0526f86930631d4b58de4d45afe06743e80e58cf201d0623a5cefe9b30af9bd4
MD5 122758f4aa44c149758ec9d22bea0d57
BLAKE2b-256 bc6bd9bb25fd09248b5c8ce9c4eef7db667cadd9ff7e8a715b9773edd905c00e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aspose_zip-23.9.0-py3-none-win32.whl
  • Upload date:
  • Size: 32.8 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-23.9.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 2575f25cc242df57deb0b3a02c8bc10ad7d690a5037e46ac833bce37c038baf2
MD5 d577f8b468bd499b09bb60d34b4d7e0b
BLAKE2b-256 e01db87d2e023b904fb0039da8dda7ef67aef3cc1af6ee7cca096ca061bde74e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aspose_zip-23.9.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 74946b69eab5eee9355e18239d320aec25eace70337dc4839964d6067079d543
MD5 3485daaf632d46a61d4e3d6853e1303d
BLAKE2b-256 8ea01434bdc50127b1ad7595a0c1c0668f76e90dc876c0be3a7ef1f322243f2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aspose_zip-23.9.0-py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b164f42fdff1d02d6f4c3ab42445cb89c84b938006fafea347a89da26b43230d
MD5 2b4ce30d1530138abe0a635ec9756368
BLAKE2b-256 803baaa0147aca1abf95d471e33ba992989ebf73e34eb1f4a850618ec6ef4251

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page