Installation
Make sure your machine meets the system requirements before you begin.
This article explains how to instal Aspose.Zip for Python via .NET on your computer.
pip is the easiest way to download and install Aspose.Zip for Python via .NET APIs. To do this run the following command:
pip install aspose-zip
Once module is installed, you can use it in your Python code:
1# Import Aspose.Zip for Python via .NET module
2import aspose.zip as az
3
4# Create and save archive with single file
5with az.Archive() as archive:
6 archive.create_entry("entry_name.dat", "input_file.dat")
7 archive.save('my_archive.zip')