superposition-sdk 0.91.2__py3-none-any.whl → 0.93.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of superposition-sdk might be problematic. Click here for more details.
- superposition_sdk/_private/schemas.py +1696 -652
- superposition_sdk/client.py +228 -4
- superposition_sdk/config.py +15 -1
- superposition_sdk/deserialize.py +241 -80
- superposition_sdk/models.py +1413 -396
- superposition_sdk/serialize.py +320 -81
- superposition_sdk-0.93.0.dist-info/METADATA +64 -0
- superposition_sdk-0.93.0.dist-info/RECORD +12 -0
- superposition_sdk-0.91.2.dist-info/METADATA +0 -31
- superposition_sdk-0.91.2.dist-info/RECORD +0 -12
- {superposition_sdk-0.91.2.dist-info → superposition_sdk-0.93.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: superposition_sdk
|
|
3
|
+
Version: 0.93.0
|
|
4
|
+
Summary: superposition_sdk client
|
|
5
|
+
License: Apache-2.0
|
|
6
|
+
Keywords: smithy,superposition_sdk
|
|
7
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
8
|
+
Classifier: Intended Audience :: Developers
|
|
9
|
+
Classifier: Intended Audience :: System Administrators
|
|
10
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
+
Classifier: Natural Language :: English
|
|
12
|
+
Classifier: Programming Language :: Python
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Requires-Python: >=3.12
|
|
18
|
+
Requires-Dist: smithy-core==0.0.1
|
|
19
|
+
Requires-Dist: smithy-http[aiohttp]==0.0.1
|
|
20
|
+
Requires-Dist: smithy-json==0.0.1
|
|
21
|
+
Provides-Extra: docs
|
|
22
|
+
Requires-Dist: pydata-sphinx-theme>=0.16.1; extra == 'docs'
|
|
23
|
+
Requires-Dist: sphinx>=8.2.3; extra == 'docs'
|
|
24
|
+
Provides-Extra: tests
|
|
25
|
+
Requires-Dist: pytest-asyncio<0.21.0,>=0.20.3; extra == 'tests'
|
|
26
|
+
Requires-Dist: pytest<8.0.0,>=7.2.0; extra == 'tests'
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
|
|
29
|
+
# Superposition SDK
|
|
30
|
+
|
|
31
|
+
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](https://juspay.io/superposition/docs).
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
Install the Superposition SDK using pip:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
pip install superposition-sdk
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Initialization
|
|
42
|
+
|
|
43
|
+
```python
|
|
44
|
+
from superposition_sdk.client import Config, Superposition
|
|
45
|
+
client = Superposition(Config(endpoint_uri="http://localhost:8080"))
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Usage
|
|
49
|
+
|
|
50
|
+
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.
|
|
51
|
+
|
|
52
|
+
```python
|
|
53
|
+
import asyncio
|
|
54
|
+
from superposition_sdk.client import Config, ListDefaultConfigsInput, Superposition
|
|
55
|
+
from pprint import pprint
|
|
56
|
+
|
|
57
|
+
async def list_configs():
|
|
58
|
+
client = Superposition(Config(endpoint_uri="http://localhost:8080"))
|
|
59
|
+
list_configs = ListDefaultConfigsInput(workspace_id="upi", org_id="orgid162145664241766405", all=True)
|
|
60
|
+
response = await client.list_default_configs(list_configs)
|
|
61
|
+
pprint(response)
|
|
62
|
+
|
|
63
|
+
asyncio.run(list_configs())
|
|
64
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
superposition_sdk/__init__.py,sha256=Inc_oe2U1CzZ_ZxsNVbU96RGaAlD-6M5xt1ZcW5hGUo,83
|
|
2
|
+
superposition_sdk/auth.py,sha256=U9D3FmOH8TX0cjibGy_CRnAkTnFEavAek0Jw1YUhN2g,404
|
|
3
|
+
superposition_sdk/client.py,sha256=rs7o9mTBQ7az1PdEK_FfLwyNKvP0vJrFoO3esBZOEbk,102350
|
|
4
|
+
superposition_sdk/config.py,sha256=9sPXQhX31OzU2nnOFrzlchFpfHpgnltWXynZY6qwweo,12244
|
|
5
|
+
superposition_sdk/deserialize.py,sha256=QZRjEs6oTCaGHf91_Dux-MNRLUNJohVfzOIhqgSTI-I,85196
|
|
6
|
+
superposition_sdk/models.py,sha256=nUv9Tgz_qPc00h6OxAwkTnskKbUS_yW7-SmWddIda6M,606384
|
|
7
|
+
superposition_sdk/serialize.py,sha256=tiEzN6UfBo-IzyHSSxyFf3bXNhwY-C5nOGYYzcyRNPU,80120
|
|
8
|
+
superposition_sdk/_private/__init__.py,sha256=DxsJq42a0KfQv9zzLrqT0JVpoXrR-IDIYFGuJe4g1Gc,55
|
|
9
|
+
superposition_sdk/_private/schemas.py,sha256=HWXdqzdL4zeoVevFfwTIM2EHazmTpfKBtGuYj5iSxQQ,328428
|
|
10
|
+
superposition_sdk-0.93.0.dist-info/METADATA,sha256=y8HEECJJ-aV1rxoktuvUNLV7exCQreXv_aFBFKHgoVI,2278
|
|
11
|
+
superposition_sdk-0.93.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
+
superposition_sdk-0.93.0.dist-info/RECORD,,
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: superposition_sdk
|
|
3
|
-
Version: 0.91.2
|
|
4
|
-
Summary: superposition_sdk client
|
|
5
|
-
License: Apache-2.0
|
|
6
|
-
Keywords: smithy,superposition_sdk
|
|
7
|
-
Classifier: Development Status :: 2 - Pre-Alpha
|
|
8
|
-
Classifier: Intended Audience :: Developers
|
|
9
|
-
Classifier: Intended Audience :: System Administrators
|
|
10
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
-
Classifier: Natural Language :: English
|
|
12
|
-
Classifier: Programming Language :: Python
|
|
13
|
-
Classifier: Programming Language :: Python :: 3
|
|
14
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
-
Requires-Python: >=3.12
|
|
18
|
-
Requires-Dist: smithy-core==0.0.1
|
|
19
|
-
Requires-Dist: smithy-http[aiohttp]==0.0.1
|
|
20
|
-
Requires-Dist: smithy-json==0.0.1
|
|
21
|
-
Provides-Extra: docs
|
|
22
|
-
Requires-Dist: pydata-sphinx-theme>=0.16.1; extra == 'docs'
|
|
23
|
-
Requires-Dist: sphinx>=8.2.3; extra == 'docs'
|
|
24
|
-
Provides-Extra: tests
|
|
25
|
-
Requires-Dist: pytest-asyncio<0.21.0,>=0.20.3; extra == 'tests'
|
|
26
|
-
Requires-Dist: pytest<8.0.0,>=7.2.0; extra == 'tests'
|
|
27
|
-
Description-Content-Type: text/markdown
|
|
28
|
-
|
|
29
|
-
## Superposition Client
|
|
30
|
-
|
|
31
|
-
superposition_sdk client
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
superposition_sdk/__init__.py,sha256=Inc_oe2U1CzZ_ZxsNVbU96RGaAlD-6M5xt1ZcW5hGUo,83
|
|
2
|
-
superposition_sdk/auth.py,sha256=U9D3FmOH8TX0cjibGy_CRnAkTnFEavAek0Jw1YUhN2g,404
|
|
3
|
-
superposition_sdk/client.py,sha256=kG44iiz2qtuS4I8MYDkzUxrAbzFUbyPymyPrbuZpMSc,94395
|
|
4
|
-
superposition_sdk/config.py,sha256=elPULtcHP7am9Wk7VqIpzPMNlcQIdH1Do9gNeAkqdHM,11425
|
|
5
|
-
superposition_sdk/deserialize.py,sha256=fVUcHo_BtWwtINcbBWGXDVo0GmSPT0pEyDwEB6Jf82Y,77499
|
|
6
|
-
superposition_sdk/models.py,sha256=QX5190Si02khYK-qPSzopry44QZItpE34ddyQL4wfJ4,566254
|
|
7
|
-
superposition_sdk/serialize.py,sha256=aaQOAoA-_HaFl0Zl5cC2JSPebG4oE0OH1Izj1wy3p78,73276
|
|
8
|
-
superposition_sdk/_private/__init__.py,sha256=DxsJq42a0KfQv9zzLrqT0JVpoXrR-IDIYFGuJe4g1Gc,55
|
|
9
|
-
superposition_sdk/_private/schemas.py,sha256=-3hoDubqofKxKkXpJ4Prj6XfiOCZF_XfI0sU51EWH0g,305323
|
|
10
|
-
superposition_sdk-0.91.2.dist-info/METADATA,sha256=l8rZJqbsXHFqqiaO6j7PRYMmXIsuhzynDT0R4fb1ljM,1143
|
|
11
|
-
superposition_sdk-0.91.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
-
superposition_sdk-0.91.2.dist-info/RECORD,,
|
|
File without changes
|