superposition_sdk client
Project description
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())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file superposition_sdk-0.99.0-py3-none-any.whl.
File metadata
- Download URL: superposition_sdk-0.99.0-py3-none-any.whl
- Upload date:
- Size: 93.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04d8c74e4a3c38e6a182df47da305f82061b94ffb5c800b502d30c4600509762
|
|
| MD5 |
f79241ff61dca098155fbf6db86e63f5
|
|
| BLAKE2b-256 |
bc484a43c6a9a2c542aa475db92c210003b4e06a0a74c1e303a74ce9dfb19044
|