Deploying with Swan SDK
The Swan SDK is a toolkit designed to simplify interactions with the Swan Chain Network Resource. It provides a streamlined interface for creating and managing computational tasks, retrieving hardware information, processing payments, and monitoring task statuses.
For more sample tutorial, please refer to Python Swan SDK Samples or Go Swan SDK Samples.
Get Swan API Key
To use swan-sdk
, an Swan API key is required. Steps to get an API Key:
Go to Swan Console, switch network to Swan Chain Mainnet.
Login with your wallet.
Click
API Keys
->Generate API Key
Quick Start
Installation
To use Python Swan SDK, you first need to install it and its dependencies. Before installing Swan SDK, install Python 3.8 or later and web3.py(==6.15.1).
Install the latest Swan SDK release via pip:
Or install via GitHub:
Using Python Swan SDK
To use Python Swan SDK, you must first import it and indicate which service you're going to use:
Now that you have an Orchestrator
service, you can create and deploy instance applications as an Orchestrator task with the service.
Then you can follow up task deployment information and the URL for running applications.
Documentation and Support
More resources about swan SDK can be found here:
Last updated