# Iota Core

> The Iota Core library provides a method for generating the Iota Credentials required to initiate the WebSocket data-sharing mode of the Affinidi Iota Framework.

## Install Dependency

Package: affinidi_tdk_iota_core

```bash
pip install affinidi_tdk_iota_core
```

Check the latest version on the [PyPI repository](https://pypi.org/project/affinidi_tdk_iota_core/) or view the source on [GitHub](https://github.com/affinidi/affinidi-tdk/tree/main/libs/iota-core). The Python library for iota-core is transpiled from the TypeScript version using JSII.

## Classes and Methods

### Iota

Provides methods related to Affinidi Iota Framework to generate credentials to sign the request token.

#### limited_token_to_iota_credentials

A static method that fetches Iota Credentials from an Iota JWT token.

Parameters

    iotaJwt
    str
    Required
  JSON Web Token generated from [authProvider.create_iota_token()](/dev-tools/affinidi-tdk.md#packages#createiotatoken).

Example

```python
import affinidi_tdk_iota_core
import affinidi_tdk_auth_provider

iota_token = authProvider.create_iota_token('', '')
iota_credentials = await affinidi_tdk_iota_core.Iota.limited_token_to_iota_credentials(iota_token.iota_jwt)
```
