Swan SDK

Overview

The Swan SDK is a Python toolkit designed to simplify interactions with the SwanChain API. It provides a streamlined interface for creating and managing computational tasks, retrieving hardware information, processing payments, and monitoring task statuses.

Installation

To install the Swan SDK, use the following command:

pip install swan-sdk

Alternatively, you can clone the repository from GitHub:

git clone https://github.com/swanchain/python-swan-sdk.git

Key Features

  • API Client Integration: Easily connect to the SwanChain API.

  • Data Models: Utilize pre-defined models for seamless data handling.

  • Task Management: Create, monitor, and manage computational tasks.

  • Payment Processing: Handle payments for computational resources.

  • Status Monitoring: Track the status of your tasks in real-time.

Getting Started

Here’s a basic example to help you get started with the Swan SDK:

A sample output:

The "hello-world" task is deployed to 3 computing providers, open any link in the browser

For more detailed information and advanced usage, refer to the official documentationarrow-up-right.

Documentation and Support

For comprehensive guides and support, visit the Swan SDK GitHub pagearrow-up-right. The repository includes detailed documentation, usage examples, and community support resources.


Last updated