

{{< blocks/products/pf/main-wrap-class isAutogenPage="true" >}}
{{< blocks/products/cells/cells-cloud-upper-banner h1="Python API to protect cloud Microsoft Excel and OpenOffice Calc spreadsheet with password" h2="Python library to protect cloud Microsoft Excel and OpenOffice Calc spreadsheet with password" p="Use Cells Protect REST API to protect cloud Microsoft Excel and OpenOffice Calc spreadsheet with password workflows in Python. This professional solution protects cloud Microsoft Excel and OpenOffice Calc spreadsheet online with passwords using Python." urlsection="protect/Encrypt-cloud-file-with-password/" >}}
{{< blocks/products/pf/main-container >}}

{{< blocks/products/cells/cells-cloud-section isGrey="true"  title="Protect cloud Microsoft Excel and OpenOffice Calc spreadsheet with password - Python REST API" >}}
{{% blocks/products/cells/cells-cloud-api-reference  apiurl=https://api.aspose.cloud/v3.0/cells/{name}/encryption  apireferenceurl=https://apireference.aspose.cloud/cells/#/Workbook/PostEncryptWorkbook  apimethod=POST %}}
<br/>
Protecting a cloud spreadsheet with a password is a complex task. Protecting a cloud 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 protect cloud spreadsheets with a password online. This Cloud SDK gives Python developers powerful functionality and perfect API.
<br/>
<br/>
{{% blocks/products/cells/cells-cloud-code-div title="Python code for encryption cloud spreadsheets" gistPath="https://gist.github.com/aspose-cells-cloud-gists/61e922de11e6e7144db88adcad6501c1.js?file=EncryptCloudFileWithPassword.py" %}}
  
{{% /blocks/products/cells/cells-cloud-code-div  %}}
<br/>
<br/>
{{< blocks/products/cells/cells-cloud-section-list isGrey="true"  title="How to use Cells Cloud SDK for Python to encrypt Excel file" >}}
<li>Create an account at <a href="https://dashboard.aspose.cloud/">Dashboard</a> to get free API quota & authorization details</li>
<li>Initialize CellsApi with Client Id, Client Secret, Base URL & API version</li>
<li>Call cells_workbook_post_encrypt_document method to get the resultant stream</li>
{{< /blocks/products/cells/cells-cloud-section-list >}}
<br/>
<br/>
{{< blocks/products/cells/cells-cloud-section-list isGrey="true"  title="System Requirements" >}}
<li>Python 2.7 or newer</li>
<li>Python 3.10 or newer</li>
{{< /blocks/products/cells/cells-cloud-section-list >}}

{{< /blocks/products/cells/cells-cloud-section >}}

{{< /blocks/products/pf/main-container >}}
{{< /blocks/products/pf/main-wrap-class >}}
 