Skip to main content

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


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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for superposition_sdk-0.94.3-py3-none-any.whl
Algorithm Hash digest
SHA256 84cef5ce37d266acf9a9307c0badfe4a742c6d68b3d65e0da06498c6817970c7
MD5 c02f40d090b00e5154414a72d8a7c925
BLAKE2b-256 68b8e384c44da0996aceb5f8ee4d4c44307112b603a5d0b9b11152a3bf9006e0

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 Pingdom Monitoring Sentry Error logging StatusPage Status page