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

# SheetProtectionDictWrapper

## Overview

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

Dictionary-like wrapper around SheetProtection for backward compatibility.

This class declares 4 methods for SheetProtectionDictWrapper objects in Python programs.
Available methods include: `__getitem__`, `__init__`, `__setitem__`, `get`.
Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(sheet_protection)` | Initialize wrapper with a SheetProtection object. |
| `__getitem__(key)` | Get protection setting by key. |
| `__setitem__(key, value)` | Set protection setting by key. |
| `get(key, default)` | Get protection setting with default value. |

## See Also

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