Python SDK

Superb AI Suite SDK Sample

Superb AI Suite SDK is available via Github. Please refer to the following link for more guides and example SDK use-cases: Superb AI Suite Examples SDK

  • Image Basic: Basic SDK Example for Image projects
  • Polygon to Bitmask: Convert exported polygon segmentation result to bitmask
  • Suite-Pachyderm Integration: Suite - Pachyderm import / export examples

Initialization

First, follow the steps in the guide below to install and configure the CLI-SDK package.

Getting Started


Initialize the Suite SDK

Once you're configured, you can initialize the Suite Python SDK as below.

import spb.sdk

# Print Suite SDK version
print(spb.sdk.__version__)

Initialize the SDK Client to access your project

List all projects (using paginated API)

client = spb.sdk.Client()

total_project_count, projects = client.get_projects(page=1, page_size=10)
for project in projects:
    print('Project Name: {}'.format(project.name))

Any other questions? E-mail us at [email protected].