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/collections.py
CHANGED
@@ -81,20 +81,26 @@ class Collections(BaseSDK):
|
|
81
81
|
retry_config=retry_config,
|
82
82
|
)
|
83
83
|
|
84
|
-
|
84
|
+
response_data: Any = None
|
85
85
|
if utils.match_response(http_res, "200", "application/json"):
|
86
86
|
return utils.unmarshal_json(http_res.text, models.ListCollectionsResponse)
|
87
87
|
if utils.match_response(
|
88
88
|
http_res, ["400", "401", "403", "404"], "application/json"
|
89
89
|
):
|
90
|
-
|
91
|
-
|
90
|
+
response_data = utils.unmarshal_json(
|
91
|
+
http_res.text, models.ErrorResponseData
|
92
|
+
)
|
93
|
+
raise models.ErrorResponse(data=response_data)
|
92
94
|
if utils.match_response(http_res, "422", "application/json"):
|
93
|
-
|
94
|
-
|
95
|
+
response_data = utils.unmarshal_json(
|
96
|
+
http_res.text, models.HTTPValidationErrorData
|
97
|
+
)
|
98
|
+
raise models.HTTPValidationError(data=response_data)
|
95
99
|
if utils.match_response(http_res, "500", "application/json"):
|
96
|
-
|
97
|
-
|
100
|
+
response_data = utils.unmarshal_json(
|
101
|
+
http_res.text, models.ErrorResponseData
|
102
|
+
)
|
103
|
+
raise models.ErrorResponse(data=response_data)
|
98
104
|
if utils.match_response(http_res, "4XX", "*"):
|
99
105
|
http_res_text = utils.stream_to_text(http_res)
|
100
106
|
raise models.APIError(
|
@@ -187,20 +193,26 @@ class Collections(BaseSDK):
|
|
187
193
|
retry_config=retry_config,
|
188
194
|
)
|
189
195
|
|
190
|
-
|
196
|
+
response_data: Any = None
|
191
197
|
if utils.match_response(http_res, "200", "application/json"):
|
192
198
|
return utils.unmarshal_json(http_res.text, models.ListCollectionsResponse)
|
193
199
|
if utils.match_response(
|
194
200
|
http_res, ["400", "401", "403", "404"], "application/json"
|
195
201
|
):
|
196
|
-
|
197
|
-
|
202
|
+
response_data = utils.unmarshal_json(
|
203
|
+
http_res.text, models.ErrorResponseData
|
204
|
+
)
|
205
|
+
raise models.ErrorResponse(data=response_data)
|
198
206
|
if utils.match_response(http_res, "422", "application/json"):
|
199
|
-
|
200
|
-
|
207
|
+
response_data = utils.unmarshal_json(
|
208
|
+
http_res.text, models.HTTPValidationErrorData
|
209
|
+
)
|
210
|
+
raise models.HTTPValidationError(data=response_data)
|
201
211
|
if utils.match_response(http_res, "500", "application/json"):
|
202
|
-
|
203
|
-
|
212
|
+
response_data = utils.unmarshal_json(
|
213
|
+
http_res.text, models.ErrorResponseData
|
214
|
+
)
|
215
|
+
raise models.ErrorResponse(data=response_data)
|
204
216
|
if utils.match_response(http_res, "4XX", "*"):
|
205
217
|
http_res_text = await utils.stream_to_text_async(http_res)
|
206
218
|
raise models.APIError(
|
@@ -312,20 +324,26 @@ class Collections(BaseSDK):
|
|
312
324
|
retry_config=retry_config,
|
313
325
|
)
|
314
326
|
|
315
|
-
|
327
|
+
response_data: Any = None
|
316
328
|
if utils.match_response(http_res, "200", "application/json"):
|
317
329
|
return utils.unmarshal_json(http_res.text, models.CollectionModel)
|
318
330
|
if utils.match_response(
|
319
331
|
http_res, ["400", "401", "403", "404"], "application/json"
|
320
332
|
):
|
321
|
-
|
322
|
-
|
333
|
+
response_data = utils.unmarshal_json(
|
334
|
+
http_res.text, models.ErrorResponseData
|
335
|
+
)
|
336
|
+
raise models.ErrorResponse(data=response_data)
|
323
337
|
if utils.match_response(http_res, "422", "application/json"):
|
324
|
-
|
325
|
-
|
338
|
+
response_data = utils.unmarshal_json(
|
339
|
+
http_res.text, models.HTTPValidationErrorData
|
340
|
+
)
|
341
|
+
raise models.HTTPValidationError(data=response_data)
|
326
342
|
if utils.match_response(http_res, "500", "application/json"):
|
327
|
-
|
328
|
-
|
343
|
+
response_data = utils.unmarshal_json(
|
344
|
+
http_res.text, models.ErrorResponseData
|
345
|
+
)
|
346
|
+
raise models.ErrorResponse(data=response_data)
|
329
347
|
if utils.match_response(http_res, "4XX", "*"):
|
330
348
|
http_res_text = utils.stream_to_text(http_res)
|
331
349
|
raise models.APIError(
|
@@ -437,20 +455,26 @@ class Collections(BaseSDK):
|
|
437
455
|
retry_config=retry_config,
|
438
456
|
)
|
439
457
|
|
440
|
-
|
458
|
+
response_data: Any = None
|
441
459
|
if utils.match_response(http_res, "200", "application/json"):
|
442
460
|
return utils.unmarshal_json(http_res.text, models.CollectionModel)
|
443
461
|
if utils.match_response(
|
444
462
|
http_res, ["400", "401", "403", "404"], "application/json"
|
445
463
|
):
|
446
|
-
|
447
|
-
|
464
|
+
response_data = utils.unmarshal_json(
|
465
|
+
http_res.text, models.ErrorResponseData
|
466
|
+
)
|
467
|
+
raise models.ErrorResponse(data=response_data)
|
448
468
|
if utils.match_response(http_res, "422", "application/json"):
|
449
|
-
|
450
|
-
|
469
|
+
response_data = utils.unmarshal_json(
|
470
|
+
http_res.text, models.HTTPValidationErrorData
|
471
|
+
)
|
472
|
+
raise models.HTTPValidationError(data=response_data)
|
451
473
|
if utils.match_response(http_res, "500", "application/json"):
|
452
|
-
|
453
|
-
|
474
|
+
response_data = utils.unmarshal_json(
|
475
|
+
http_res.text, models.ErrorResponseData
|
476
|
+
)
|
477
|
+
raise models.ErrorResponse(data=response_data)
|
454
478
|
if utils.match_response(http_res, "4XX", "*"):
|
455
479
|
http_res_text = await utils.stream_to_text_async(http_res)
|
456
480
|
raise models.APIError(
|
@@ -542,20 +566,26 @@ class Collections(BaseSDK):
|
|
542
566
|
retry_config=retry_config,
|
543
567
|
)
|
544
568
|
|
545
|
-
|
569
|
+
response_data: Any = None
|
546
570
|
if utils.match_response(http_res, "200", "application/json"):
|
547
571
|
return utils.unmarshal_json(http_res.text, models.TaskResponse)
|
548
572
|
if utils.match_response(
|
549
573
|
http_res, ["400", "401", "403", "404"], "application/json"
|
550
574
|
):
|
551
|
-
|
552
|
-
|
575
|
+
response_data = utils.unmarshal_json(
|
576
|
+
http_res.text, models.ErrorResponseData
|
577
|
+
)
|
578
|
+
raise models.ErrorResponse(data=response_data)
|
553
579
|
if utils.match_response(http_res, "422", "application/json"):
|
554
|
-
|
555
|
-
|
580
|
+
response_data = utils.unmarshal_json(
|
581
|
+
http_res.text, models.HTTPValidationErrorData
|
582
|
+
)
|
583
|
+
raise models.HTTPValidationError(data=response_data)
|
556
584
|
if utils.match_response(http_res, "500", "application/json"):
|
557
|
-
|
558
|
-
|
585
|
+
response_data = utils.unmarshal_json(
|
586
|
+
http_res.text, models.ErrorResponseData
|
587
|
+
)
|
588
|
+
raise models.ErrorResponse(data=response_data)
|
559
589
|
if utils.match_response(http_res, "4XX", "*"):
|
560
590
|
http_res_text = utils.stream_to_text(http_res)
|
561
591
|
raise models.APIError(
|
@@ -647,20 +677,26 @@ class Collections(BaseSDK):
|
|
647
677
|
retry_config=retry_config,
|
648
678
|
)
|
649
679
|
|
650
|
-
|
680
|
+
response_data: Any = None
|
651
681
|
if utils.match_response(http_res, "200", "application/json"):
|
652
682
|
return utils.unmarshal_json(http_res.text, models.TaskResponse)
|
653
683
|
if utils.match_response(
|
654
684
|
http_res, ["400", "401", "403", "404"], "application/json"
|
655
685
|
):
|
656
|
-
|
657
|
-
|
686
|
+
response_data = utils.unmarshal_json(
|
687
|
+
http_res.text, models.ErrorResponseData
|
688
|
+
)
|
689
|
+
raise models.ErrorResponse(data=response_data)
|
658
690
|
if utils.match_response(http_res, "422", "application/json"):
|
659
|
-
|
660
|
-
|
691
|
+
response_data = utils.unmarshal_json(
|
692
|
+
http_res.text, models.HTTPValidationErrorData
|
693
|
+
)
|
694
|
+
raise models.HTTPValidationError(data=response_data)
|
661
695
|
if utils.match_response(http_res, "500", "application/json"):
|
662
|
-
|
663
|
-
|
696
|
+
response_data = utils.unmarshal_json(
|
697
|
+
http_res.text, models.ErrorResponseData
|
698
|
+
)
|
699
|
+
raise models.ErrorResponse(data=response_data)
|
664
700
|
if utils.match_response(http_res, "4XX", "*"):
|
665
701
|
http_res_text = await utils.stream_to_text_async(http_res)
|
666
702
|
raise models.APIError(
|
@@ -774,20 +810,26 @@ class Collections(BaseSDK):
|
|
774
810
|
retry_config=retry_config,
|
775
811
|
)
|
776
812
|
|
777
|
-
|
813
|
+
response_data: Any = None
|
778
814
|
if utils.match_response(http_res, "200", "application/json"):
|
779
815
|
return utils.unmarshal_json(http_res.text, models.CollectionModel)
|
780
816
|
if utils.match_response(
|
781
817
|
http_res, ["400", "401", "403", "404"], "application/json"
|
782
818
|
):
|
783
|
-
|
784
|
-
|
819
|
+
response_data = utils.unmarshal_json(
|
820
|
+
http_res.text, models.ErrorResponseData
|
821
|
+
)
|
822
|
+
raise models.ErrorResponse(data=response_data)
|
785
823
|
if utils.match_response(http_res, "422", "application/json"):
|
786
|
-
|
787
|
-
|
824
|
+
response_data = utils.unmarshal_json(
|
825
|
+
http_res.text, models.HTTPValidationErrorData
|
826
|
+
)
|
827
|
+
raise models.HTTPValidationError(data=response_data)
|
788
828
|
if utils.match_response(http_res, "500", "application/json"):
|
789
|
-
|
790
|
-
|
829
|
+
response_data = utils.unmarshal_json(
|
830
|
+
http_res.text, models.ErrorResponseData
|
831
|
+
)
|
832
|
+
raise models.ErrorResponse(data=response_data)
|
791
833
|
if utils.match_response(http_res, "4XX", "*"):
|
792
834
|
http_res_text = utils.stream_to_text(http_res)
|
793
835
|
raise models.APIError(
|
@@ -901,20 +943,26 @@ class Collections(BaseSDK):
|
|
901
943
|
retry_config=retry_config,
|
902
944
|
)
|
903
945
|
|
904
|
-
|
946
|
+
response_data: Any = None
|
905
947
|
if utils.match_response(http_res, "200", "application/json"):
|
906
948
|
return utils.unmarshal_json(http_res.text, models.CollectionModel)
|
907
949
|
if utils.match_response(
|
908
950
|
http_res, ["400", "401", "403", "404"], "application/json"
|
909
951
|
):
|
910
|
-
|
911
|
-
|
952
|
+
response_data = utils.unmarshal_json(
|
953
|
+
http_res.text, models.ErrorResponseData
|
954
|
+
)
|
955
|
+
raise models.ErrorResponse(data=response_data)
|
912
956
|
if utils.match_response(http_res, "422", "application/json"):
|
913
|
-
|
914
|
-
|
957
|
+
response_data = utils.unmarshal_json(
|
958
|
+
http_res.text, models.HTTPValidationErrorData
|
959
|
+
)
|
960
|
+
raise models.HTTPValidationError(data=response_data)
|
915
961
|
if utils.match_response(http_res, "500", "application/json"):
|
916
|
-
|
917
|
-
|
962
|
+
response_data = utils.unmarshal_json(
|
963
|
+
http_res.text, models.ErrorResponseData
|
964
|
+
)
|
965
|
+
raise models.ErrorResponse(data=response_data)
|
918
966
|
if utils.match_response(http_res, "4XX", "*"):
|
919
967
|
http_res_text = await utils.stream_to_text_async(http_res)
|
920
968
|
raise models.APIError(
|
@@ -1006,20 +1054,26 @@ class Collections(BaseSDK):
|
|
1006
1054
|
retry_config=retry_config,
|
1007
1055
|
)
|
1008
1056
|
|
1009
|
-
|
1057
|
+
response_data: Any = None
|
1010
1058
|
if utils.match_response(http_res, "200", "application/json"):
|
1011
1059
|
return utils.unmarshal_json(http_res.text, models.CollectionModel)
|
1012
1060
|
if utils.match_response(
|
1013
1061
|
http_res, ["400", "401", "403", "404"], "application/json"
|
1014
1062
|
):
|
1015
|
-
|
1016
|
-
|
1063
|
+
response_data = utils.unmarshal_json(
|
1064
|
+
http_res.text, models.ErrorResponseData
|
1065
|
+
)
|
1066
|
+
raise models.ErrorResponse(data=response_data)
|
1017
1067
|
if utils.match_response(http_res, "422", "application/json"):
|
1018
|
-
|
1019
|
-
|
1068
|
+
response_data = utils.unmarshal_json(
|
1069
|
+
http_res.text, models.HTTPValidationErrorData
|
1070
|
+
)
|
1071
|
+
raise models.HTTPValidationError(data=response_data)
|
1020
1072
|
if utils.match_response(http_res, "500", "application/json"):
|
1021
|
-
|
1022
|
-
|
1073
|
+
response_data = utils.unmarshal_json(
|
1074
|
+
http_res.text, models.ErrorResponseData
|
1075
|
+
)
|
1076
|
+
raise models.ErrorResponse(data=response_data)
|
1023
1077
|
if utils.match_response(http_res, "4XX", "*"):
|
1024
1078
|
http_res_text = utils.stream_to_text(http_res)
|
1025
1079
|
raise models.APIError(
|
@@ -1111,20 +1165,26 @@ class Collections(BaseSDK):
|
|
1111
1165
|
retry_config=retry_config,
|
1112
1166
|
)
|
1113
1167
|
|
1114
|
-
|
1168
|
+
response_data: Any = None
|
1115
1169
|
if utils.match_response(http_res, "200", "application/json"):
|
1116
1170
|
return utils.unmarshal_json(http_res.text, models.CollectionModel)
|
1117
1171
|
if utils.match_response(
|
1118
1172
|
http_res, ["400", "401", "403", "404"], "application/json"
|
1119
1173
|
):
|
1120
|
-
|
1121
|
-
|
1174
|
+
response_data = utils.unmarshal_json(
|
1175
|
+
http_res.text, models.ErrorResponseData
|
1176
|
+
)
|
1177
|
+
raise models.ErrorResponse(data=response_data)
|
1122
1178
|
if utils.match_response(http_res, "422", "application/json"):
|
1123
|
-
|
1124
|
-
|
1179
|
+
response_data = utils.unmarshal_json(
|
1180
|
+
http_res.text, models.HTTPValidationErrorData
|
1181
|
+
)
|
1182
|
+
raise models.HTTPValidationError(data=response_data)
|
1125
1183
|
if utils.match_response(http_res, "500", "application/json"):
|
1126
|
-
|
1127
|
-
|
1184
|
+
response_data = utils.unmarshal_json(
|
1185
|
+
http_res.text, models.ErrorResponseData
|
1186
|
+
)
|
1187
|
+
raise models.ErrorResponse(data=response_data)
|
1128
1188
|
if utils.match_response(http_res, "4XX", "*"):
|
1129
1189
|
http_res_text = await utils.stream_to_text_async(http_res)
|
1130
1190
|
raise models.APIError(
|
mixpeek/featureextractors.py
CHANGED
@@ -84,20 +84,26 @@ class FeatureExtractors(BaseSDK):
|
|
84
84
|
retry_config=retry_config,
|
85
85
|
)
|
86
86
|
|
87
|
-
|
87
|
+
response_data: Any = None
|
88
88
|
if utils.match_response(http_res, "200", "application/json"):
|
89
89
|
return utils.unmarshal_json(http_res.text, models.EmbeddingResponse)
|
90
90
|
if utils.match_response(
|
91
91
|
http_res, ["400", "401", "403", "404"], "application/json"
|
92
92
|
):
|
93
|
-
|
94
|
-
|
93
|
+
response_data = utils.unmarshal_json(
|
94
|
+
http_res.text, models.ErrorResponseData
|
95
|
+
)
|
96
|
+
raise models.ErrorResponse(data=response_data)
|
95
97
|
if utils.match_response(http_res, "422", "application/json"):
|
96
|
-
|
97
|
-
|
98
|
+
response_data = utils.unmarshal_json(
|
99
|
+
http_res.text, models.HTTPValidationErrorData
|
100
|
+
)
|
101
|
+
raise models.HTTPValidationError(data=response_data)
|
98
102
|
if utils.match_response(http_res, "500", "application/json"):
|
99
|
-
|
100
|
-
|
103
|
+
response_data = utils.unmarshal_json(
|
104
|
+
http_res.text, models.ErrorResponseData
|
105
|
+
)
|
106
|
+
raise models.ErrorResponse(data=response_data)
|
101
107
|
if utils.match_response(http_res, "4XX", "*"):
|
102
108
|
http_res_text = utils.stream_to_text(http_res)
|
103
109
|
raise models.APIError(
|
@@ -193,20 +199,26 @@ class FeatureExtractors(BaseSDK):
|
|
193
199
|
retry_config=retry_config,
|
194
200
|
)
|
195
201
|
|
196
|
-
|
202
|
+
response_data: Any = None
|
197
203
|
if utils.match_response(http_res, "200", "application/json"):
|
198
204
|
return utils.unmarshal_json(http_res.text, models.EmbeddingResponse)
|
199
205
|
if utils.match_response(
|
200
206
|
http_res, ["400", "401", "403", "404"], "application/json"
|
201
207
|
):
|
202
|
-
|
203
|
-
|
208
|
+
response_data = utils.unmarshal_json(
|
209
|
+
http_res.text, models.ErrorResponseData
|
210
|
+
)
|
211
|
+
raise models.ErrorResponse(data=response_data)
|
204
212
|
if utils.match_response(http_res, "422", "application/json"):
|
205
|
-
|
206
|
-
|
213
|
+
response_data = utils.unmarshal_json(
|
214
|
+
http_res.text, models.HTTPValidationErrorData
|
215
|
+
)
|
216
|
+
raise models.HTTPValidationError(data=response_data)
|
207
217
|
if utils.match_response(http_res, "500", "application/json"):
|
208
|
-
|
209
|
-
|
218
|
+
response_data = utils.unmarshal_json(
|
219
|
+
http_res.text, models.ErrorResponseData
|
220
|
+
)
|
221
|
+
raise models.ErrorResponse(data=response_data)
|
210
222
|
if utils.match_response(http_res, "4XX", "*"):
|
211
223
|
http_res_text = await utils.stream_to_text_async(http_res)
|
212
224
|
raise models.APIError(
|