

{{< blocks/products/pf/main-wrap-class isAutogenPage="true" >}}
{{< blocks/products/cells/cells-cloud-upper-banner h1="Use Cells Cloud SDK for Python to password-protect local Microsoft Excel and OpenOffice Calc spreadsheets." h2="Python library for password-protecting local Microsoft Excel and OpenOffice Calc spreadsheets" p="Utilize the Cells Protect REST API to secure local Microsoft Excel and OpenOffice Calc spreadsheets with passwords in Python workflows. This professional solution enables password protection for Microsoft Excel and OpenOffice Calc spreadsheets online using Python." urlsection="protect/Encrypt-with-password/" >}}
{{< blocks/products/pf/main-container >}}

{{< blocks/products/cells/cells-cloud-section isGrey="true"  title="Secure local Microsoft Excel and OpenOffice Calc spreadsheets with a password using Cells Cloud SDK for Python." >}}
{{% blocks/products/cells/cells-cloud-api-reference  apiurl=https://api.aspose.cloud/v3.0/cells/protect  apireferenceurl=https://apireference.aspose.cloud/cells/#/LightCells/PostProtect  apimethod=POST %}}
<br/>
Password protection for a local spreadsheet can be a complex task. Our Python SDK handles the process, preserving the main structural and logical content of the source spreadsheet. Our Python library offers a professional solution for online password protection of local spreadsheets. This Cloud SDK empowers Python developers with robust functionality and a seamless API.
<br/>
<br/>
{{% blocks/products/cells/cells-cloud-code-div title="Code example in Python using REST API to encryption local spreadsheets" gistPath="https://gist.github.com/aspose-cells-cloud-gists/61e922de11e6e7144db88adcad6501c1.js?file=LiteCellsProtect.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 protect 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 post_protect 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 >}}
 