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())
Metadata
Release files for superposition-sdk 0.118.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| superposition_sdk-0.118.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / superposition_sdk-0.118.0-py3-none-any.whl
| Download URL | superposition_sdk-0.118.0-py3-none-any.whl |
|---|---|
| Size | 102.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42569ef5a8e739ee0db77645ba291b5932c6fae0c542f7218fc69a359171aece
|
|
BLAKE2b-256 checksum How to use checksums |
0360f1a2612ffc89232dcfe4085dd2769d04998931b02307ddeda252365410a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|