---
Product: psd
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/psd/python/resourceblock
---

# ResourceBlock

## Overview

`ResourceBlock` is a class in Aspose.PSD FOSS for Python.
Inherits from: `ABC`.

Represents a PSD image resource block.

This class declares 3 methods for ResourceBlock objects in Python programs.
Available methods include: `__init__`, `save`, `validate_values`.
Public members are accessible to any Python application after installing the Aspose.PSD FOSS for Python package.
Properties: `data_size`, `id`, `minimal_version`, `name`, `signature`, `size`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `data_size` | `int` | Read | Gets the resource data size in bytes. |
| `minimal_version` | `int` | Read | Gets the minimal required PSD version. |
| `signature` | `int` | Read | Gets the resource signature. |
| `size` | `int` | Read | Gets the resource block size in bytes including its data. |
| `id` | `int` | Read | Gets the id. |
| `name` | `str` | Read | Gets the name. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__()` | Calls __init__ on this ResourceBlock instance. |
| `save(stream)` | Saves the resource block to the specified stream container. |
| `validate_values()` | Validates the resource values. |

## See Also

- [Aspose.PSD for Python — Enterprise API Reference](https://reference.aspose.com/psd/python-net/)