Skip to main content

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 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

Project details


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

Uploaded Python 3Windows x86-64

aspose_zip-24.12.0-py3-none-win32.whl (34.4 MB view details)

Uploaded Python 3Windows x86

aspose_zip-24.12.0-py3-none-manylinux1_x86_64.whl (45.3 MB view details)

Uploaded Python 3

aspose_zip-24.12.0-py3-none-macosx_10_14_x86_64.whl (41.2 MB view details)

Uploaded Python 3macOS 10.14+ x86-64

File details

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

File metadata

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

File hashes

Hashes for aspose_zip-24.12.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 64e2d5b5903838b41f5fcc249946af0ed8313b399acd3566f30071bd60438dc4
MD5 2bf25bff81c8a467a778cf867159814c
BLAKE2b-256 1634948a5e0b9c98a3f43af407e78c1d6e290ce9b347a26bb11054823f252828

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for aspose_zip-24.12.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 6462f6824b0e7b357a04fd92521901a8d82c0dd006a6008c76a88d366fd85555
MD5 d01970cdb4955c65c45ff1f1a6830f0b
BLAKE2b-256 c07ae10d25847b2682314d610e3024a7ffe584158c36a8d3781b67f6339de6ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aspose_zip-24.12.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fffa88a3e60b71a040bd8bc5b3c5aeb43dbbc3cbb53d81b1d10c7eda80ae05ac
MD5 ce2a8fec8ff746dd8466176ee9afd2d5
BLAKE2b-256 13e81693264d5d9d4a5477e67925dd4ff44ae1baf3777b8d8475cb83991868d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aspose_zip-24.12.0-py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 70b87db6c0c8b0d039af8137e4e71d12033b573b0dabdb30ee242e8281619569
MD5 e78a08a738852825bc94e67ed2af5532
BLAKE2b-256 f7e11a0c8cde6159380da7b47b0108abda801d63b726eec914da9ac713e1dc4c

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