Skip to main content

Superposition SDK

Superposition SDK is a Python client for the Superposition platform, designed to facilitate programmatic integration of all Superposition's API capabilities in Python applications. Read the complete documentation at Superposition SDK Documentation.

Installation

Install the Superposition SDK using pip:

pip install superposition-sdk

Initialization

from superposition_sdk.client import Config, Superposition
client = Superposition(Config(endpoint_uri="http://localhost:8080"))

Usage

The SDK provides commands for every API call that Superposition supports. Below is an example of how to use the SDK to list default configs.

import asyncio
from superposition_sdk.client import Config, ListDefaultConfigsInput, Superposition
from pprint import pprint

async def list_configs():
    client = Superposition(Config(endpoint_uri="http://localhost:8080"))
    list_configs = ListDefaultConfigsInput(workspace_id="upi", org_id="orgid162145664241766405", all=True)
    response = await client.list_default_configs(list_configs)
    pprint(response)

asyncio.run(list_configs())

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

superposition_sdk-0.115.3-py3-none-any.whl (100.8 kB view details)

Uploaded Python 3

File details

Details for the file superposition_sdk-0.115.3-py3-none-any.whl.

File metadata

File hashes

Hashes for superposition_sdk-0.115.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0e7d617e960a4bad9cda5d10810d3f3618d27ebce9a6b6d69a22fcf6be655572
MD5 2080b98a4b1911b46d1f01ecbb460368
BLAKE2b-256 a695e79c22b02e9e3e10775ad6807df0301a86666365a398cfb2380fc7b3a9f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page