Skip to main content
The Simplismart Python SDK provides programmatic access to manage model repositories, deployments, and secrets.

Installation

Install the SDK using pip:

Authentication

The SDK uses Playground (PG) token authentication. You can obtain your token from the Simplismart Playground interface.
  1. Open Simplismart SettingsAPI Key.
  2. Copy the Playground Token and set it as SIMPLISMART_PG_TOKEN in your .env file or environment.

Environment Variables

Configure authentication using environment variables:

Client Initialization


Quickstart Example

This end-to-end example covers the full MLOps lifecycle: compiling a model from Hugging Face, polling until it’s ready, creating a deployment, and checking its health. First of all, set necessary environment variables in your .env (see Environment Variables).
Expected Output

Error Handling

The SDK raises SimplismartError for all API errors.
Expected output (for invalid or missing deployment):

SimplismartError Attributes