mixpeek 0.13.2__py3-none-any.whl → 0.14.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.
- mixpeek/_version.py +1 -1
- mixpeek/assets.py +65 -22
- mixpeek/basesdk.py +1 -1
- mixpeek/collections.py +49 -18
- mixpeek/featureextractors.py +11 -4
- mixpeek/features.py +45 -14
- mixpeek/health.py +11 -4
- mixpeek/ingest.py +31 -12
- mixpeek/interactions.py +9 -2
- mixpeek/models/__init__.py +8 -3
- mixpeek/models/errordetail.py +58 -0
- mixpeek/models/errorresponse.py +8 -4
- mixpeek/models/security.py +25 -0
- mixpeek/namespaces.py +61 -24
- mixpeek/organizations.py +79 -30
- mixpeek/sdk.py +11 -148
- mixpeek/sdkconfiguration.py +6 -4
- mixpeek/searchinteractions.py +31 -12
- mixpeek/tasks.py +21 -8
- mixpeek/utils/__init__.py +3 -1
- mixpeek/utils/security.py +18 -0
- {mixpeek-0.13.2.dist-info → mixpeek-0.14.0.dist-info}/METADATA +55 -13
- {mixpeek-0.13.2.dist-info → mixpeek-0.14.0.dist-info}/RECORD +24 -23
- mixpeek/models/errormessage.py +0 -13
- {mixpeek-0.13.2.dist-info → mixpeek-0.14.0.dist-info}/WHEEL +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: mixpeek
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.14.0
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
5
5
|
Home-page: https://github.com/mixpeek/python-sdk.git
|
6
6
|
Author: Speakeasy
|
@@ -38,6 +38,7 @@ Mixpeek API: This is the Mixpeek API, providing access to various endpoints for
|
|
38
38
|
* [SDK Installation](https://github.com/mixpeek/python-sdk/blob/master/#sdk-installation)
|
39
39
|
* [IDE Support](https://github.com/mixpeek/python-sdk/blob/master/#ide-support)
|
40
40
|
* [SDK Example Usage](https://github.com/mixpeek/python-sdk/blob/master/#sdk-example-usage)
|
41
|
+
* [Authentication](https://github.com/mixpeek/python-sdk/blob/master/#authentication)
|
41
42
|
* [Available Resources and Operations](https://github.com/mixpeek/python-sdk/blob/master/#available-resources-and-operations)
|
42
43
|
* [Retries](https://github.com/mixpeek/python-sdk/blob/master/#retries)
|
43
44
|
* [Error Handling](https://github.com/mixpeek/python-sdk/blob/master/#error-handling)
|
@@ -90,10 +91,13 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
|
|
90
91
|
```python
|
91
92
|
# Synchronous Example
|
92
93
|
from mixpeek import Mixpeek
|
94
|
+
import os
|
93
95
|
|
94
|
-
with Mixpeek(
|
96
|
+
with Mixpeek(
|
97
|
+
bearer_auth=os.getenv("MIXPEEK_BEARER_AUTH", ""),
|
98
|
+
) as mixpeek:
|
95
99
|
|
96
|
-
res = mixpeek.
|
100
|
+
res = mixpeek.organizations.get()
|
97
101
|
|
98
102
|
# Handle response
|
99
103
|
print(res)
|
@@ -106,11 +110,14 @@ The same SDK client can also be used to make asychronous requests by importing a
|
|
106
110
|
# Asynchronous Example
|
107
111
|
import asyncio
|
108
112
|
from mixpeek import Mixpeek
|
113
|
+
import os
|
109
114
|
|
110
115
|
async def main():
|
111
|
-
async with Mixpeek(
|
116
|
+
async with Mixpeek(
|
117
|
+
bearer_auth=os.getenv("MIXPEEK_BEARER_AUTH", ""),
|
118
|
+
) as mixpeek:
|
112
119
|
|
113
|
-
res = await mixpeek.
|
120
|
+
res = await mixpeek.organizations.get_async()
|
114
121
|
|
115
122
|
# Handle response
|
116
123
|
print(res)
|
@@ -119,6 +126,34 @@ asyncio.run(main())
|
|
119
126
|
```
|
120
127
|
<!-- End SDK Example Usage [usage] -->
|
121
128
|
|
129
|
+
<!-- Start Authentication [security] -->
|
130
|
+
## Authentication
|
131
|
+
|
132
|
+
### Per-Client Security Schemes
|
133
|
+
|
134
|
+
This SDK supports the following security scheme globally:
|
135
|
+
|
136
|
+
| Name | Type | Scheme | Environment Variable |
|
137
|
+
| ------------- | ---- | ----------- | --------------------- |
|
138
|
+
| `bearer_auth` | http | HTTP Bearer | `MIXPEEK_BEARER_AUTH` |
|
139
|
+
|
140
|
+
To authenticate with the API the `bearer_auth` parameter must be set when initializing the SDK client instance. For example:
|
141
|
+
```python
|
142
|
+
from mixpeek import Mixpeek
|
143
|
+
import os
|
144
|
+
|
145
|
+
with Mixpeek(
|
146
|
+
bearer_auth=os.getenv("MIXPEEK_BEARER_AUTH", ""),
|
147
|
+
) as mixpeek:
|
148
|
+
|
149
|
+
res = mixpeek.organizations.get()
|
150
|
+
|
151
|
+
# Handle response
|
152
|
+
print(res)
|
153
|
+
|
154
|
+
```
|
155
|
+
<!-- End Authentication [security] -->
|
156
|
+
|
122
157
|
<!-- Start Available Resources and Operations [operations] -->
|
123
158
|
## Available Resources and Operations
|
124
159
|
|
@@ -169,9 +204,6 @@ asyncio.run(main())
|
|
169
204
|
|
170
205
|
* [list](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/interactions/README.md#list) - List Interactions
|
171
206
|
|
172
|
-
### [Mixpeek SDK](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/mixpeek/README.md)
|
173
|
-
|
174
|
-
* [debug_openapi_debug_openapi_get](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/mixpeek/README.md#debug_openapi_debug_openapi_get) - Debug Openapi
|
175
207
|
|
176
208
|
### [namespaces](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/namespaces/README.md)
|
177
209
|
|
@@ -216,10 +248,13 @@ To change the default retry strategy for a single API call, simply provide a `Re
|
|
216
248
|
```python
|
217
249
|
from mixpeek import Mixpeek
|
218
250
|
from mixpeek.utils import BackoffStrategy, RetryConfig
|
251
|
+
import os
|
219
252
|
|
220
|
-
with Mixpeek(
|
253
|
+
with Mixpeek(
|
254
|
+
bearer_auth=os.getenv("MIXPEEK_BEARER_AUTH", ""),
|
255
|
+
) as mixpeek:
|
221
256
|
|
222
|
-
res = mixpeek.
|
257
|
+
res = mixpeek.organizations.get(,
|
223
258
|
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
|
224
259
|
|
225
260
|
# Handle response
|
@@ -231,12 +266,14 @@ If you'd like to override the default retry strategy for all operations that sup
|
|
231
266
|
```python
|
232
267
|
from mixpeek import Mixpeek
|
233
268
|
from mixpeek.utils import BackoffStrategy, RetryConfig
|
269
|
+
import os
|
234
270
|
|
235
271
|
with Mixpeek(
|
236
272
|
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
|
273
|
+
bearer_auth=os.getenv("MIXPEEK_BEARER_AUTH", ""),
|
237
274
|
) as mixpeek:
|
238
275
|
|
239
|
-
res = mixpeek.
|
276
|
+
res = mixpeek.organizations.get()
|
240
277
|
|
241
278
|
# Handle response
|
242
279
|
print(res)
|
@@ -270,8 +307,11 @@ When custom error responses are specified for an operation, the SDK may also rai
|
|
270
307
|
|
271
308
|
```python
|
272
309
|
from mixpeek import Mixpeek, models
|
310
|
+
import os
|
273
311
|
|
274
|
-
with Mixpeek(
|
312
|
+
with Mixpeek(
|
313
|
+
bearer_auth=os.getenv("MIXPEEK_BEARER_AUTH", ""),
|
314
|
+
) as mixpeek:
|
275
315
|
res = None
|
276
316
|
try:
|
277
317
|
|
@@ -300,12 +340,14 @@ with Mixpeek() as mixpeek:
|
|
300
340
|
The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
|
301
341
|
```python
|
302
342
|
from mixpeek import Mixpeek
|
343
|
+
import os
|
303
344
|
|
304
345
|
with Mixpeek(
|
305
346
|
server_url="https://api.mixpeek.com/",
|
347
|
+
bearer_auth=os.getenv("MIXPEEK_BEARER_AUTH", ""),
|
306
348
|
) as mixpeek:
|
307
349
|
|
308
|
-
res = mixpeek.
|
350
|
+
res = mixpeek.organizations.get()
|
309
351
|
|
310
352
|
# Handle response
|
311
353
|
print(res)
|
@@ -4,17 +4,17 @@ mixpeek/_hooks/__init__.py,sha256=9_7W5jAYw8rcO8Kfc-Ty-lB82BHfksAJJpVFb_UeU1c,14
|
|
4
4
|
mixpeek/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
|
5
5
|
mixpeek/_hooks/sdkhooks.py,sha256=NMqSNr_PmeJuQgXFEntPJElH9a6yfdyvwEQFH0TrunI,2557
|
6
6
|
mixpeek/_hooks/types.py,sha256=Qh9pO5ndynMrWpMLPkJUsOmAJ1AJHntJAXb5Yxe_a4o,2568
|
7
|
-
mixpeek/_version.py,sha256=
|
8
|
-
mixpeek/assets.py,sha256=
|
9
|
-
mixpeek/basesdk.py,sha256=
|
10
|
-
mixpeek/collections.py,sha256=
|
11
|
-
mixpeek/featureextractors.py,sha256=
|
12
|
-
mixpeek/features.py,sha256=
|
13
|
-
mixpeek/health.py,sha256=
|
7
|
+
mixpeek/_version.py,sha256=2uDSIFYmRDfo5SZ95N0fOJ5UpKgo-Tp7mPg6vnQGvM0,312
|
8
|
+
mixpeek/assets.py,sha256=FxsU6meCiGYKWPwFWT_67UJO4XwSg1vgY2QMSyspNfA,68830
|
9
|
+
mixpeek/basesdk.py,sha256=j_PZqE6WgIfx1cPCK5gAVn-rgPy9iLhUN5ELtefoEU0,11976
|
10
|
+
mixpeek/collections.py,sha256=HXgrieJfXHmdG88t_no0A35Jt66X19hT0zUdGL49XiU,44367
|
11
|
+
mixpeek/featureextractors.py,sha256=vhBNENPiR38RhBsqQqTyE-xpjw5RFaPGbowwRIFUcog,8686
|
12
|
+
mixpeek/features.py,sha256=N-q-YJX9_lw3-jz-fb8_gVyRiyJaguITXv1xEs9Rdek,54022
|
13
|
+
mixpeek/health.py,sha256=77BbCPfMkuuLSJdIG89lual5PhnT_LqXzFVQDKemEi0,6885
|
14
14
|
mixpeek/httpclient.py,sha256=WDbLpMzo7qmWki_ryOJcCAYNI1T4uyWKV08rRuCdNII,2688
|
15
|
-
mixpeek/ingest.py,sha256=
|
16
|
-
mixpeek/interactions.py,sha256=
|
17
|
-
mixpeek/models/__init__.py,sha256=
|
15
|
+
mixpeek/ingest.py,sha256=x0FlcLe7QNIoDaTjh1RJ-4FRzt8KqzzFFUrhPUK763U,39594
|
16
|
+
mixpeek/interactions.py,sha256=LlOUg8PvNkWulit4G9CFe6Rz1H4I4jeHI0p8_qjEY-g,9465
|
17
|
+
mixpeek/models/__init__.py,sha256=GZlLWl-zo4kSoV7H3pR6vXxBmNk_E_D1aJGrFuRTcrc,27780
|
18
18
|
mixpeek/models/actionusage.py,sha256=WAnnBVTeQ9j0dtIrubfyyJQwbBamxManfS8fc2OFNyo,324
|
19
19
|
mixpeek/models/apierror.py,sha256=9mTyJSyvUAOnSfW_1HWt9dGl8IDlpQ68DebwYsDNdug,528
|
20
20
|
mixpeek/models/apikey.py,sha256=P99SWsu6wgc6HStE2MteANIGShUkM2dwQnbQvdg5AOc,654
|
@@ -47,8 +47,8 @@ mixpeek/models/delete_user_organizations_users_user_email_deleteop.py,sha256=pwx
|
|
47
47
|
mixpeek/models/denseembedding.py,sha256=ECX8Nwo6tD8Qm1WxGPGOy4H8WYLQ6q6VKqbnanT3vlA,413
|
48
48
|
mixpeek/models/embeddingrequest.py,sha256=9Bk67IV1nr-d_UkTXkkL2e2o8Kv-YOHR0O3clHPGVHk,2092
|
49
49
|
mixpeek/models/embeddingresponse.py,sha256=1H6OWwIIO0ktqhmK0mIGdo3Bqv8saM7jFaFlljEZL1g,2223
|
50
|
-
mixpeek/models/
|
51
|
-
mixpeek/models/errorresponse.py,sha256
|
50
|
+
mixpeek/models/errordetail.py,sha256=j7QNqtNrAHjznF8F-eBuxwEedFhYIqP5YKOyX8dSlcg,1510
|
51
|
+
mixpeek/models/errorresponse.py,sha256=YIbCFc44szh_OIUoQ3BByHWouYwa2Tqedm9NJcrNvyQ,582
|
52
52
|
mixpeek/models/facedetectsettings.py,sha256=mU78KWd0x1Uy_8FqyWSWPPJcDbwFhxIcAc1RJeR8uL4,1710
|
53
53
|
mixpeek/models/featureextractionembeddingrequest.py,sha256=fB2P7kPMKu1YSF9S8DgVlmdpcvxfcGsv4-Q8dlo64Jk,1764
|
54
54
|
mixpeek/models/featureresponse.py,sha256=eWsnn1FSccueE9UZOSxVOH_4IimfuKbbsS1bKNPvJhs,2521
|
@@ -123,6 +123,7 @@ mixpeek/models/searchinteraction.py,sha256=2X7aVM6Uoknv6mU1rZlUV9oUmDD1rTkDTXCY7
|
|
123
123
|
mixpeek/models/searchquery_output.py,sha256=c7Ar09TanSqoLfLl-PeLcSCXpwUW9G-dm_TS8xPrhPw,2617
|
124
124
|
mixpeek/models/searchrequestfeatures_input.py,sha256=kQE7EPFU3yYXJ6kX2VB7Rz9_Y7eFzgkfooKeFxZvxmA,5769
|
125
125
|
mixpeek/models/searchrequestfeatures_output.py,sha256=s044mekxr7OF68sco7OvRALMt-w6scwbGHIm12wtVXs,5724
|
126
|
+
mixpeek/models/security.py,sha256=KndEoU3C-m7MnQHfXap3lvs4Qp_46e4O-0bzjYcJlx0,690
|
126
127
|
mixpeek/models/sortoption.py,sha256=3_cJW0A9vt8INQowzJ_kZtmYT1mlBNy-__f-tvLiC3Q,639
|
127
128
|
mixpeek/models/sparseembedding.py,sha256=-nXJSRELVSQqTyXAPYA4swPKBscLdljq9vH4N91Yz7A,530
|
128
129
|
mixpeek/models/tasks_model_taskresponse.py,sha256=oyO5jpGPk9UEDS-gyZ6VGqjZrLUcYto_ODMzwvT_Z8o,516
|
@@ -147,16 +148,16 @@ mixpeek/models/videodetectsettings.py,sha256=3l8pOw2USpDQIyPX27yStSPkrgLADPY9wHd
|
|
147
148
|
mixpeek/models/videoreadsettings.py,sha256=3ZmqiQk_SRrylAMHX30PtJuUqgu_u5AwbZEOwfyZ4mM,2409
|
148
149
|
mixpeek/models/videosettings.py,sha256=bQe2vWYyaT0DSyELL49XqrcJIPyD0g8JgBaG7McOwSA,4094
|
149
150
|
mixpeek/models/videotranscriptionsettings.py,sha256=eIrlsSw5AUA9uE98bXvfIoitK5nu6ppq7412YQWQqtk,2453
|
150
|
-
mixpeek/namespaces.py,sha256=
|
151
|
-
mixpeek/organizations.py,sha256=
|
151
|
+
mixpeek/namespaces.py,sha256=V4GZu9ueay3bw_Rlofo0figPDUPfML4XAZudRmYtEjQ,48214
|
152
|
+
mixpeek/organizations.py,sha256=JcnABmWBzvQn8uto9XlNg_NsbzKkFUr3RJoloTY_aXQ,62467
|
152
153
|
mixpeek/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
153
|
-
mixpeek/sdk.py,sha256=
|
154
|
-
mixpeek/sdkconfiguration.py,sha256=
|
155
|
-
mixpeek/searchinteractions.py,sha256=
|
156
|
-
mixpeek/tasks.py,sha256=
|
154
|
+
mixpeek/sdk.py,sha256=h1kSnRLMyKciHehOXJHSPrGDv1b7quk_CuR-HglPwMM,5617
|
155
|
+
mixpeek/sdkconfiguration.py,sha256=GQbUnA-vkjh_U-6Q4s3_F6yN1bWj-h01AZjiP0xtNS0,1535
|
156
|
+
mixpeek/searchinteractions.py,sha256=g-0QxU0Wi_IaMvT6n7OM2Cryr_vtQZzZ3HZpBl6AG0I,28152
|
157
|
+
mixpeek/tasks.py,sha256=lvDpvaP_vIpYltWWuXxeAZtOJXC68Sroh9OgYIT6u5A,16532
|
157
158
|
mixpeek/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
158
159
|
mixpeek/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
|
159
|
-
mixpeek/utils/__init__.py,sha256=
|
160
|
+
mixpeek/utils/__init__.py,sha256=8npwwHS-7zjVrbkzBGO-Uk4GkjC240PCleMbgPK1Axs,2418
|
160
161
|
mixpeek/utils/annotations.py,sha256=aR7mZG34FzgRdew7WZPYEu9QGBerpuKxCF4sek5Z_5Y,1699
|
161
162
|
mixpeek/utils/enums.py,sha256=VzjeslROrAr2luZOTJlvu-4UlxgTaGOKlRYtJJ7IfyY,1006
|
162
163
|
mixpeek/utils/eventstreaming.py,sha256=LtcrfJYw4nP2Oe4Wl0-cEURLzRGYReRGWNFY5wYECIE,6186
|
@@ -167,10 +168,10 @@ mixpeek/utils/metadata.py,sha256=Per2KFXXOqOtoUWXrlIfjrSrBg199KrRW0nKQDgHIBU,313
|
|
167
168
|
mixpeek/utils/queryparams.py,sha256=MTK6inMS1_WwjmMJEJmAn67tSHHJyarpdGRlorRHEtI,5899
|
168
169
|
mixpeek/utils/requestbodies.py,sha256=ySjEyjcLi731LNUahWvLOrES2HihuA8VrOJx4eQ7Qzg,2101
|
169
170
|
mixpeek/utils/retries.py,sha256=6yhfZifqIat9i76xF0lTR2jLj1IN9BNGyqqxATlEFPU,6348
|
170
|
-
mixpeek/utils/security.py,sha256=
|
171
|
+
mixpeek/utils/security.py,sha256=3mF13Je002bp6DvX_HTNiw9maMpX-8EY_Eb2s9SYO0U,6020
|
171
172
|
mixpeek/utils/serializers.py,sha256=BSJT7kBOkNBFyP7KREyMoe14JGbgijD1M6AXFMbdmco,4924
|
172
173
|
mixpeek/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
173
174
|
mixpeek/utils/values.py,sha256=_89YXPTI_BU6SXJBzFR4pIzTCBPQW9tsOTN1jeBBIDs,3428
|
174
|
-
mixpeek-0.
|
175
|
-
mixpeek-0.
|
176
|
-
mixpeek-0.
|
175
|
+
mixpeek-0.14.0.dist-info/METADATA,sha256=Rh1V10nKcCBhckJXfM0ZLcQAdYMm29xRwU2LUubAQNk,19744
|
176
|
+
mixpeek-0.14.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
177
|
+
mixpeek-0.14.0.dist-info/RECORD,,
|
mixpeek/models/errormessage.py
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
from mixpeek.types import BaseModel
|
5
|
-
from typing_extensions import TypedDict
|
6
|
-
|
7
|
-
|
8
|
-
class ErrorMessageTypedDict(TypedDict):
|
9
|
-
msg: str
|
10
|
-
|
11
|
-
|
12
|
-
class ErrorMessage(BaseModel):
|
13
|
-
msg: str
|
File without changes
|