Overview

Installation

The SDK is available on PyPI. You can install it using pip:

(.venv) $ pip install term-structure-python-sdk

or poetry:

(.venv) $ poetry add term-structure-python-sdk

Introduction

In the SDK, you can leverage a set of models to interact with both layer one (L1) and layer two (L2) of Term Structure Protocol.

L1 provides model ContractBroker for general interactions to interact with Term Structure’s smart contracts. L2 provides model AsyncSingleWalletExchangeBroker dedicated for single-wallet scenarios, and AsyncMultipleWalletExchangeBroker model for scenarios requires interactions between several wallets.

Async Support

As of the release of current version, the SDK only provides async support for L2. All the operations on L1 are synchronized. Please be aware that if you have any performance concerns.