Deploying with Swan SDK
Get Swan API Key
Quick Start
pip install swan-sdkgit clone https://github.com/swanchain/python-swan-sdk.git
cd python-swan-sdk
pip install .import swan
swan_orchestrator = swan.resource(api_key='<SWAN_API_KEY>', service_name='Orchestrator')result = swan_orchestrator.create_task(
repo_uri='https://github.com/swanchain/awesome-swanchain/tree/main/hello_world', # Or your own repo URI
wallet_address='<WALLET_ADDRESS>',
private_key='<PRIVATE_KEY>',
instance_type='C1ae.medium'
)
task_uuid = result['task_uuid']Documentation and Support
Last updated