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.2-py3-none-any.whl (100.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for superposition_sdk-0.115.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4b9fd2408d6aa934e4487a5f3f56ab28f1fa0e4f200d22ad1f113a33af173c3c
MD5 257839f6af399f294883357659a1ab16
BLAKE2b-256 d6a3405a0c9283e65b039c324ca15684a9ba241453a779adbf333b5064fffb26

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