# flytekit.core.hash

## Directory

### Classes

| Class | Description |
|-|-|
| [`HashMethod`](https://www.union.ai/docs/v1/union/api-reference/flytekit-sdk/packages/flytekit.core.hash/page.md#flytekitcorehashhashmethod) | Flyte-specific object used to wrap the hash function for a specific type. |
| [`HashOnReferenceMixin`](https://www.union.ai/docs/v1/union/api-reference/flytekit-sdk/packages/flytekit.core.hash/page.md#flytekitcorehashhashonreferencemixin) |  |

### Variables

| Property | Type | Description |
|-|-|-|
| `T` | `TypeVar` |  |

## flytekit.core.hash.HashMethod

Flyte-specific object used to wrap the hash function for a specific type

### Parameters

```python
class HashMethod(
    function: typing.Callable[[~T], str],
)
```
| Parameter | Type | Description |
|-|-|-|
| `function` | `typing.Callable[[~T], str]` | |

### Methods

| Method | Description |
|-|-|
| [`calculate()`](#calculate) | Calculate hash for `obj`. |

#### calculate()

```python
def calculate(
    obj: ~T,
) -> str
```
Calculate hash for `obj`.

| Parameter | Type | Description |
|-|-|-|
| `obj` | `~T` | |

## flytekit.core.hash.HashOnReferenceMixin

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/flytekit-sdk/packages/flytekit.core.hash.md
**HTML**: https://www.union.ai/docs/v1/union/api-reference/flytekit-sdk/packages/flytekit.core.hash/
