mixpeek 0.17.3__py3-none-any.whl → 0.17.5__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.5.dist-info}/METADATA +10 -6
- {mixpeek-0.17.3.dist-info → mixpeek-0.17.5.dist-info}/RECORD +15 -15
- {mixpeek-0.17.3.dist-info → mixpeek-0.17.5.dist-info}/WHEEL +0 -0
mixpeek/namespaces.py
CHANGED
@@ -97,14 +97,22 @@ class Namespaces(BaseSDK):
|
|
97
97
|
if utils.match_response(http_res, "200", "application/json"):
|
98
98
|
return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
|
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 Namespaces(BaseSDK):
|
|
207
215
|
if utils.match_response(http_res, "200", "application/json"):
|
208
216
|
return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
|
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
|
@@ -294,14 +310,22 @@ class Namespaces(BaseSDK):
|
|
294
310
|
if utils.match_response(http_res, "200", "application/json"):
|
295
311
|
return utils.unmarshal_json(http_res.text, List[models.NamespaceResponse])
|
296
312
|
if utils.match_response(
|
297
|
-
http_res, ["400", "401", "403", "404"
|
313
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
298
314
|
):
|
299
315
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
300
316
|
raise models.ErrorResponse(data=data)
|
301
317
|
if utils.match_response(http_res, "422", "application/json"):
|
302
318
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
303
319
|
raise models.HTTPValidationError(data=data)
|
304
|
-
if utils.match_response(http_res,
|
320
|
+
if utils.match_response(http_res, "500", "application/json"):
|
321
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
322
|
+
raise models.ErrorResponse(data=data)
|
323
|
+
if utils.match_response(http_res, "4XX", "*"):
|
324
|
+
http_res_text = utils.stream_to_text(http_res)
|
325
|
+
raise models.APIError(
|
326
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
327
|
+
)
|
328
|
+
if utils.match_response(http_res, "5XX", "*"):
|
305
329
|
http_res_text = utils.stream_to_text(http_res)
|
306
330
|
raise models.APIError(
|
307
331
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -381,14 +405,22 @@ class Namespaces(BaseSDK):
|
|
381
405
|
if utils.match_response(http_res, "200", "application/json"):
|
382
406
|
return utils.unmarshal_json(http_res.text, List[models.NamespaceResponse])
|
383
407
|
if utils.match_response(
|
384
|
-
http_res, ["400", "401", "403", "404"
|
408
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
385
409
|
):
|
386
410
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
387
411
|
raise models.ErrorResponse(data=data)
|
388
412
|
if utils.match_response(http_res, "422", "application/json"):
|
389
413
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
390
414
|
raise models.HTTPValidationError(data=data)
|
391
|
-
if utils.match_response(http_res,
|
415
|
+
if utils.match_response(http_res, "500", "application/json"):
|
416
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
417
|
+
raise models.ErrorResponse(data=data)
|
418
|
+
if utils.match_response(http_res, "4XX", "*"):
|
419
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
420
|
+
raise models.APIError(
|
421
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
422
|
+
)
|
423
|
+
if utils.match_response(http_res, "5XX", "*"):
|
392
424
|
http_res_text = await utils.stream_to_text_async(http_res)
|
393
425
|
raise models.APIError(
|
394
426
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -475,14 +507,22 @@ class Namespaces(BaseSDK):
|
|
475
507
|
if utils.match_response(http_res, "200", "application/json"):
|
476
508
|
return utils.unmarshal_json(http_res.text, models.TaskResponse)
|
477
509
|
if utils.match_response(
|
478
|
-
http_res, ["400", "401", "403", "404"
|
510
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
479
511
|
):
|
480
512
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
481
513
|
raise models.ErrorResponse(data=data)
|
482
514
|
if utils.match_response(http_res, "422", "application/json"):
|
483
515
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
484
516
|
raise models.HTTPValidationError(data=data)
|
485
|
-
if utils.match_response(http_res,
|
517
|
+
if utils.match_response(http_res, "500", "application/json"):
|
518
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
519
|
+
raise models.ErrorResponse(data=data)
|
520
|
+
if utils.match_response(http_res, "4XX", "*"):
|
521
|
+
http_res_text = utils.stream_to_text(http_res)
|
522
|
+
raise models.APIError(
|
523
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
524
|
+
)
|
525
|
+
if utils.match_response(http_res, "5XX", "*"):
|
486
526
|
http_res_text = utils.stream_to_text(http_res)
|
487
527
|
raise models.APIError(
|
488
528
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -569,14 +609,22 @@ class Namespaces(BaseSDK):
|
|
569
609
|
if utils.match_response(http_res, "200", "application/json"):
|
570
610
|
return utils.unmarshal_json(http_res.text, models.TaskResponse)
|
571
611
|
if utils.match_response(
|
572
|
-
http_res, ["400", "401", "403", "404"
|
612
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
573
613
|
):
|
574
614
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
575
615
|
raise models.ErrorResponse(data=data)
|
576
616
|
if utils.match_response(http_res, "422", "application/json"):
|
577
617
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
578
618
|
raise models.HTTPValidationError(data=data)
|
579
|
-
if utils.match_response(http_res,
|
619
|
+
if utils.match_response(http_res, "500", "application/json"):
|
620
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
621
|
+
raise models.ErrorResponse(data=data)
|
622
|
+
if utils.match_response(http_res, "4XX", "*"):
|
623
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
624
|
+
raise models.APIError(
|
625
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
626
|
+
)
|
627
|
+
if utils.match_response(http_res, "5XX", "*"):
|
580
628
|
http_res_text = await utils.stream_to_text_async(http_res)
|
581
629
|
raise models.APIError(
|
582
630
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -682,14 +730,22 @@ class Namespaces(BaseSDK):
|
|
682
730
|
if utils.match_response(http_res, "200", "application/json"):
|
683
731
|
return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
|
684
732
|
if utils.match_response(
|
685
|
-
http_res, ["400", "401", "403", "404"
|
733
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
686
734
|
):
|
687
735
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
688
736
|
raise models.ErrorResponse(data=data)
|
689
737
|
if utils.match_response(http_res, "422", "application/json"):
|
690
738
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
691
739
|
raise models.HTTPValidationError(data=data)
|
692
|
-
if utils.match_response(http_res,
|
740
|
+
if utils.match_response(http_res, "500", "application/json"):
|
741
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
742
|
+
raise models.ErrorResponse(data=data)
|
743
|
+
if utils.match_response(http_res, "4XX", "*"):
|
744
|
+
http_res_text = utils.stream_to_text(http_res)
|
745
|
+
raise models.APIError(
|
746
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
747
|
+
)
|
748
|
+
if utils.match_response(http_res, "5XX", "*"):
|
693
749
|
http_res_text = utils.stream_to_text(http_res)
|
694
750
|
raise models.APIError(
|
695
751
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -795,14 +851,22 @@ class Namespaces(BaseSDK):
|
|
795
851
|
if utils.match_response(http_res, "200", "application/json"):
|
796
852
|
return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
|
797
853
|
if utils.match_response(
|
798
|
-
http_res, ["400", "401", "403", "404"
|
854
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
799
855
|
):
|
800
856
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
801
857
|
raise models.ErrorResponse(data=data)
|
802
858
|
if utils.match_response(http_res, "422", "application/json"):
|
803
859
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
804
860
|
raise models.HTTPValidationError(data=data)
|
805
|
-
if utils.match_response(http_res,
|
861
|
+
if utils.match_response(http_res, "500", "application/json"):
|
862
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
863
|
+
raise models.ErrorResponse(data=data)
|
864
|
+
if utils.match_response(http_res, "4XX", "*"):
|
865
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
866
|
+
raise models.APIError(
|
867
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
868
|
+
)
|
869
|
+
if utils.match_response(http_res, "5XX", "*"):
|
806
870
|
http_res_text = await utils.stream_to_text_async(http_res)
|
807
871
|
raise models.APIError(
|
808
872
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -889,14 +953,22 @@ class Namespaces(BaseSDK):
|
|
889
953
|
if utils.match_response(http_res, "200", "application/json"):
|
890
954
|
return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
|
891
955
|
if utils.match_response(
|
892
|
-
http_res, ["400", "401", "403", "404"
|
956
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
893
957
|
):
|
894
958
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
895
959
|
raise models.ErrorResponse(data=data)
|
896
960
|
if utils.match_response(http_res, "422", "application/json"):
|
897
961
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
898
962
|
raise models.HTTPValidationError(data=data)
|
899
|
-
if utils.match_response(http_res,
|
963
|
+
if utils.match_response(http_res, "500", "application/json"):
|
964
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
965
|
+
raise models.ErrorResponse(data=data)
|
966
|
+
if utils.match_response(http_res, "4XX", "*"):
|
967
|
+
http_res_text = utils.stream_to_text(http_res)
|
968
|
+
raise models.APIError(
|
969
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
970
|
+
)
|
971
|
+
if utils.match_response(http_res, "5XX", "*"):
|
900
972
|
http_res_text = utils.stream_to_text(http_res)
|
901
973
|
raise models.APIError(
|
902
974
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -983,14 +1055,22 @@ class Namespaces(BaseSDK):
|
|
983
1055
|
if utils.match_response(http_res, "200", "application/json"):
|
984
1056
|
return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
|
985
1057
|
if utils.match_response(
|
986
|
-
http_res, ["400", "401", "403", "404"
|
1058
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
987
1059
|
):
|
988
1060
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
989
1061
|
raise models.ErrorResponse(data=data)
|
990
1062
|
if utils.match_response(http_res, "422", "application/json"):
|
991
1063
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
992
1064
|
raise models.HTTPValidationError(data=data)
|
993
|
-
if utils.match_response(http_res,
|
1065
|
+
if utils.match_response(http_res, "500", "application/json"):
|
1066
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1067
|
+
raise models.ErrorResponse(data=data)
|
1068
|
+
if utils.match_response(http_res, "4XX", "*"):
|
1069
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
1070
|
+
raise models.APIError(
|
1071
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
1072
|
+
)
|
1073
|
+
if utils.match_response(http_res, "5XX", "*"):
|
994
1074
|
http_res_text = await utils.stream_to_text_async(http_res)
|
995
1075
|
raise models.APIError(
|
996
1076
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -1070,14 +1150,22 @@ class Namespaces(BaseSDK):
|
|
1070
1150
|
if utils.match_response(http_res, "200", "application/json"):
|
1071
1151
|
return utils.unmarshal_json(http_res.text, models.AvailableModelsResponse)
|
1072
1152
|
if utils.match_response(
|
1073
|
-
http_res, ["400", "401", "403", "404"
|
1153
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
1074
1154
|
):
|
1075
1155
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1076
1156
|
raise models.ErrorResponse(data=data)
|
1077
1157
|
if utils.match_response(http_res, "422", "application/json"):
|
1078
1158
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
1079
1159
|
raise models.HTTPValidationError(data=data)
|
1080
|
-
if utils.match_response(http_res,
|
1160
|
+
if utils.match_response(http_res, "500", "application/json"):
|
1161
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1162
|
+
raise models.ErrorResponse(data=data)
|
1163
|
+
if utils.match_response(http_res, "4XX", "*"):
|
1164
|
+
http_res_text = utils.stream_to_text(http_res)
|
1165
|
+
raise models.APIError(
|
1166
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
1167
|
+
)
|
1168
|
+
if utils.match_response(http_res, "5XX", "*"):
|
1081
1169
|
http_res_text = utils.stream_to_text(http_res)
|
1082
1170
|
raise models.APIError(
|
1083
1171
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
@@ -1157,14 +1245,22 @@ class Namespaces(BaseSDK):
|
|
1157
1245
|
if utils.match_response(http_res, "200", "application/json"):
|
1158
1246
|
return utils.unmarshal_json(http_res.text, models.AvailableModelsResponse)
|
1159
1247
|
if utils.match_response(
|
1160
|
-
http_res, ["400", "401", "403", "404"
|
1248
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
1161
1249
|
):
|
1162
1250
|
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1163
1251
|
raise models.ErrorResponse(data=data)
|
1164
1252
|
if utils.match_response(http_res, "422", "application/json"):
|
1165
1253
|
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
1166
1254
|
raise models.HTTPValidationError(data=data)
|
1167
|
-
if utils.match_response(http_res,
|
1255
|
+
if utils.match_response(http_res, "500", "application/json"):
|
1256
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
1257
|
+
raise models.ErrorResponse(data=data)
|
1258
|
+
if utils.match_response(http_res, "4XX", "*"):
|
1259
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
1260
|
+
raise models.APIError(
|
1261
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
1262
|
+
)
|
1263
|
+
if utils.match_response(http_res, "5XX", "*"):
|
1168
1264
|
http_res_text = await utils.stream_to_text_async(http_res)
|
1169
1265
|
raise models.APIError(
|
1170
1266
|
"API error occurred", http_res.status_code, http_res_text, http_res
|