mixpeek 0.18.12__py3-none-any.whl → 0.18.14__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 +3 -3
- mixpeek/assets.py +182 -98
- mixpeek/collections.py +130 -70
- mixpeek/featureextractors.py +26 -14
- mixpeek/features.py +130 -70
- mixpeek/ingestassets.py +78 -42
- mixpeek/namespaces.py +182 -98
- mixpeek/organizations.py +130 -70
- mixpeek/tasks.py +78 -42
- mixpeek/taxonomies.py +78 -42
- mixpeek/taxonomyentities.py +182 -98
- mixpeek/users.py +78 -42
- {mixpeek-0.18.12.dist-info → mixpeek-0.18.14.dist-info}/METADATA +32 -1
- {mixpeek-0.18.12.dist-info → mixpeek-0.18.14.dist-info}/RECORD +15 -15
- {mixpeek-0.18.12.dist-info → mixpeek-0.18.14.dist-info}/WHEEL +0 -0
mixpeek/users.py
CHANGED
@@ -75,20 +75,26 @@ class Users(BaseSDK):
|
|
75
75
|
retry_config=retry_config,
|
76
76
|
)
|
77
77
|
|
78
|
-
|
78
|
+
response_data: Any = None
|
79
79
|
if utils.match_response(http_res, "200", "application/json"):
|
80
80
|
return utils.unmarshal_json(http_res.text, models.UserModelOutput)
|
81
81
|
if utils.match_response(
|
82
82
|
http_res, ["400", "401", "403", "404"], "application/json"
|
83
83
|
):
|
84
|
-
|
85
|
-
|
84
|
+
response_data = utils.unmarshal_json(
|
85
|
+
http_res.text, models.ErrorResponseData
|
86
|
+
)
|
87
|
+
raise models.ErrorResponse(data=response_data)
|
86
88
|
if utils.match_response(http_res, "422", "application/json"):
|
87
|
-
|
88
|
-
|
89
|
+
response_data = utils.unmarshal_json(
|
90
|
+
http_res.text, models.HTTPValidationErrorData
|
91
|
+
)
|
92
|
+
raise models.HTTPValidationError(data=response_data)
|
89
93
|
if utils.match_response(http_res, "500", "application/json"):
|
90
|
-
|
91
|
-
|
94
|
+
response_data = utils.unmarshal_json(
|
95
|
+
http_res.text, models.ErrorResponseData
|
96
|
+
)
|
97
|
+
raise models.ErrorResponse(data=response_data)
|
92
98
|
if utils.match_response(http_res, "4XX", "*"):
|
93
99
|
http_res_text = utils.stream_to_text(http_res)
|
94
100
|
raise models.APIError(
|
@@ -175,20 +181,26 @@ class Users(BaseSDK):
|
|
175
181
|
retry_config=retry_config,
|
176
182
|
)
|
177
183
|
|
178
|
-
|
184
|
+
response_data: Any = None
|
179
185
|
if utils.match_response(http_res, "200", "application/json"):
|
180
186
|
return utils.unmarshal_json(http_res.text, models.UserModelOutput)
|
181
187
|
if utils.match_response(
|
182
188
|
http_res, ["400", "401", "403", "404"], "application/json"
|
183
189
|
):
|
184
|
-
|
185
|
-
|
190
|
+
response_data = utils.unmarshal_json(
|
191
|
+
http_res.text, models.ErrorResponseData
|
192
|
+
)
|
193
|
+
raise models.ErrorResponse(data=response_data)
|
186
194
|
if utils.match_response(http_res, "422", "application/json"):
|
187
|
-
|
188
|
-
|
195
|
+
response_data = utils.unmarshal_json(
|
196
|
+
http_res.text, models.HTTPValidationErrorData
|
197
|
+
)
|
198
|
+
raise models.HTTPValidationError(data=response_data)
|
189
199
|
if utils.match_response(http_res, "500", "application/json"):
|
190
|
-
|
191
|
-
|
200
|
+
response_data = utils.unmarshal_json(
|
201
|
+
http_res.text, models.ErrorResponseData
|
202
|
+
)
|
203
|
+
raise models.ErrorResponse(data=response_data)
|
192
204
|
if utils.match_response(http_res, "4XX", "*"):
|
193
205
|
http_res_text = await utils.stream_to_text_async(http_res)
|
194
206
|
raise models.APIError(
|
@@ -278,20 +290,26 @@ class Users(BaseSDK):
|
|
278
290
|
retry_config=retry_config,
|
279
291
|
)
|
280
292
|
|
281
|
-
|
293
|
+
response_data: Any = None
|
282
294
|
if utils.match_response(http_res, "200", "application/json"):
|
283
295
|
return utils.unmarshal_json(http_res.text, Any)
|
284
296
|
if utils.match_response(
|
285
297
|
http_res, ["400", "401", "403", "404"], "application/json"
|
286
298
|
):
|
287
|
-
|
288
|
-
|
299
|
+
response_data = utils.unmarshal_json(
|
300
|
+
http_res.text, models.ErrorResponseData
|
301
|
+
)
|
302
|
+
raise models.ErrorResponse(data=response_data)
|
289
303
|
if utils.match_response(http_res, "422", "application/json"):
|
290
|
-
|
291
|
-
|
304
|
+
response_data = utils.unmarshal_json(
|
305
|
+
http_res.text, models.HTTPValidationErrorData
|
306
|
+
)
|
307
|
+
raise models.HTTPValidationError(data=response_data)
|
292
308
|
if utils.match_response(http_res, "500", "application/json"):
|
293
|
-
|
294
|
-
|
309
|
+
response_data = utils.unmarshal_json(
|
310
|
+
http_res.text, models.ErrorResponseData
|
311
|
+
)
|
312
|
+
raise models.ErrorResponse(data=response_data)
|
295
313
|
if utils.match_response(http_res, "4XX", "*"):
|
296
314
|
http_res_text = utils.stream_to_text(http_res)
|
297
315
|
raise models.APIError(
|
@@ -381,20 +399,26 @@ class Users(BaseSDK):
|
|
381
399
|
retry_config=retry_config,
|
382
400
|
)
|
383
401
|
|
384
|
-
|
402
|
+
response_data: Any = None
|
385
403
|
if utils.match_response(http_res, "200", "application/json"):
|
386
404
|
return utils.unmarshal_json(http_res.text, Any)
|
387
405
|
if utils.match_response(
|
388
406
|
http_res, ["400", "401", "403", "404"], "application/json"
|
389
407
|
):
|
390
|
-
|
391
|
-
|
408
|
+
response_data = utils.unmarshal_json(
|
409
|
+
http_res.text, models.ErrorResponseData
|
410
|
+
)
|
411
|
+
raise models.ErrorResponse(data=response_data)
|
392
412
|
if utils.match_response(http_res, "422", "application/json"):
|
393
|
-
|
394
|
-
|
413
|
+
response_data = utils.unmarshal_json(
|
414
|
+
http_res.text, models.HTTPValidationErrorData
|
415
|
+
)
|
416
|
+
raise models.HTTPValidationError(data=response_data)
|
395
417
|
if utils.match_response(http_res, "500", "application/json"):
|
396
|
-
|
397
|
-
|
418
|
+
response_data = utils.unmarshal_json(
|
419
|
+
http_res.text, models.ErrorResponseData
|
420
|
+
)
|
421
|
+
raise models.ErrorResponse(data=response_data)
|
398
422
|
if utils.match_response(http_res, "4XX", "*"):
|
399
423
|
http_res_text = await utils.stream_to_text_async(http_res)
|
400
424
|
raise models.APIError(
|
@@ -486,20 +510,26 @@ class Users(BaseSDK):
|
|
486
510
|
retry_config=retry_config,
|
487
511
|
)
|
488
512
|
|
489
|
-
|
513
|
+
response_data: Any = None
|
490
514
|
if utils.match_response(http_res, "200", "application/json"):
|
491
515
|
return utils.unmarshal_json(http_res.text, models.APIKey)
|
492
516
|
if utils.match_response(
|
493
517
|
http_res, ["400", "401", "403", "404"], "application/json"
|
494
518
|
):
|
495
|
-
|
496
|
-
|
519
|
+
response_data = utils.unmarshal_json(
|
520
|
+
http_res.text, models.ErrorResponseData
|
521
|
+
)
|
522
|
+
raise models.ErrorResponse(data=response_data)
|
497
523
|
if utils.match_response(http_res, "422", "application/json"):
|
498
|
-
|
499
|
-
|
524
|
+
response_data = utils.unmarshal_json(
|
525
|
+
http_res.text, models.HTTPValidationErrorData
|
526
|
+
)
|
527
|
+
raise models.HTTPValidationError(data=response_data)
|
500
528
|
if utils.match_response(http_res, "500", "application/json"):
|
501
|
-
|
502
|
-
|
529
|
+
response_data = utils.unmarshal_json(
|
530
|
+
http_res.text, models.ErrorResponseData
|
531
|
+
)
|
532
|
+
raise models.ErrorResponse(data=response_data)
|
503
533
|
if utils.match_response(http_res, "4XX", "*"):
|
504
534
|
http_res_text = utils.stream_to_text(http_res)
|
505
535
|
raise models.APIError(
|
@@ -591,20 +621,26 @@ class Users(BaseSDK):
|
|
591
621
|
retry_config=retry_config,
|
592
622
|
)
|
593
623
|
|
594
|
-
|
624
|
+
response_data: Any = None
|
595
625
|
if utils.match_response(http_res, "200", "application/json"):
|
596
626
|
return utils.unmarshal_json(http_res.text, models.APIKey)
|
597
627
|
if utils.match_response(
|
598
628
|
http_res, ["400", "401", "403", "404"], "application/json"
|
599
629
|
):
|
600
|
-
|
601
|
-
|
630
|
+
response_data = utils.unmarshal_json(
|
631
|
+
http_res.text, models.ErrorResponseData
|
632
|
+
)
|
633
|
+
raise models.ErrorResponse(data=response_data)
|
602
634
|
if utils.match_response(http_res, "422", "application/json"):
|
603
|
-
|
604
|
-
|
635
|
+
response_data = utils.unmarshal_json(
|
636
|
+
http_res.text, models.HTTPValidationErrorData
|
637
|
+
)
|
638
|
+
raise models.HTTPValidationError(data=response_data)
|
605
639
|
if utils.match_response(http_res, "500", "application/json"):
|
606
|
-
|
607
|
-
|
640
|
+
response_data = utils.unmarshal_json(
|
641
|
+
http_res.text, models.ErrorResponseData
|
642
|
+
)
|
643
|
+
raise models.ErrorResponse(data=response_data)
|
608
644
|
if utils.match_response(http_res, "4XX", "*"):
|
609
645
|
http_res_text = await utils.stream_to_text_async(http_res)
|
610
646
|
raise models.APIError(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: mixpeek
|
3
|
-
Version: 0.18.
|
3
|
+
Version: 0.18.14
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
5
5
|
Author: Speakeasy
|
6
6
|
Requires-Python: >=3.9
|
@@ -78,6 +78,37 @@ pip install mixpeek
|
|
78
78
|
```bash
|
79
79
|
poetry add mixpeek
|
80
80
|
```
|
81
|
+
|
82
|
+
### Shell and script usage with `uv`
|
83
|
+
|
84
|
+
You can use this SDK in a Python shell with [uv](https://docs.astral.sh/uv/) and the `uvx` command that comes with it like so:
|
85
|
+
|
86
|
+
```shell
|
87
|
+
uvx --from mixpeek python
|
88
|
+
```
|
89
|
+
|
90
|
+
It's also possible to write a standalone Python script without needing to set up a whole project like so:
|
91
|
+
|
92
|
+
```python
|
93
|
+
#!/usr/bin/env -S uv run --script
|
94
|
+
# /// script
|
95
|
+
# requires-python = ">=3.9"
|
96
|
+
# dependencies = [
|
97
|
+
# "mixpeek",
|
98
|
+
# ]
|
99
|
+
# ///
|
100
|
+
|
101
|
+
from mixpeek import Mixpeek
|
102
|
+
|
103
|
+
sdk = Mixpeek(
|
104
|
+
# SDK arguments
|
105
|
+
)
|
106
|
+
|
107
|
+
# Rest of script here...
|
108
|
+
```
|
109
|
+
|
110
|
+
Once that is saved to a file, you can run it with `uv run script.py` where
|
111
|
+
`script.py` can be replaced with the actual file name.
|
81
112
|
<!-- End SDK Installation [installation] -->
|
82
113
|
|
83
114
|
<!-- Start IDE Support [idesupport] -->
|
@@ -3,15 +3,15 @@ mixpeek/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpvjjVwk,11
|
|
3
3
|
mixpeek/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
|
4
4
|
mixpeek/_hooks/sdkhooks.py,sha256=T0xbVPw8mvvFszHZlrZdtFrJBovAqE-JQfw4dS9Xi7Y,2495
|
5
5
|
mixpeek/_hooks/types.py,sha256=Qh9pO5ndynMrWpMLPkJUsOmAJ1AJHntJAXb5Yxe_a4o,2568
|
6
|
-
mixpeek/_version.py,sha256=
|
7
|
-
mixpeek/assets.py,sha256
|
6
|
+
mixpeek/_version.py,sha256=RHLlnEZzH2EnXxrXMjRq5HDN6bN-NtOESFmju2sAowk,458
|
7
|
+
mixpeek/assets.py,sha256=mWSeAD2lzan5eTLX-MrzLQsMDETekvKtGn8aUpg7YzI,77660
|
8
8
|
mixpeek/basesdk.py,sha256=j_PZqE6WgIfx1cPCK5gAVn-rgPy9iLhUN5ELtefoEU0,11976
|
9
|
-
mixpeek/collections.py,sha256=
|
10
|
-
mixpeek/featureextractors.py,sha256=
|
11
|
-
mixpeek/features.py,sha256=
|
9
|
+
mixpeek/collections.py,sha256=HAnUG8JYwFbpM7sOIXyGINQ0wdGs-LsV9g2U3U9FePI,50551
|
10
|
+
mixpeek/featureextractors.py,sha256=7AKXR-5oteJ8GOYcqB0Mn3BpORENvGgzXYQ6M53vh_A,9904
|
11
|
+
mixpeek/features.py,sha256=l_-VmpwqRcawEwuduyFz-D0od21CqicEQNXkEdQoeyY,60382
|
12
12
|
mixpeek/health.py,sha256=4i7KHGS2bYHCAE0nyHDw5g24MXcTZYVaTviQNKPW5o0,6742
|
13
13
|
mixpeek/httpclient.py,sha256=N-D-srtDBykpfyVKacTY4upDGvNLqdWlEYqhJvta99E,4194
|
14
|
-
mixpeek/ingestassets.py,sha256=
|
14
|
+
mixpeek/ingestassets.py,sha256=W6ln_UHa7HeFTMIuqsq_Gjge5S2y6XokL39Ect-Vorw,41360
|
15
15
|
mixpeek/models/__init__.py,sha256=-HwPt1eIHoKGw9ZMmBvHUmm-UxPFISwYXlc3qS4oBd0,31490
|
16
16
|
mixpeek/models/actionusage.py,sha256=WAnnBVTeQ9j0dtIrubfyyJQwbBamxManfS8fc2OFNyo,324
|
17
17
|
mixpeek/models/apierror.py,sha256=9mTyJSyvUAOnSfW_1HWt9dGl8IDlpQ68DebwYsDNdug,528
|
@@ -168,17 +168,17 @@ mixpeek/models/videodetectsettings.py,sha256=tb_r0ahLA1IejuX5Er0I-N5AFbobL5OW7yH
|
|
168
168
|
mixpeek/models/videoreadsettings.py,sha256=qFtWMM2XXZwlPgB4L-a3fQ3koxDLNtWOcGSkp7FPNdw,2427
|
169
169
|
mixpeek/models/videosettings.py,sha256=sNww8ZgmL4O4pp3wTgp76ZNzA6mC9NtOD2p-sC72pbM,4530
|
170
170
|
mixpeek/models/videotranscriptionsettings.py,sha256=70EN-PX2QiQAQjDLYaV2coUCnVjRJI2Y1pXNQYUBH2g,2471
|
171
|
-
mixpeek/namespaces.py,sha256=
|
172
|
-
mixpeek/organizations.py,sha256=
|
171
|
+
mixpeek/namespaces.py,sha256=AVZrpmDycsX4e5WUF8qQOsM8b3eoejlKnvH9SzQMy3E,66660
|
172
|
+
mixpeek/organizations.py,sha256=vy42rPHT0QOq_nGIzfHgWdj0_it7RLDPD1hfpAZCeYk,46325
|
173
173
|
mixpeek/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
174
174
|
mixpeek/sdk.py,sha256=j8NFfo1tsiiN6VmvmI53XcbeW4dHQgTocxBczCNaE08,6464
|
175
175
|
mixpeek/sdkconfiguration.py,sha256=WDFDVblhsi547ZxDPEPR243zKLM1shTDSt9w3nporHc,1703
|
176
|
-
mixpeek/tasks.py,sha256=
|
177
|
-
mixpeek/taxonomies.py,sha256=
|
178
|
-
mixpeek/taxonomyentities.py,sha256=
|
176
|
+
mixpeek/tasks.py,sha256=6Q2MIo_tZv0l026K_N_aVzLSHMcGnp1mDf9XsaAjZrg,28520
|
177
|
+
mixpeek/taxonomies.py,sha256=9p1tlrvU7wrbd9wdPKTrJeo9enDoHJBIPvHkZUTLmWs,30471
|
178
|
+
mixpeek/taxonomyentities.py,sha256=HsB0Tp9asbBGgAcIk-fQSAxUVZeW9yOdhnmodCFwp3M,76630
|
179
179
|
mixpeek/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
180
180
|
mixpeek/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
|
181
|
-
mixpeek/users.py,sha256=
|
181
|
+
mixpeek/users.py,sha256=fEAAzcyISalDraS8mJBDAaGnCsdr8280ROTBJSlWMz4,26552
|
182
182
|
mixpeek/utils/__init__.py,sha256=8npwwHS-7zjVrbkzBGO-Uk4GkjC240PCleMbgPK1Axs,2418
|
183
183
|
mixpeek/utils/annotations.py,sha256=aR7mZG34FzgRdew7WZPYEu9QGBerpuKxCF4sek5Z_5Y,1699
|
184
184
|
mixpeek/utils/enums.py,sha256=VzjeslROrAr2luZOTJlvu-4UlxgTaGOKlRYtJJ7IfyY,1006
|
@@ -194,6 +194,6 @@ mixpeek/utils/security.py,sha256=XoK-R2YMyZtVWQte7FoezfGJS-dea9jz4qQ7w5dwNWc,600
|
|
194
194
|
mixpeek/utils/serializers.py,sha256=BSJT7kBOkNBFyP7KREyMoe14JGbgijD1M6AXFMbdmco,4924
|
195
195
|
mixpeek/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
196
196
|
mixpeek/utils/values.py,sha256=_89YXPTI_BU6SXJBzFR4pIzTCBPQW9tsOTN1jeBBIDs,3428
|
197
|
-
mixpeek-0.18.
|
198
|
-
mixpeek-0.18.
|
199
|
-
mixpeek-0.18.
|
197
|
+
mixpeek-0.18.14.dist-info/METADATA,sha256=WF2zV7VQWMrkqFD1_NL5N9DLS3kmcO9j7d_UPAbCRiw,23241
|
198
|
+
mixpeek-0.18.14.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
199
|
+
mixpeek-0.18.14.dist-info/RECORD,,
|
File without changes
|