---
Product: Aspose.Cells
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/python/workbookprotection
---

# WorkbookProtection

## Overview

`WorkbookProtection` is a class in Aspose.Cells FOSS for Python.

Represents workbook protection settings.

This class declares 1 method for WorkbookProtection objects in Python programs.
Available methods include: `__init__`.
Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.
Properties: `is_protected`, `lock_revision`, `lock_structure`, `lock_windows`, `revisions_password`, `workbook_password`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `lock_structure` | - | Read/Write | Whether workbook structure is locked. |
| `lock_windows` | - | Read/Write | Whether workbook windows are locked. |
| `lock_revision` | - | Read/Write | Whether revision tracking is locked. |
| `revisions_password` | - | Read/Write | Hashed password for revision protection. |
| `workbook_password` | - | Read/Write | Hashed password for workbook protection. |
| `is_protected` | - | Read | Returns True if workbook has any protection enabled. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__()` | Calls __init__ on this WorkbookProtection instance. |

## See Also

- [Aspose.Cells for Python — Enterprise API Reference](https://reference.aspose.com/cells/python-java/)