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/namespaces.py
CHANGED
@@ -93,20 +93,26 @@ class Namespaces(BaseSDK):
|
|
93
93
|
retry_config=retry_config,
|
94
94
|
)
|
95
95
|
|
96
|
-
|
96
|
+
response_data: Any = None
|
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
100
|
http_res, ["400", "401", "403", "404"], "application/json"
|
101
101
|
):
|
102
|
-
|
103
|
-
|
102
|
+
response_data = utils.unmarshal_json(
|
103
|
+
http_res.text, models.ErrorResponseData
|
104
|
+
)
|
105
|
+
raise models.ErrorResponse(data=response_data)
|
104
106
|
if utils.match_response(http_res, "422", "application/json"):
|
105
|
-
|
106
|
-
|
107
|
+
response_data = utils.unmarshal_json(
|
108
|
+
http_res.text, models.HTTPValidationErrorData
|
109
|
+
)
|
110
|
+
raise models.HTTPValidationError(data=response_data)
|
107
111
|
if utils.match_response(http_res, "500", "application/json"):
|
108
|
-
|
109
|
-
|
112
|
+
response_data = utils.unmarshal_json(
|
113
|
+
http_res.text, models.ErrorResponseData
|
114
|
+
)
|
115
|
+
raise models.ErrorResponse(data=response_data)
|
110
116
|
if utils.match_response(http_res, "4XX", "*"):
|
111
117
|
http_res_text = utils.stream_to_text(http_res)
|
112
118
|
raise models.APIError(
|
@@ -211,20 +217,26 @@ class Namespaces(BaseSDK):
|
|
211
217
|
retry_config=retry_config,
|
212
218
|
)
|
213
219
|
|
214
|
-
|
220
|
+
response_data: Any = None
|
215
221
|
if utils.match_response(http_res, "200", "application/json"):
|
216
222
|
return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
|
217
223
|
if utils.match_response(
|
218
224
|
http_res, ["400", "401", "403", "404"], "application/json"
|
219
225
|
):
|
220
|
-
|
221
|
-
|
226
|
+
response_data = utils.unmarshal_json(
|
227
|
+
http_res.text, models.ErrorResponseData
|
228
|
+
)
|
229
|
+
raise models.ErrorResponse(data=response_data)
|
222
230
|
if utils.match_response(http_res, "422", "application/json"):
|
223
|
-
|
224
|
-
|
231
|
+
response_data = utils.unmarshal_json(
|
232
|
+
http_res.text, models.HTTPValidationErrorData
|
233
|
+
)
|
234
|
+
raise models.HTTPValidationError(data=response_data)
|
225
235
|
if utils.match_response(http_res, "500", "application/json"):
|
226
|
-
|
227
|
-
|
236
|
+
response_data = utils.unmarshal_json(
|
237
|
+
http_res.text, models.ErrorResponseData
|
238
|
+
)
|
239
|
+
raise models.ErrorResponse(data=response_data)
|
228
240
|
if utils.match_response(http_res, "4XX", "*"):
|
229
241
|
http_res_text = await utils.stream_to_text_async(http_res)
|
230
242
|
raise models.APIError(
|
@@ -306,20 +318,26 @@ class Namespaces(BaseSDK):
|
|
306
318
|
retry_config=retry_config,
|
307
319
|
)
|
308
320
|
|
309
|
-
|
321
|
+
response_data: Any = None
|
310
322
|
if utils.match_response(http_res, "200", "application/json"):
|
311
323
|
return utils.unmarshal_json(http_res.text, List[models.NamespaceResponse])
|
312
324
|
if utils.match_response(
|
313
325
|
http_res, ["400", "401", "403", "404"], "application/json"
|
314
326
|
):
|
315
|
-
|
316
|
-
|
327
|
+
response_data = utils.unmarshal_json(
|
328
|
+
http_res.text, models.ErrorResponseData
|
329
|
+
)
|
330
|
+
raise models.ErrorResponse(data=response_data)
|
317
331
|
if utils.match_response(http_res, "422", "application/json"):
|
318
|
-
|
319
|
-
|
332
|
+
response_data = utils.unmarshal_json(
|
333
|
+
http_res.text, models.HTTPValidationErrorData
|
334
|
+
)
|
335
|
+
raise models.HTTPValidationError(data=response_data)
|
320
336
|
if utils.match_response(http_res, "500", "application/json"):
|
321
|
-
|
322
|
-
|
337
|
+
response_data = utils.unmarshal_json(
|
338
|
+
http_res.text, models.ErrorResponseData
|
339
|
+
)
|
340
|
+
raise models.ErrorResponse(data=response_data)
|
323
341
|
if utils.match_response(http_res, "4XX", "*"):
|
324
342
|
http_res_text = utils.stream_to_text(http_res)
|
325
343
|
raise models.APIError(
|
@@ -401,20 +419,26 @@ class Namespaces(BaseSDK):
|
|
401
419
|
retry_config=retry_config,
|
402
420
|
)
|
403
421
|
|
404
|
-
|
422
|
+
response_data: Any = None
|
405
423
|
if utils.match_response(http_res, "200", "application/json"):
|
406
424
|
return utils.unmarshal_json(http_res.text, List[models.NamespaceResponse])
|
407
425
|
if utils.match_response(
|
408
426
|
http_res, ["400", "401", "403", "404"], "application/json"
|
409
427
|
):
|
410
|
-
|
411
|
-
|
428
|
+
response_data = utils.unmarshal_json(
|
429
|
+
http_res.text, models.ErrorResponseData
|
430
|
+
)
|
431
|
+
raise models.ErrorResponse(data=response_data)
|
412
432
|
if utils.match_response(http_res, "422", "application/json"):
|
413
|
-
|
414
|
-
|
433
|
+
response_data = utils.unmarshal_json(
|
434
|
+
http_res.text, models.HTTPValidationErrorData
|
435
|
+
)
|
436
|
+
raise models.HTTPValidationError(data=response_data)
|
415
437
|
if utils.match_response(http_res, "500", "application/json"):
|
416
|
-
|
417
|
-
|
438
|
+
response_data = utils.unmarshal_json(
|
439
|
+
http_res.text, models.ErrorResponseData
|
440
|
+
)
|
441
|
+
raise models.ErrorResponse(data=response_data)
|
418
442
|
if utils.match_response(http_res, "4XX", "*"):
|
419
443
|
http_res_text = await utils.stream_to_text_async(http_res)
|
420
444
|
raise models.APIError(
|
@@ -503,20 +527,26 @@ class Namespaces(BaseSDK):
|
|
503
527
|
retry_config=retry_config,
|
504
528
|
)
|
505
529
|
|
506
|
-
|
530
|
+
response_data: Any = None
|
507
531
|
if utils.match_response(http_res, "200", "application/json"):
|
508
532
|
return utils.unmarshal_json(http_res.text, models.TaskResponse)
|
509
533
|
if utils.match_response(
|
510
534
|
http_res, ["400", "401", "403", "404"], "application/json"
|
511
535
|
):
|
512
|
-
|
513
|
-
|
536
|
+
response_data = utils.unmarshal_json(
|
537
|
+
http_res.text, models.ErrorResponseData
|
538
|
+
)
|
539
|
+
raise models.ErrorResponse(data=response_data)
|
514
540
|
if utils.match_response(http_res, "422", "application/json"):
|
515
|
-
|
516
|
-
|
541
|
+
response_data = utils.unmarshal_json(
|
542
|
+
http_res.text, models.HTTPValidationErrorData
|
543
|
+
)
|
544
|
+
raise models.HTTPValidationError(data=response_data)
|
517
545
|
if utils.match_response(http_res, "500", "application/json"):
|
518
|
-
|
519
|
-
|
546
|
+
response_data = utils.unmarshal_json(
|
547
|
+
http_res.text, models.ErrorResponseData
|
548
|
+
)
|
549
|
+
raise models.ErrorResponse(data=response_data)
|
520
550
|
if utils.match_response(http_res, "4XX", "*"):
|
521
551
|
http_res_text = utils.stream_to_text(http_res)
|
522
552
|
raise models.APIError(
|
@@ -605,20 +635,26 @@ class Namespaces(BaseSDK):
|
|
605
635
|
retry_config=retry_config,
|
606
636
|
)
|
607
637
|
|
608
|
-
|
638
|
+
response_data: Any = None
|
609
639
|
if utils.match_response(http_res, "200", "application/json"):
|
610
640
|
return utils.unmarshal_json(http_res.text, models.TaskResponse)
|
611
641
|
if utils.match_response(
|
612
642
|
http_res, ["400", "401", "403", "404"], "application/json"
|
613
643
|
):
|
614
|
-
|
615
|
-
|
644
|
+
response_data = utils.unmarshal_json(
|
645
|
+
http_res.text, models.ErrorResponseData
|
646
|
+
)
|
647
|
+
raise models.ErrorResponse(data=response_data)
|
616
648
|
if utils.match_response(http_res, "422", "application/json"):
|
617
|
-
|
618
|
-
|
649
|
+
response_data = utils.unmarshal_json(
|
650
|
+
http_res.text, models.HTTPValidationErrorData
|
651
|
+
)
|
652
|
+
raise models.HTTPValidationError(data=response_data)
|
619
653
|
if utils.match_response(http_res, "500", "application/json"):
|
620
|
-
|
621
|
-
|
654
|
+
response_data = utils.unmarshal_json(
|
655
|
+
http_res.text, models.ErrorResponseData
|
656
|
+
)
|
657
|
+
raise models.ErrorResponse(data=response_data)
|
622
658
|
if utils.match_response(http_res, "4XX", "*"):
|
623
659
|
http_res_text = await utils.stream_to_text_async(http_res)
|
624
660
|
raise models.APIError(
|
@@ -729,20 +765,26 @@ class Namespaces(BaseSDK):
|
|
729
765
|
retry_config=retry_config,
|
730
766
|
)
|
731
767
|
|
732
|
-
|
768
|
+
response_data: Any = None
|
733
769
|
if utils.match_response(http_res, "200", "application/json"):
|
734
770
|
return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
|
735
771
|
if utils.match_response(
|
736
772
|
http_res, ["400", "401", "403", "404"], "application/json"
|
737
773
|
):
|
738
|
-
|
739
|
-
|
774
|
+
response_data = utils.unmarshal_json(
|
775
|
+
http_res.text, models.ErrorResponseData
|
776
|
+
)
|
777
|
+
raise models.ErrorResponse(data=response_data)
|
740
778
|
if utils.match_response(http_res, "422", "application/json"):
|
741
|
-
|
742
|
-
|
779
|
+
response_data = utils.unmarshal_json(
|
780
|
+
http_res.text, models.HTTPValidationErrorData
|
781
|
+
)
|
782
|
+
raise models.HTTPValidationError(data=response_data)
|
743
783
|
if utils.match_response(http_res, "500", "application/json"):
|
744
|
-
|
745
|
-
|
784
|
+
response_data = utils.unmarshal_json(
|
785
|
+
http_res.text, models.ErrorResponseData
|
786
|
+
)
|
787
|
+
raise models.ErrorResponse(data=response_data)
|
746
788
|
if utils.match_response(http_res, "4XX", "*"):
|
747
789
|
http_res_text = utils.stream_to_text(http_res)
|
748
790
|
raise models.APIError(
|
@@ -853,20 +895,26 @@ class Namespaces(BaseSDK):
|
|
853
895
|
retry_config=retry_config,
|
854
896
|
)
|
855
897
|
|
856
|
-
|
898
|
+
response_data: Any = None
|
857
899
|
if utils.match_response(http_res, "200", "application/json"):
|
858
900
|
return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
|
859
901
|
if utils.match_response(
|
860
902
|
http_res, ["400", "401", "403", "404"], "application/json"
|
861
903
|
):
|
862
|
-
|
863
|
-
|
904
|
+
response_data = utils.unmarshal_json(
|
905
|
+
http_res.text, models.ErrorResponseData
|
906
|
+
)
|
907
|
+
raise models.ErrorResponse(data=response_data)
|
864
908
|
if utils.match_response(http_res, "422", "application/json"):
|
865
|
-
|
866
|
-
|
909
|
+
response_data = utils.unmarshal_json(
|
910
|
+
http_res.text, models.HTTPValidationErrorData
|
911
|
+
)
|
912
|
+
raise models.HTTPValidationError(data=response_data)
|
867
913
|
if utils.match_response(http_res, "500", "application/json"):
|
868
|
-
|
869
|
-
|
914
|
+
response_data = utils.unmarshal_json(
|
915
|
+
http_res.text, models.ErrorResponseData
|
916
|
+
)
|
917
|
+
raise models.ErrorResponse(data=response_data)
|
870
918
|
if utils.match_response(http_res, "4XX", "*"):
|
871
919
|
http_res_text = await utils.stream_to_text_async(http_res)
|
872
920
|
raise models.APIError(
|
@@ -977,20 +1025,26 @@ class Namespaces(BaseSDK):
|
|
977
1025
|
retry_config=retry_config,
|
978
1026
|
)
|
979
1027
|
|
980
|
-
|
1028
|
+
response_data: Any = None
|
981
1029
|
if utils.match_response(http_res, "200", "application/json"):
|
982
1030
|
return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
|
983
1031
|
if utils.match_response(
|
984
1032
|
http_res, ["400", "401", "403", "404"], "application/json"
|
985
1033
|
):
|
986
|
-
|
987
|
-
|
1034
|
+
response_data = utils.unmarshal_json(
|
1035
|
+
http_res.text, models.ErrorResponseData
|
1036
|
+
)
|
1037
|
+
raise models.ErrorResponse(data=response_data)
|
988
1038
|
if utils.match_response(http_res, "422", "application/json"):
|
989
|
-
|
990
|
-
|
1039
|
+
response_data = utils.unmarshal_json(
|
1040
|
+
http_res.text, models.HTTPValidationErrorData
|
1041
|
+
)
|
1042
|
+
raise models.HTTPValidationError(data=response_data)
|
991
1043
|
if utils.match_response(http_res, "500", "application/json"):
|
992
|
-
|
993
|
-
|
1044
|
+
response_data = utils.unmarshal_json(
|
1045
|
+
http_res.text, models.ErrorResponseData
|
1046
|
+
)
|
1047
|
+
raise models.ErrorResponse(data=response_data)
|
994
1048
|
if utils.match_response(http_res, "4XX", "*"):
|
995
1049
|
http_res_text = utils.stream_to_text(http_res)
|
996
1050
|
raise models.APIError(
|
@@ -1101,20 +1155,26 @@ class Namespaces(BaseSDK):
|
|
1101
1155
|
retry_config=retry_config,
|
1102
1156
|
)
|
1103
1157
|
|
1104
|
-
|
1158
|
+
response_data: Any = None
|
1105
1159
|
if utils.match_response(http_res, "200", "application/json"):
|
1106
1160
|
return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
|
1107
1161
|
if utils.match_response(
|
1108
1162
|
http_res, ["400", "401", "403", "404"], "application/json"
|
1109
1163
|
):
|
1110
|
-
|
1111
|
-
|
1164
|
+
response_data = utils.unmarshal_json(
|
1165
|
+
http_res.text, models.ErrorResponseData
|
1166
|
+
)
|
1167
|
+
raise models.ErrorResponse(data=response_data)
|
1112
1168
|
if utils.match_response(http_res, "422", "application/json"):
|
1113
|
-
|
1114
|
-
|
1169
|
+
response_data = utils.unmarshal_json(
|
1170
|
+
http_res.text, models.HTTPValidationErrorData
|
1171
|
+
)
|
1172
|
+
raise models.HTTPValidationError(data=response_data)
|
1115
1173
|
if utils.match_response(http_res, "500", "application/json"):
|
1116
|
-
|
1117
|
-
|
1174
|
+
response_data = utils.unmarshal_json(
|
1175
|
+
http_res.text, models.ErrorResponseData
|
1176
|
+
)
|
1177
|
+
raise models.ErrorResponse(data=response_data)
|
1118
1178
|
if utils.match_response(http_res, "4XX", "*"):
|
1119
1179
|
http_res_text = await utils.stream_to_text_async(http_res)
|
1120
1180
|
raise models.APIError(
|
@@ -1203,20 +1263,26 @@ class Namespaces(BaseSDK):
|
|
1203
1263
|
retry_config=retry_config,
|
1204
1264
|
)
|
1205
1265
|
|
1206
|
-
|
1266
|
+
response_data: Any = None
|
1207
1267
|
if utils.match_response(http_res, "200", "application/json"):
|
1208
1268
|
return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
|
1209
1269
|
if utils.match_response(
|
1210
1270
|
http_res, ["400", "401", "403", "404"], "application/json"
|
1211
1271
|
):
|
1212
|
-
|
1213
|
-
|
1272
|
+
response_data = utils.unmarshal_json(
|
1273
|
+
http_res.text, models.ErrorResponseData
|
1274
|
+
)
|
1275
|
+
raise models.ErrorResponse(data=response_data)
|
1214
1276
|
if utils.match_response(http_res, "422", "application/json"):
|
1215
|
-
|
1216
|
-
|
1277
|
+
response_data = utils.unmarshal_json(
|
1278
|
+
http_res.text, models.HTTPValidationErrorData
|
1279
|
+
)
|
1280
|
+
raise models.HTTPValidationError(data=response_data)
|
1217
1281
|
if utils.match_response(http_res, "500", "application/json"):
|
1218
|
-
|
1219
|
-
|
1282
|
+
response_data = utils.unmarshal_json(
|
1283
|
+
http_res.text, models.ErrorResponseData
|
1284
|
+
)
|
1285
|
+
raise models.ErrorResponse(data=response_data)
|
1220
1286
|
if utils.match_response(http_res, "4XX", "*"):
|
1221
1287
|
http_res_text = utils.stream_to_text(http_res)
|
1222
1288
|
raise models.APIError(
|
@@ -1305,20 +1371,26 @@ class Namespaces(BaseSDK):
|
|
1305
1371
|
retry_config=retry_config,
|
1306
1372
|
)
|
1307
1373
|
|
1308
|
-
|
1374
|
+
response_data: Any = None
|
1309
1375
|
if utils.match_response(http_res, "200", "application/json"):
|
1310
1376
|
return utils.unmarshal_json(http_res.text, models.NamespaceResponse)
|
1311
1377
|
if utils.match_response(
|
1312
1378
|
http_res, ["400", "401", "403", "404"], "application/json"
|
1313
1379
|
):
|
1314
|
-
|
1315
|
-
|
1380
|
+
response_data = utils.unmarshal_json(
|
1381
|
+
http_res.text, models.ErrorResponseData
|
1382
|
+
)
|
1383
|
+
raise models.ErrorResponse(data=response_data)
|
1316
1384
|
if utils.match_response(http_res, "422", "application/json"):
|
1317
|
-
|
1318
|
-
|
1385
|
+
response_data = utils.unmarshal_json(
|
1386
|
+
http_res.text, models.HTTPValidationErrorData
|
1387
|
+
)
|
1388
|
+
raise models.HTTPValidationError(data=response_data)
|
1319
1389
|
if utils.match_response(http_res, "500", "application/json"):
|
1320
|
-
|
1321
|
-
|
1390
|
+
response_data = utils.unmarshal_json(
|
1391
|
+
http_res.text, models.ErrorResponseData
|
1392
|
+
)
|
1393
|
+
raise models.ErrorResponse(data=response_data)
|
1322
1394
|
if utils.match_response(http_res, "4XX", "*"):
|
1323
1395
|
http_res_text = await utils.stream_to_text_async(http_res)
|
1324
1396
|
raise models.APIError(
|
@@ -1400,20 +1472,26 @@ class Namespaces(BaseSDK):
|
|
1400
1472
|
retry_config=retry_config,
|
1401
1473
|
)
|
1402
1474
|
|
1403
|
-
|
1475
|
+
response_data: Any = None
|
1404
1476
|
if utils.match_response(http_res, "200", "application/json"):
|
1405
1477
|
return utils.unmarshal_json(http_res.text, models.AvailableModelsResponse)
|
1406
1478
|
if utils.match_response(
|
1407
1479
|
http_res, ["400", "401", "403", "404"], "application/json"
|
1408
1480
|
):
|
1409
|
-
|
1410
|
-
|
1481
|
+
response_data = utils.unmarshal_json(
|
1482
|
+
http_res.text, models.ErrorResponseData
|
1483
|
+
)
|
1484
|
+
raise models.ErrorResponse(data=response_data)
|
1411
1485
|
if utils.match_response(http_res, "422", "application/json"):
|
1412
|
-
|
1413
|
-
|
1486
|
+
response_data = utils.unmarshal_json(
|
1487
|
+
http_res.text, models.HTTPValidationErrorData
|
1488
|
+
)
|
1489
|
+
raise models.HTTPValidationError(data=response_data)
|
1414
1490
|
if utils.match_response(http_res, "500", "application/json"):
|
1415
|
-
|
1416
|
-
|
1491
|
+
response_data = utils.unmarshal_json(
|
1492
|
+
http_res.text, models.ErrorResponseData
|
1493
|
+
)
|
1494
|
+
raise models.ErrorResponse(data=response_data)
|
1417
1495
|
if utils.match_response(http_res, "4XX", "*"):
|
1418
1496
|
http_res_text = utils.stream_to_text(http_res)
|
1419
1497
|
raise models.APIError(
|
@@ -1495,20 +1573,26 @@ class Namespaces(BaseSDK):
|
|
1495
1573
|
retry_config=retry_config,
|
1496
1574
|
)
|
1497
1575
|
|
1498
|
-
|
1576
|
+
response_data: Any = None
|
1499
1577
|
if utils.match_response(http_res, "200", "application/json"):
|
1500
1578
|
return utils.unmarshal_json(http_res.text, models.AvailableModelsResponse)
|
1501
1579
|
if utils.match_response(
|
1502
1580
|
http_res, ["400", "401", "403", "404"], "application/json"
|
1503
1581
|
):
|
1504
|
-
|
1505
|
-
|
1582
|
+
response_data = utils.unmarshal_json(
|
1583
|
+
http_res.text, models.ErrorResponseData
|
1584
|
+
)
|
1585
|
+
raise models.ErrorResponse(data=response_data)
|
1506
1586
|
if utils.match_response(http_res, "422", "application/json"):
|
1507
|
-
|
1508
|
-
|
1587
|
+
response_data = utils.unmarshal_json(
|
1588
|
+
http_res.text, models.HTTPValidationErrorData
|
1589
|
+
)
|
1590
|
+
raise models.HTTPValidationError(data=response_data)
|
1509
1591
|
if utils.match_response(http_res, "500", "application/json"):
|
1510
|
-
|
1511
|
-
|
1592
|
+
response_data = utils.unmarshal_json(
|
1593
|
+
http_res.text, models.ErrorResponseData
|
1594
|
+
)
|
1595
|
+
raise models.ErrorResponse(data=response_data)
|
1512
1596
|
if utils.match_response(http_res, "4XX", "*"):
|
1513
1597
|
http_res_text = await utils.stream_to_text_async(http_res)
|
1514
1598
|
raise models.APIError(
|