mixpeek 0.17.3__py3-none-any.whl → 0.17.4__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 +140 -28
- mixpeek/collections.py +100 -20
- mixpeek/feature_extractors.py +20 -4
- mixpeek/feature_search.py +20 -4
- mixpeek/features.py +80 -16
- mixpeek/health.py +12 -2
- mixpeek/ingest_assets.py +60 -12
- mixpeek/namespaces.py +120 -24
- mixpeek/organizations.py +160 -32
- mixpeek/tasks.py +40 -8
- mixpeek/taxonomy_entities.py +200 -40
- {mixpeek-0.17.3.dist-info → mixpeek-0.17.4.dist-info}/METADATA +10 -6
- {mixpeek-0.17.3.dist-info → mixpeek-0.17.4.dist-info}/RECORD +15 -15
- {mixpeek-0.17.3.dist-info → mixpeek-0.17.4.dist-info}/WHEEL +0 -0
mixpeek/taxonomy_entities.py
CHANGED
@@ -97,14 +97,22 @@ class TaxonomyEntities(BaseSDK):
|
|
97
97
|
if utils.match_response(http_res, "200", "application/json"):
|
98
98
|
return utils.unmarshal_json(http_res.text, models.TaskResponse)
|
99
99
|
if utils.match_response(
|
100
|
-
http_res, ["400", "401", "403", "404"
|
100
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
101
101
|
):
|
102
102
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
103
103
|
raise models.ErrorResponse(data=data)
|
104
104
|
if utils.match_response(http_res, "422", "application/json"):
|
105
105
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
106
106
|
raise models.HTTPValidationError(data=data)
|
107
|
-
if utils.match_response(http_res,
|
107
|
+
if utils.match_response(http_res, "500", "application/json"):
|
108
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
109
|
+
raise models.ErrorResponse(data=data)
|
110
|
+
if utils.match_response(http_res, "4XX", "*"):
|
111
|
+
http_res_text = utils.stream_to_text(http_res)
|
112
|
+
raise models.APIError(
|
113
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
114
|
+
)
|
115
|
+
if utils.match_response(http_res, "5XX", "*"):
|
108
116
|
http_res_text = utils.stream_to_text(http_res)
|
109
117
|
raise models.APIError(
|
110
118
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -207,14 +215,22 @@ class TaxonomyEntities(BaseSDK):
|
|
207
215
|
if utils.match_response(http_res, "200", "application/json"):
|
208
216
|
return utils.unmarshal_json(http_res.text, models.TaskResponse)
|
209
217
|
if utils.match_response(
|
210
|
-
http_res, ["400", "401", "403", "404"
|
218
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
211
219
|
):
|
212
220
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
213
221
|
raise models.ErrorResponse(data=data)
|
214
222
|
if utils.match_response(http_res, "422", "application/json"):
|
215
223
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
216
224
|
raise models.HTTPValidationError(data=data)
|
217
|
-
if utils.match_response(http_res,
|
225
|
+
if utils.match_response(http_res, "500", "application/json"):
|
226
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
227
|
+
raise models.ErrorResponse(data=data)
|
228
|
+
if utils.match_response(http_res, "4XX", "*"):
|
229
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
230
|
+
raise models.APIError(
|
231
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
232
|
+
)
|
233
|
+
if utils.match_response(http_res, "5XX", "*"):
|
218
234
|
http_res_text = await utils.stream_to_text_async(http_res)
|
219
235
|
raise models.APIError(
|
220
236
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -307,14 +323,22 @@ class TaxonomyEntities(BaseSDK):
|
|
307
323
|
if utils.match_response(http_res, "200", "application/json"):
|
308
324
|
return utils.unmarshal_json(http_res.text, models.ListTaxonomiesResponse)
|
309
325
|
if utils.match_response(
|
310
|
-
http_res, ["400", "401", "403", "404"
|
326
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
311
327
|
):
|
312
328
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
313
329
|
raise models.ErrorResponse(data=data)
|
314
330
|
if utils.match_response(http_res, "422", "application/json"):
|
315
331
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
316
332
|
raise models.HTTPValidationError(data=data)
|
317
|
-
if utils.match_response(http_res,
|
333
|
+
if utils.match_response(http_res, "500", "application/json"):
|
334
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
335
|
+
raise models.ErrorResponse(data=data)
|
336
|
+
if utils.match_response(http_res, "4XX", "*"):
|
337
|
+
http_res_text = utils.stream_to_text(http_res)
|
338
|
+
raise models.APIError(
|
339
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
340
|
+
)
|
341
|
+
if utils.match_response(http_res, "5XX", "*"):
|
318
342
|
http_res_text = utils.stream_to_text(http_res)
|
319
343
|
raise models.APIError(
|
320
344
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -407,14 +431,22 @@ class TaxonomyEntities(BaseSDK):
|
|
407
431
|
if utils.match_response(http_res, "200", "application/json"):
|
408
432
|
return utils.unmarshal_json(http_res.text, models.ListTaxonomiesResponse)
|
409
433
|
if utils.match_response(
|
410
|
-
http_res, ["400", "401", "403", "404"
|
434
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
411
435
|
):
|
412
436
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
413
437
|
raise models.ErrorResponse(data=data)
|
414
438
|
if utils.match_response(http_res, "422", "application/json"):
|
415
439
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
416
440
|
raise models.HTTPValidationError(data=data)
|
417
|
-
if utils.match_response(http_res,
|
441
|
+
if utils.match_response(http_res, "500", "application/json"):
|
442
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
443
|
+
raise models.ErrorResponse(data=data)
|
444
|
+
if utils.match_response(http_res, "4XX", "*"):
|
445
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
446
|
+
raise models.APIError(
|
447
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
448
|
+
)
|
449
|
+
if utils.match_response(http_res, "5XX", "*"):
|
418
450
|
http_res_text = await utils.stream_to_text_async(http_res)
|
419
451
|
raise models.APIError(
|
420
452
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -504,14 +536,22 @@ class TaxonomyEntities(BaseSDK):
|
|
504
536
|
if utils.match_response(http_res, "200", "application/json"):
|
505
537
|
return utils.unmarshal_json(http_res.text, models.TaxonomyModel)
|
506
538
|
if utils.match_response(
|
507
|
-
http_res, ["400", "401", "403", "404"
|
539
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
508
540
|
):
|
509
541
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
510
542
|
raise models.ErrorResponse(data=data)
|
511
543
|
if utils.match_response(http_res, "422", "application/json"):
|
512
544
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
513
545
|
raise models.HTTPValidationError(data=data)
|
514
|
-
if utils.match_response(http_res,
|
546
|
+
if utils.match_response(http_res, "500", "application/json"):
|
547
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
548
|
+
raise models.ErrorResponse(data=data)
|
549
|
+
if utils.match_response(http_res, "4XX", "*"):
|
550
|
+
http_res_text = utils.stream_to_text(http_res)
|
551
|
+
raise models.APIError(
|
552
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
553
|
+
)
|
554
|
+
if utils.match_response(http_res, "5XX", "*"):
|
515
555
|
http_res_text = utils.stream_to_text(http_res)
|
516
556
|
raise models.APIError(
|
517
557
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -601,14 +641,22 @@ class TaxonomyEntities(BaseSDK):
|
|
601
641
|
if utils.match_response(http_res, "200", "application/json"):
|
602
642
|
return utils.unmarshal_json(http_res.text, models.TaxonomyModel)
|
603
643
|
if utils.match_response(
|
604
|
-
http_res, ["400", "401", "403", "404"
|
644
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
605
645
|
):
|
606
646
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
607
647
|
raise models.ErrorResponse(data=data)
|
608
648
|
if utils.match_response(http_res, "422", "application/json"):
|
609
649
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
610
650
|
raise models.HTTPValidationError(data=data)
|
611
|
-
if utils.match_response(http_res,
|
651
|
+
if utils.match_response(http_res, "500", "application/json"):
|
652
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
653
|
+
raise models.ErrorResponse(data=data)
|
654
|
+
if utils.match_response(http_res, "4XX", "*"):
|
655
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
656
|
+
raise models.APIError(
|
657
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
658
|
+
)
|
659
|
+
if utils.match_response(http_res, "5XX", "*"):
|
612
660
|
http_res_text = await utils.stream_to_text_async(http_res)
|
613
661
|
raise models.APIError(
|
614
662
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -707,14 +755,22 @@ class TaxonomyEntities(BaseSDK):
|
|
707
755
|
if utils.match_response(http_res, "200", "application/json"):
|
708
756
|
return utils.unmarshal_json(http_res.text, models.GenericSuccessResponse)
|
709
757
|
if utils.match_response(
|
710
|
-
http_res, ["400", "401", "403", "404"
|
758
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
711
759
|
):
|
712
760
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
713
761
|
raise models.ErrorResponse(data=data)
|
714
762
|
if utils.match_response(http_res, "422", "application/json"):
|
715
763
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
716
764
|
raise models.HTTPValidationError(data=data)
|
717
|
-
if utils.match_response(http_res,
|
765
|
+
if utils.match_response(http_res, "500", "application/json"):
|
766
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
767
|
+
raise models.ErrorResponse(data=data)
|
768
|
+
if utils.match_response(http_res, "4XX", "*"):
|
769
|
+
http_res_text = utils.stream_to_text(http_res)
|
770
|
+
raise models.APIError(
|
771
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
772
|
+
)
|
773
|
+
if utils.match_response(http_res, "5XX", "*"):
|
718
774
|
http_res_text = utils.stream_to_text(http_res)
|
719
775
|
raise models.APIError(
|
720
776
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -813,14 +869,22 @@ class TaxonomyEntities(BaseSDK):
|
|
813
869
|
if utils.match_response(http_res, "200", "application/json"):
|
814
870
|
return utils.unmarshal_json(http_res.text, models.GenericSuccessResponse)
|
815
871
|
if utils.match_response(
|
816
|
-
http_res, ["400", "401", "403", "404"
|
872
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
817
873
|
):
|
818
874
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
819
875
|
raise models.ErrorResponse(data=data)
|
820
876
|
if utils.match_response(http_res, "422", "application/json"):
|
821
877
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
822
878
|
raise models.HTTPValidationError(data=data)
|
823
|
-
if utils.match_response(http_res,
|
879
|
+
if utils.match_response(http_res, "500", "application/json"):
|
880
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
881
|
+
raise models.ErrorResponse(data=data)
|
882
|
+
if utils.match_response(http_res, "4XX", "*"):
|
883
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
884
|
+
raise models.APIError(
|
885
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
886
|
+
)
|
887
|
+
if utils.match_response(http_res, "5XX", "*"):
|
824
888
|
http_res_text = await utils.stream_to_text_async(http_res)
|
825
889
|
raise models.APIError(
|
826
890
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -924,14 +988,22 @@ class TaxonomyEntities(BaseSDK):
|
|
924
988
|
if utils.match_response(http_res, "200", "application/json"):
|
925
989
|
return utils.unmarshal_json(http_res.text, models.TaxonomyModel)
|
926
990
|
if utils.match_response(
|
927
|
-
http_res, ["400", "401", "403", "404"
|
991
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
928
992
|
):
|
929
993
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
930
994
|
raise models.ErrorResponse(data=data)
|
931
995
|
if utils.match_response(http_res, "422", "application/json"):
|
932
996
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
933
997
|
raise models.HTTPValidationError(data=data)
|
934
|
-
if utils.match_response(http_res,
|
998
|
+
if utils.match_response(http_res, "500", "application/json"):
|
999
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1000
|
+
raise models.ErrorResponse(data=data)
|
1001
|
+
if utils.match_response(http_res, "4XX", "*"):
|
1002
|
+
http_res_text = utils.stream_to_text(http_res)
|
1003
|
+
raise models.APIError(
|
1004
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
1005
|
+
)
|
1006
|
+
if utils.match_response(http_res, "5XX", "*"):
|
935
1007
|
http_res_text = utils.stream_to_text(http_res)
|
936
1008
|
raise models.APIError(
|
937
1009
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -1035,14 +1107,22 @@ class TaxonomyEntities(BaseSDK):
|
|
1035
1107
|
if utils.match_response(http_res, "200", "application/json"):
|
1036
1108
|
return utils.unmarshal_json(http_res.text, models.TaxonomyModel)
|
1037
1109
|
if utils.match_response(
|
1038
|
-
http_res, ["400", "401", "403", "404"
|
1110
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
1039
1111
|
):
|
1040
1112
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1041
1113
|
raise models.ErrorResponse(data=data)
|
1042
1114
|
if utils.match_response(http_res, "422", "application/json"):
|
1043
1115
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
1044
1116
|
raise models.HTTPValidationError(data=data)
|
1045
|
-
if utils.match_response(http_res,
|
1117
|
+
if utils.match_response(http_res, "500", "application/json"):
|
1118
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1119
|
+
raise models.ErrorResponse(data=data)
|
1120
|
+
if utils.match_response(http_res, "4XX", "*"):
|
1121
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
1122
|
+
raise models.APIError(
|
1123
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
1124
|
+
)
|
1125
|
+
if utils.match_response(http_res, "5XX", "*"):
|
1046
1126
|
http_res_text = await utils.stream_to_text_async(http_res)
|
1047
1127
|
raise models.APIError(
|
1048
1128
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -1132,14 +1212,22 @@ class TaxonomyEntities(BaseSDK):
|
|
1132
1212
|
if utils.match_response(http_res, "200", "application/json"):
|
1133
1213
|
return utils.unmarshal_json(http_res.text, models.TaxonomyNode)
|
1134
1214
|
if utils.match_response(
|
1135
|
-
http_res, ["400", "401", "403", "404"
|
1215
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
1136
1216
|
):
|
1137
1217
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1138
1218
|
raise models.ErrorResponse(data=data)
|
1139
1219
|
if utils.match_response(http_res, "422", "application/json"):
|
1140
1220
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
1141
1221
|
raise models.HTTPValidationError(data=data)
|
1142
|
-
if utils.match_response(http_res,
|
1222
|
+
if utils.match_response(http_res, "500", "application/json"):
|
1223
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1224
|
+
raise models.ErrorResponse(data=data)
|
1225
|
+
if utils.match_response(http_res, "4XX", "*"):
|
1226
|
+
http_res_text = utils.stream_to_text(http_res)
|
1227
|
+
raise models.APIError(
|
1228
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
1229
|
+
)
|
1230
|
+
if utils.match_response(http_res, "5XX", "*"):
|
1143
1231
|
http_res_text = utils.stream_to_text(http_res)
|
1144
1232
|
raise models.APIError(
|
1145
1233
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -1229,14 +1317,22 @@ class TaxonomyEntities(BaseSDK):
|
|
1229
1317
|
if utils.match_response(http_res, "200", "application/json"):
|
1230
1318
|
return utils.unmarshal_json(http_res.text, models.TaxonomyNode)
|
1231
1319
|
if utils.match_response(
|
1232
|
-
http_res, ["400", "401", "403", "404"
|
1320
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
1233
1321
|
):
|
1234
1322
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1235
1323
|
raise models.ErrorResponse(data=data)
|
1236
1324
|
if utils.match_response(http_res, "422", "application/json"):
|
1237
1325
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
1238
1326
|
raise models.HTTPValidationError(data=data)
|
1239
|
-
if utils.match_response(http_res,
|
1327
|
+
if utils.match_response(http_res, "500", "application/json"):
|
1328
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1329
|
+
raise models.ErrorResponse(data=data)
|
1330
|
+
if utils.match_response(http_res, "4XX", "*"):
|
1331
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
1332
|
+
raise models.APIError(
|
1333
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
1334
|
+
)
|
1335
|
+
if utils.match_response(http_res, "5XX", "*"):
|
1240
1336
|
http_res_text = await utils.stream_to_text_async(http_res)
|
1241
1337
|
raise models.APIError(
|
1242
1338
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -1340,14 +1436,22 @@ class TaxonomyEntities(BaseSDK):
|
|
1340
1436
|
if utils.match_response(http_res, "200", "application/json"):
|
1341
1437
|
return utils.unmarshal_json(http_res.text, models.TaxonomyNode)
|
1342
1438
|
if utils.match_response(
|
1343
|
-
http_res, ["400", "401", "403", "404"
|
1439
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
1344
1440
|
):
|
1345
1441
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1346
1442
|
raise models.ErrorResponse(data=data)
|
1347
1443
|
if utils.match_response(http_res, "422", "application/json"):
|
1348
1444
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
1349
1445
|
raise models.HTTPValidationError(data=data)
|
1350
|
-
if utils.match_response(http_res,
|
1446
|
+
if utils.match_response(http_res, "500", "application/json"):
|
1447
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1448
|
+
raise models.ErrorResponse(data=data)
|
1449
|
+
if utils.match_response(http_res, "4XX", "*"):
|
1450
|
+
http_res_text = utils.stream_to_text(http_res)
|
1451
|
+
raise models.APIError(
|
1452
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
1453
|
+
)
|
1454
|
+
if utils.match_response(http_res, "5XX", "*"):
|
1351
1455
|
http_res_text = utils.stream_to_text(http_res)
|
1352
1456
|
raise models.APIError(
|
1353
1457
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -1451,14 +1555,22 @@ class TaxonomyEntities(BaseSDK):
|
|
1451
1555
|
if utils.match_response(http_res, "200", "application/json"):
|
1452
1556
|
return utils.unmarshal_json(http_res.text, models.TaxonomyNode)
|
1453
1557
|
if utils.match_response(
|
1454
|
-
http_res, ["400", "401", "403", "404"
|
1558
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
1455
1559
|
):
|
1456
1560
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1457
1561
|
raise models.ErrorResponse(data=data)
|
1458
1562
|
if utils.match_response(http_res, "422", "application/json"):
|
1459
1563
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
1460
1564
|
raise models.HTTPValidationError(data=data)
|
1461
|
-
if utils.match_response(http_res,
|
1565
|
+
if utils.match_response(http_res, "500", "application/json"):
|
1566
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1567
|
+
raise models.ErrorResponse(data=data)
|
1568
|
+
if utils.match_response(http_res, "4XX", "*"):
|
1569
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
1570
|
+
raise models.APIError(
|
1571
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
1572
|
+
)
|
1573
|
+
if utils.match_response(http_res, "5XX", "*"):
|
1462
1574
|
http_res_text = await utils.stream_to_text_async(http_res)
|
1463
1575
|
raise models.APIError(
|
1464
1576
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -1578,14 +1690,22 @@ class TaxonomyEntities(BaseSDK):
|
|
1578
1690
|
if utils.match_response(http_res, "200", "application/json"):
|
1579
1691
|
return utils.unmarshal_json(http_res.text, models.TaskResponse)
|
1580
1692
|
if utils.match_response(
|
1581
|
-
http_res, ["400", "401", "403", "404"
|
1693
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
1582
1694
|
):
|
1583
1695
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1584
1696
|
raise models.ErrorResponse(data=data)
|
1585
1697
|
if utils.match_response(http_res, "422", "application/json"):
|
1586
1698
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
1587
1699
|
raise models.HTTPValidationError(data=data)
|
1588
|
-
if utils.match_response(http_res,
|
1700
|
+
if utils.match_response(http_res, "500", "application/json"):
|
1701
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1702
|
+
raise models.ErrorResponse(data=data)
|
1703
|
+
if utils.match_response(http_res, "4XX", "*"):
|
1704
|
+
http_res_text = utils.stream_to_text(http_res)
|
1705
|
+
raise models.APIError(
|
1706
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
1707
|
+
)
|
1708
|
+
if utils.match_response(http_res, "5XX", "*"):
|
1589
1709
|
http_res_text = utils.stream_to_text(http_res)
|
1590
1710
|
raise models.APIError(
|
1591
1711
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -1705,14 +1825,22 @@ class TaxonomyEntities(BaseSDK):
|
|
1705
1825
|
if utils.match_response(http_res, "200", "application/json"):
|
1706
1826
|
return utils.unmarshal_json(http_res.text, models.TaskResponse)
|
1707
1827
|
if utils.match_response(
|
1708
|
-
http_res, ["400", "401", "403", "404"
|
1828
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
1709
1829
|
):
|
1710
1830
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1711
1831
|
raise models.ErrorResponse(data=data)
|
1712
1832
|
if utils.match_response(http_res, "422", "application/json"):
|
1713
1833
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
1714
1834
|
raise models.HTTPValidationError(data=data)
|
1715
|
-
if utils.match_response(http_res,
|
1835
|
+
if utils.match_response(http_res, "500", "application/json"):
|
1836
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1837
|
+
raise models.ErrorResponse(data=data)
|
1838
|
+
if utils.match_response(http_res, "4XX", "*"):
|
1839
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
1840
|
+
raise models.APIError(
|
1841
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
1842
|
+
)
|
1843
|
+
if utils.match_response(http_res, "5XX", "*"):
|
1716
1844
|
http_res_text = await utils.stream_to_text_async(http_res)
|
1717
1845
|
raise models.APIError(
|
1718
1846
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -1847,14 +1975,22 @@ class TaxonomyEntities(BaseSDK):
|
|
1847
1975
|
http_res.text, models.ListClassificationsResponse
|
1848
1976
|
)
|
1849
1977
|
if utils.match_response(
|
1850
|
-
http_res, ["400", "401", "403", "404"
|
1978
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
1851
1979
|
):
|
1852
1980
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1853
1981
|
raise models.ErrorResponse(data=data)
|
1854
1982
|
if utils.match_response(http_res, "422", "application/json"):
|
1855
1983
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
1856
1984
|
raise models.HTTPValidationError(data=data)
|
1857
|
-
if utils.match_response(http_res,
|
1985
|
+
if utils.match_response(http_res, "500", "application/json"):
|
1986
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1987
|
+
raise models.ErrorResponse(data=data)
|
1988
|
+
if utils.match_response(http_res, "4XX", "*"):
|
1989
|
+
http_res_text = utils.stream_to_text(http_res)
|
1990
|
+
raise models.APIError(
|
1991
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
1992
|
+
)
|
1993
|
+
if utils.match_response(http_res, "5XX", "*"):
|
1858
1994
|
http_res_text = utils.stream_to_text(http_res)
|
1859
1995
|
raise models.APIError(
|
1860
1996
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -1989,14 +2125,22 @@ class TaxonomyEntities(BaseSDK):
|
|
1989
2125
|
http_res.text, models.ListClassificationsResponse
|
1990
2126
|
)
|
1991
2127
|
if utils.match_response(
|
1992
|
-
http_res, ["400", "401", "403", "404"
|
2128
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
1993
2129
|
):
|
1994
2130
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1995
2131
|
raise models.ErrorResponse(data=data)
|
1996
2132
|
if utils.match_response(http_res, "422", "application/json"):
|
1997
2133
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
1998
2134
|
raise models.HTTPValidationError(data=data)
|
1999
|
-
if utils.match_response(http_res,
|
2135
|
+
if utils.match_response(http_res, "500", "application/json"):
|
2136
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
2137
|
+
raise models.ErrorResponse(data=data)
|
2138
|
+
if utils.match_response(http_res, "4XX", "*"):
|
2139
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
2140
|
+
raise models.APIError(
|
2141
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
2142
|
+
)
|
2143
|
+
if utils.match_response(http_res, "5XX", "*"):
|
2000
2144
|
http_res_text = await utils.stream_to_text_async(http_res)
|
2001
2145
|
raise models.APIError(
|
2002
2146
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -2090,14 +2234,22 @@ class TaxonomyEntities(BaseSDK):
|
|
2090
2234
|
if utils.match_response(http_res, "200", "application/json"):
|
2091
2235
|
return utils.unmarshal_json(http_res.text, models.GenericSuccessResponse)
|
2092
2236
|
if utils.match_response(
|
2093
|
-
http_res, ["400", "401", "403", "404"
|
2237
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
2094
2238
|
):
|
2095
2239
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
2096
2240
|
raise models.ErrorResponse(data=data)
|
2097
2241
|
if utils.match_response(http_res, "422", "application/json"):
|
2098
2242
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
2099
2243
|
raise models.HTTPValidationError(data=data)
|
2100
|
-
if utils.match_response(http_res,
|
2244
|
+
if utils.match_response(http_res, "500", "application/json"):
|
2245
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
2246
|
+
raise models.ErrorResponse(data=data)
|
2247
|
+
if utils.match_response(http_res, "4XX", "*"):
|
2248
|
+
http_res_text = utils.stream_to_text(http_res)
|
2249
|
+
raise models.APIError(
|
2250
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
2251
|
+
)
|
2252
|
+
if utils.match_response(http_res, "5XX", "*"):
|
2101
2253
|
http_res_text = utils.stream_to_text(http_res)
|
2102
2254
|
raise models.APIError(
|
2103
2255
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -2191,14 +2343,22 @@ class TaxonomyEntities(BaseSDK):
|
|
2191
2343
|
if utils.match_response(http_res, "200", "application/json"):
|
2192
2344
|
return utils.unmarshal_json(http_res.text, models.GenericSuccessResponse)
|
2193
2345
|
if utils.match_response(
|
2194
|
-
http_res, ["400", "401", "403", "404"
|
2346
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
2195
2347
|
):
|
2196
2348
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
2197
2349
|
raise models.ErrorResponse(data=data)
|
2198
2350
|
if utils.match_response(http_res, "422", "application/json"):
|
2199
2351
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
2200
2352
|
raise models.HTTPValidationError(data=data)
|
2201
|
-
if utils.match_response(http_res,
|
2353
|
+
if utils.match_response(http_res, "500", "application/json"):
|
2354
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
2355
|
+
raise models.ErrorResponse(data=data)
|
2356
|
+
if utils.match_response(http_res, "4XX", "*"):
|
2357
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
2358
|
+
raise models.APIError(
|
2359
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
2360
|
+
)
|
2361
|
+
if utils.match_response(http_res, "5XX", "*"):
|
2202
2362
|
http_res_text = await utils.stream_to_text_async(http_res)
|
2203
2363
|
raise models.APIError(
|
2204
2364
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: mixpeek
|
3
|
-
Version: 0.17.
|
3
|
+
Version: 0.17.4
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
5
5
|
Author: Speakeasy
|
6
6
|
Requires-Python: >=3.9
|
@@ -301,11 +301,12 @@ By default, an API error will raise a models.APIError exception, which has the f
|
|
301
301
|
|
302
302
|
When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `get_organization_v1_organizations_get_async` method may raise the following exceptions:
|
303
303
|
|
304
|
-
| Error Type | Status Code
|
305
|
-
| -------------------------- |
|
306
|
-
| models.ErrorResponse | 400, 401, 403, 404
|
307
|
-
| models.HTTPValidationError | 422
|
308
|
-
| models.
|
304
|
+
| Error Type | Status Code | Content Type |
|
305
|
+
| -------------------------- | ------------------ | ---------------- |
|
306
|
+
| models.ErrorResponse | 400, 401, 403, 404 | application/json |
|
307
|
+
| models.HTTPValidationError | 422 | application/json |
|
308
|
+
| models.ErrorResponse | 500 | application/json |
|
309
|
+
| models.APIError | 4XX, 5XX | \*/\* |
|
309
310
|
|
310
311
|
### Example
|
311
312
|
|
@@ -330,6 +331,9 @@ with Mixpeek(
|
|
330
331
|
except models.HTTPValidationError as e:
|
331
332
|
# handle e.data: models.HTTPValidationErrorData
|
332
333
|
raise(e)
|
334
|
+
except models.ErrorResponse as e:
|
335
|
+
# handle e.data: models.ErrorResponseData
|
336
|
+
raise(e)
|
333
337
|
except models.APIError as e:
|
334
338
|
# handle exception
|
335
339
|
raise(e)
|
@@ -3,16 +3,16 @@ 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=8nfDejKU9JUTkDsOcTJXJw2iSQELDxDgDC0r0tW-klE,458
|
7
|
+
mixpeek/assets.py,sha256=okHHFp_tkGHH_2jFQVOolykQjcAT79X5whNDq8EzyrU,75844
|
8
8
|
mixpeek/basesdk.py,sha256=j_PZqE6WgIfx1cPCK5gAVn-rgPy9iLhUN5ELtefoEU0,11976
|
9
|
-
mixpeek/collections.py,sha256=
|
10
|
-
mixpeek/feature_extractors.py,sha256=
|
11
|
-
mixpeek/feature_search.py,sha256=
|
12
|
-
mixpeek/features.py,sha256=
|
13
|
-
mixpeek/health.py,sha256=
|
9
|
+
mixpeek/collections.py,sha256=FowQr_11c94vabISINK6SHDJvXdR5m7OQ3Oxr51eLrM,49397
|
10
|
+
mixpeek/feature_extractors.py,sha256=llQ7I1pEvRsi4gk6W42zAwk5XmLQwd811R5hMjmQVf8,9666
|
11
|
+
mixpeek/feature_search.py,sha256=h3H13Qhq_I597gD69IHUuIdAKThUlFLeZOrrWOdpHY0,17677
|
12
|
+
mixpeek/features.py,sha256=dRQMzv1TEEz4ytz1VfjLBAPP7MoLPNVPySj0AQUSeOk,41774
|
13
|
+
mixpeek/health.py,sha256=4i7KHGS2bYHCAE0nyHDw5g24MXcTZYVaTviQNKPW5o0,6742
|
14
14
|
mixpeek/httpclient.py,sha256=WDbLpMzo7qmWki_ryOJcCAYNI1T4uyWKV08rRuCdNII,2688
|
15
|
-
mixpeek/ingest_assets.py,sha256=
|
15
|
+
mixpeek/ingest_assets.py,sha256=huVBLPX2e25QSV3ZVTHvJXT3EvdGCi9RuAWuxRR4AEw,40586
|
16
16
|
mixpeek/models/__init__.py,sha256=lIcW_0WjkANI-oHes13BEGfofe_BbeL5y-_HMzoPR6M,30766
|
17
17
|
mixpeek/models/actionusage.py,sha256=WAnnBVTeQ9j0dtIrubfyyJQwbBamxManfS8fc2OFNyo,324
|
18
18
|
mixpeek/models/apierror.py,sha256=9mTyJSyvUAOnSfW_1HWt9dGl8IDlpQ68DebwYsDNdug,528
|
@@ -165,13 +165,13 @@ mixpeek/models/videodetectsettings.py,sha256=tb_r0ahLA1IejuX5Er0I-N5AFbobL5OW7yH
|
|
165
165
|
mixpeek/models/videoreadsettings.py,sha256=qFtWMM2XXZwlPgB4L-a3fQ3koxDLNtWOcGSkp7FPNdw,2427
|
166
166
|
mixpeek/models/videosettings.py,sha256=sNww8ZgmL4O4pp3wTgp76ZNzA6mC9NtOD2p-sC72pbM,4530
|
167
167
|
mixpeek/models/videotranscriptionsettings.py,sha256=70EN-PX2QiQAQjDLYaV2coUCnVjRJI2Y1pXNQYUBH2g,2471
|
168
|
-
mixpeek/namespaces.py,sha256=
|
169
|
-
mixpeek/organizations.py,sha256=
|
168
|
+
mixpeek/namespaces.py,sha256=5k9uvx4ku0XihLMNUC4HHlZMxX5D7zj31dZhuy951yU,54268
|
169
|
+
mixpeek/organizations.py,sha256=Vy4IzXiUjsVDtxidIDbRi-ml2h7jsRkvFLHvzcYsa08,70777
|
170
170
|
mixpeek/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
171
171
|
mixpeek/sdk.py,sha256=K7nIws2PhKEHC79up5B5E2T7l8XYUCzV51efONbdQTA,5995
|
172
172
|
mixpeek/sdkconfiguration.py,sha256=WDFDVblhsi547ZxDPEPR243zKLM1shTDSt9w3nporHc,1703
|
173
|
-
mixpeek/tasks.py,sha256=
|
174
|
-
mixpeek/taxonomy_entities.py,sha256
|
173
|
+
mixpeek/tasks.py,sha256=s2B-3CU1bAi1b392ghYs-4UJf5iOlQZ7DmXIQ456KhY,18512
|
174
|
+
mixpeek/taxonomy_entities.py,sha256=Zh2ek3LrYtS9hdywlOI-nePnwCbSmRPQog4nAkrZxKI,104988
|
175
175
|
mixpeek/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
176
176
|
mixpeek/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
|
177
177
|
mixpeek/utils/__init__.py,sha256=8npwwHS-7zjVrbkzBGO-Uk4GkjC240PCleMbgPK1Axs,2418
|
@@ -189,6 +189,6 @@ mixpeek/utils/security.py,sha256=XoK-R2YMyZtVWQte7FoezfGJS-dea9jz4qQ7w5dwNWc,600
|
|
189
189
|
mixpeek/utils/serializers.py,sha256=BSJT7kBOkNBFyP7KREyMoe14JGbgijD1M6AXFMbdmco,4924
|
190
190
|
mixpeek/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
191
191
|
mixpeek/utils/values.py,sha256=_89YXPTI_BU6SXJBzFR4pIzTCBPQW9tsOTN1jeBBIDs,3428
|
192
|
-
mixpeek-0.17.
|
193
|
-
mixpeek-0.17.
|
194
|
-
mixpeek-0.17.
|
192
|
+
mixpeek-0.17.4.dist-info/METADATA,sha256=FnswpWs6jlw8AiGWznhkavlZJkHo5Lv4SuYLtpNwC3c,24130
|
193
|
+
mixpeek-0.17.4.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
194
|
+
mixpeek-0.17.4.dist-info/RECORD,,
|
File without changes
|