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

Metadata

Release files for aspose-zip 23.10.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.10.0
File Actions
aspose_zip-23.10.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for aspose_zip-23.10.0-py3-none-win_amd64.whl
aspose_zip-23.10.0-py3-none-win32.whl Python 3 none Windows x86-32 Details for aspose_zip-23.10.0-py3-none-win32.whl
aspose_zip-23.10.0-py3-none-manylinux1_x86_64.whl Python 3 none Linux glibc 2.5+ x86-64 Details for aspose_zip-23.10.0-py3-none-manylinux1_x86_64.whl
aspose_zip-23.10.0-py3-none-macosx_10_14_x86_64.whl Python 3 none macOS 10.14+ x86-64 Details for aspose_zip-23.10.0-py3-none-macosx_10_14_x86_64.whl

Total release size: 149.7 MB

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

Download URL aspose_zip-23.10.0-py3-none-win_amd64.whl
Size 36.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
f14ebb435526bc0cd3710a96e7a427161dbc6a351b601b141afa43129a563788
BLAKE2b-256 checksum
How to use checksums
7fc456105fa8a8b65a421ba0cd5a9803bff439a213be2cce0ecb4c7c618bb45e
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.10.0-py3-none-win32.whl

Download URL aspose_zip-23.10.0-py3-none-win32.whl
Size 32.8 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
c12e8925cb1ca7a55aa40880fb3cde673311de368321dce696bb7c9803d778be
BLAKE2b-256 checksum
How to use checksums
8d152f75a940416fa797258481ad11d36b82ca6048c6a24f6f208bb0e7d90cb9
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.10.0-py3-none-manylinux1_x86_64.whl

Download URL aspose_zip-23.10.0-py3-none-manylinux1_x86_64.whl
Size 41.5 MB
Tags Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
d56d79c83902b2aa3383d31bf8385b61e491c533a65941411b19977112ca48b6
BLAKE2b-256 checksum
How to use checksums
f80c328c998cddbff0400d60d6c7f9adf3537e56bff973833e3f7ea7018dd43b
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.10.0-py3-none-macosx_10_14_x86_64.whl

Download URL aspose_zip-23.10.0-py3-none-macosx_10_14_x86_64.whl
Size 38.6 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
9cf9e87290f57433d97ce660969ef1285470476cde63e36092fcfe4e551f62ab
BLAKE2b-256 checksum
How to use checksums
9c7c36784d7d779b6c3d2fa36afd331116507396b1803f66fbdaf3c6a5d88340
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Security for aspose-zip 23.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

23.10.0 This release

4 release files No provenance

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