Python API to decrypt cloud Microsoft Excel and OpenOffice Calc spreadsheet with password
Python library to decrypt cloud Microsoft Excel and OpenOffice Calc spreadsheet with password
Decrypt cloud Microsoft Excel and OpenOffice Calc spreadsheet with password - Python REST API
API Request:
DELETE
https://api.aspose.cloud/v3.0/cells/{name}/encryption
Decrypting a cloud spreadsheet with a password is a complex task. Decrypting a local spreadsheet with password transitions is performed by our Python SDK while maintaining the source spreadsheet's main structural and logical content. Our Python library is a professional solution to decrypt cloud spreadsheets with a password online. This Cloud SDK gives Python developers powerful functionality and perfect API.
Python code for decrypting cloud spreadsheets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from asposecellscloud.apis.cells_api import CellsApi | |
from asposecellscloud.models import * | |
from asposecellscloud.requests import * | |
CellsCloudClientId ='....' # get from https://dashboard.aspose.cloud/#/applications | |
CellsCloudClientSecret='....' # get from https://dashboard.aspose.cloud/#/applications | |
api = CellsApi(CellsCloudClientId,CellsCloudClientSecret) | |
encryption = WorkbookEncryptionRequest(password= '123456' ,encryption_type= 'XOR' ,key_length= 128 ) | |
request = DeleteDecryptWorkbookRequest( 'Book1.xlsx', encryption,folder= 'PythonTest',storage_name= '') | |
api.delete_decrypt_workbook(request) | |
How to use Python API to decrypt
- Create an account at Dashboard to get free API quota & authorization details
- Initialize CellsApi with Client Id, Client Secret, Base URL & API version
- Call cells_workbook_delete_decrypt_document method to get the resultant stream
System Requirements
- Python 2.7 or newer
- Python 3.10 or newer