mixpeek 0.17.6__py3-none-any.whl → 0.17.7__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 +2 -2
- mixpeek/models/__init__.py +11 -0
- mixpeek/models/assignmentconfig.py +43 -1
- mixpeek/models/assignmentmode.py +11 -0
- mixpeek/models/discoverrequest.py +6 -16
- mixpeek/models/list_active_tasks_v1_tasks_getop.py +65 -0
- mixpeek/models/listtasksresponse.py +22 -0
- mixpeek/tasks.py +216 -0
- mixpeek/taxonomy_entities.py +6 -12
- {mixpeek-0.17.6.dist-info → mixpeek-0.17.7.dist-info}/METADATA +2 -1
- {mixpeek-0.17.6.dist-info → mixpeek-0.17.7.dist-info}/RECORD +12 -9
- {mixpeek-0.17.6.dist-info → mixpeek-0.17.7.dist-info}/WHEEL +0 -0
mixpeek/_version.py
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
import importlib.metadata
|
4
4
|
|
5
5
|
__title__: str = "mixpeek"
|
6
|
-
__version__: str = "0.17.
|
6
|
+
__version__: str = "0.17.7"
|
7
7
|
__openapi_doc_version__: str = "0.81"
|
8
8
|
__gen_version__: str = "2.493.21"
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.17.
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.17.7 2.493.21 0.81 mixpeek"
|
10
10
|
|
11
11
|
try:
|
12
12
|
if __package__ is not None:
|
mixpeek/models/__init__.py
CHANGED
@@ -19,6 +19,7 @@ from .assets_model_searchquery import (
|
|
19
19
|
)
|
20
20
|
from .assetupdate import AssetUpdate, AssetUpdateTypedDict, Mode
|
21
21
|
from .assignmentconfig import AssignmentConfig, AssignmentConfigTypedDict
|
22
|
+
from .assignmentmode import AssignmentMode
|
22
23
|
from .availablemodels import AvailableModels
|
23
24
|
from .availablemodelsresponse import (
|
24
25
|
AvailableModelsResponse,
|
@@ -246,6 +247,10 @@ from .kill_task_v1_tasks_task_id_deleteop import (
|
|
246
247
|
KillTaskV1TasksTaskIDDeleteRequest,
|
247
248
|
KillTaskV1TasksTaskIDDeleteRequestTypedDict,
|
248
249
|
)
|
250
|
+
from .list_active_tasks_v1_tasks_getop import (
|
251
|
+
ListActiveTasksV1TasksGetRequest,
|
252
|
+
ListActiveTasksV1TasksGetRequestTypedDict,
|
253
|
+
)
|
249
254
|
from .list_assets_v1_assets_postop import (
|
250
255
|
ListAssetsV1AssetsPostRequest,
|
251
256
|
ListAssetsV1AssetsPostRequestTypedDict,
|
@@ -282,6 +287,7 @@ from .listcollectionsresponse import (
|
|
282
287
|
)
|
283
288
|
from .listfeaturesrequest import ListFeaturesRequest, ListFeaturesRequestTypedDict
|
284
289
|
from .listfeaturesresponse import ListFeaturesResponse, ListFeaturesResponseTypedDict
|
290
|
+
from .listtasksresponse import ListTasksResponse, ListTasksResponseTypedDict
|
285
291
|
from .listtaxonomiesresponse import (
|
286
292
|
ListTaxonomiesResponse,
|
287
293
|
ListTaxonomiesResponseTypedDict,
|
@@ -469,6 +475,7 @@ __all__ = [
|
|
469
475
|
"AssetsModelSearchQueryTypedDict",
|
470
476
|
"AssignmentConfig",
|
471
477
|
"AssignmentConfigTypedDict",
|
478
|
+
"AssignmentMode",
|
472
479
|
"AvailableModels",
|
473
480
|
"AvailableModelsResponse",
|
474
481
|
"AvailableModelsResponseTypedDict",
|
@@ -637,6 +644,8 @@ __all__ = [
|
|
637
644
|
"KeywordIndexParamsTypedDict",
|
638
645
|
"KillTaskV1TasksTaskIDDeleteRequest",
|
639
646
|
"KillTaskV1TasksTaskIDDeleteRequestTypedDict",
|
647
|
+
"ListActiveTasksV1TasksGetRequest",
|
648
|
+
"ListActiveTasksV1TasksGetRequestTypedDict",
|
640
649
|
"ListAssetsRequest",
|
641
650
|
"ListAssetsRequestTypedDict",
|
642
651
|
"ListAssetsResponse",
|
@@ -659,6 +668,8 @@ __all__ = [
|
|
659
668
|
"ListFeaturesResponseTypedDict",
|
660
669
|
"ListFeaturesV1FeaturesPostRequest",
|
661
670
|
"ListFeaturesV1FeaturesPostRequestTypedDict",
|
671
|
+
"ListTasksResponse",
|
672
|
+
"ListTasksResponseTypedDict",
|
662
673
|
"ListTaxonomiesResponse",
|
663
674
|
"ListTaxonomiesResponseTypedDict",
|
664
675
|
"ListTaxonomiesV1EntitiesTaxonomiesGetRequest",
|
@@ -1,7 +1,9 @@
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
|
-
from
|
4
|
+
from .assignmentmode import AssignmentMode
|
5
|
+
from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
6
|
+
from pydantic import model_serializer
|
5
7
|
from typing import Optional
|
6
8
|
from typing_extensions import NotRequired, TypedDict
|
7
9
|
|
@@ -11,8 +13,12 @@ class AssignmentConfigTypedDict(TypedDict):
|
|
11
13
|
|
12
14
|
enabled: NotRequired[bool]
|
13
15
|
r"""Whether to assign the taxonomy to the feature"""
|
16
|
+
mode: NotRequired[AssignmentMode]
|
17
|
+
r"""Mode for how classifications should be assigned"""
|
14
18
|
append: NotRequired[bool]
|
15
19
|
r"""Whether to append the classification to the feature, if false, replaces any existing classification"""
|
20
|
+
confidence_threshold: NotRequired[Nullable[float]]
|
21
|
+
r"""Minimum confidence score required for classification (only used in threshold mode)"""
|
16
22
|
|
17
23
|
|
18
24
|
class AssignmentConfig(BaseModel):
|
@@ -21,5 +27,41 @@ class AssignmentConfig(BaseModel):
|
|
21
27
|
enabled: Optional[bool] = False
|
22
28
|
r"""Whether to assign the taxonomy to the feature"""
|
23
29
|
|
30
|
+
mode: Optional[AssignmentMode] = None
|
31
|
+
r"""Mode for how classifications should be assigned"""
|
32
|
+
|
24
33
|
append: Optional[bool] = False
|
25
34
|
r"""Whether to append the classification to the feature, if false, replaces any existing classification"""
|
35
|
+
|
36
|
+
confidence_threshold: OptionalNullable[float] = UNSET
|
37
|
+
r"""Minimum confidence score required for classification (only used in threshold mode)"""
|
38
|
+
|
39
|
+
@model_serializer(mode="wrap")
|
40
|
+
def serialize_model(self, handler):
|
41
|
+
optional_fields = ["enabled", "mode", "append", "confidence_threshold"]
|
42
|
+
nullable_fields = ["confidence_threshold"]
|
43
|
+
null_default_fields = []
|
44
|
+
|
45
|
+
serialized = handler(self)
|
46
|
+
|
47
|
+
m = {}
|
48
|
+
|
49
|
+
for n, f in self.model_fields.items():
|
50
|
+
k = f.alias or n
|
51
|
+
val = serialized.get(k)
|
52
|
+
serialized.pop(k, None)
|
53
|
+
|
54
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
55
|
+
is_set = (
|
56
|
+
self.__pydantic_fields_set__.intersection({n})
|
57
|
+
or k in null_default_fields
|
58
|
+
) # pylint: disable=no-member
|
59
|
+
|
60
|
+
if val is not None and val != UNSET_SENTINEL:
|
61
|
+
m[k] = val
|
62
|
+
elif val != UNSET_SENTINEL and (
|
63
|
+
not k in optional_fields or (optional_nullable and is_set)
|
64
|
+
):
|
65
|
+
m[k] = val
|
66
|
+
|
67
|
+
return m
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from enum import Enum
|
5
|
+
|
6
|
+
|
7
|
+
class AssignmentMode(str, Enum):
|
8
|
+
r"""Mode for how classifications should be assigned"""
|
9
|
+
|
10
|
+
THRESHOLD = "threshold"
|
11
|
+
NEAREST = "nearest"
|
@@ -14,12 +14,10 @@ class DiscoverRequestTypedDict(TypedDict):
|
|
14
14
|
r"""List of collection names or ids to search for features"""
|
15
15
|
filters: NotRequired[Nullable[LogicalOperatorTypedDict]]
|
16
16
|
r"""Filters to apply to the discovery task"""
|
17
|
-
confidence_threshold: NotRequired[float]
|
18
|
-
r"""Minimum confidence score required for classification"""
|
19
17
|
assignment: NotRequired[AssignmentConfigTypedDict]
|
20
18
|
r"""Configuration for how classifications should be assigned to features"""
|
21
|
-
|
22
|
-
r"""Number of feature samples to process"""
|
19
|
+
limit: NotRequired[Nullable[int]]
|
20
|
+
r"""Number of feature samples to process, if None, all features that match the filters are processed"""
|
23
21
|
|
24
22
|
|
25
23
|
class DiscoverRequest(BaseModel):
|
@@ -29,24 +27,16 @@ class DiscoverRequest(BaseModel):
|
|
29
27
|
filters: OptionalNullable[LogicalOperator] = UNSET
|
30
28
|
r"""Filters to apply to the discovery task"""
|
31
29
|
|
32
|
-
confidence_threshold: Optional[float] = 0.8
|
33
|
-
r"""Minimum confidence score required for classification"""
|
34
|
-
|
35
30
|
assignment: Optional[AssignmentConfig] = None
|
36
31
|
r"""Configuration for how classifications should be assigned to features"""
|
37
32
|
|
38
|
-
|
39
|
-
r"""Number of feature samples to process"""
|
33
|
+
limit: OptionalNullable[int] = UNSET
|
34
|
+
r"""Number of feature samples to process, if None, all features that match the filters are processed"""
|
40
35
|
|
41
36
|
@model_serializer(mode="wrap")
|
42
37
|
def serialize_model(self, handler):
|
43
|
-
optional_fields = [
|
44
|
-
|
45
|
-
"confidence_threshold",
|
46
|
-
"assignment",
|
47
|
-
"sample_size",
|
48
|
-
]
|
49
|
-
nullable_fields = ["filters", "sample_size"]
|
38
|
+
optional_fields = ["filters", "assignment", "limit"]
|
39
|
+
nullable_fields = ["filters", "limit"]
|
50
40
|
null_default_fields = []
|
51
41
|
|
52
42
|
serialized = handler(self)
|
@@ -0,0 +1,65 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
5
|
+
from mixpeek.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata
|
6
|
+
import pydantic
|
7
|
+
from pydantic import model_serializer
|
8
|
+
from typing import Optional
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
10
|
+
|
11
|
+
|
12
|
+
class ListActiveTasksV1TasksGetRequestTypedDict(TypedDict):
|
13
|
+
page: NotRequired[Nullable[int]]
|
14
|
+
page_size: NotRequired[int]
|
15
|
+
x_namespace: NotRequired[Nullable[str]]
|
16
|
+
r"""Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint."""
|
17
|
+
|
18
|
+
|
19
|
+
class ListActiveTasksV1TasksGetRequest(BaseModel):
|
20
|
+
page: Annotated[
|
21
|
+
OptionalNullable[int],
|
22
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
23
|
+
] = UNSET
|
24
|
+
|
25
|
+
page_size: Annotated[
|
26
|
+
Optional[int],
|
27
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
28
|
+
] = 10
|
29
|
+
|
30
|
+
x_namespace: Annotated[
|
31
|
+
OptionalNullable[str],
|
32
|
+
pydantic.Field(alias="X-Namespace"),
|
33
|
+
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
34
|
+
] = UNSET
|
35
|
+
r"""Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint."""
|
36
|
+
|
37
|
+
@model_serializer(mode="wrap")
|
38
|
+
def serialize_model(self, handler):
|
39
|
+
optional_fields = ["page", "page_size", "X-Namespace"]
|
40
|
+
nullable_fields = ["page", "X-Namespace"]
|
41
|
+
null_default_fields = []
|
42
|
+
|
43
|
+
serialized = handler(self)
|
44
|
+
|
45
|
+
m = {}
|
46
|
+
|
47
|
+
for n, f in self.model_fields.items():
|
48
|
+
k = f.alias or n
|
49
|
+
val = serialized.get(k)
|
50
|
+
serialized.pop(k, None)
|
51
|
+
|
52
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
53
|
+
is_set = (
|
54
|
+
self.__pydantic_fields_set__.intersection({n})
|
55
|
+
or k in null_default_fields
|
56
|
+
) # pylint: disable=no-member
|
57
|
+
|
58
|
+
if val is not None and val != UNSET_SENTINEL:
|
59
|
+
m[k] = val
|
60
|
+
elif val != UNSET_SENTINEL and (
|
61
|
+
not k in optional_fields or (optional_nullable and is_set)
|
62
|
+
):
|
63
|
+
m[k] = val
|
64
|
+
|
65
|
+
return m
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .db_model_paginationresponse import (
|
5
|
+
DbModelPaginationResponse,
|
6
|
+
DbModelPaginationResponseTypedDict,
|
7
|
+
)
|
8
|
+
from .taskresponse import TaskResponse, TaskResponseTypedDict
|
9
|
+
from mixpeek.types import BaseModel
|
10
|
+
from typing import List
|
11
|
+
from typing_extensions import TypedDict
|
12
|
+
|
13
|
+
|
14
|
+
class ListTasksResponseTypedDict(TypedDict):
|
15
|
+
results: List[TaskResponseTypedDict]
|
16
|
+
pagination: DbModelPaginationResponseTypedDict
|
17
|
+
|
18
|
+
|
19
|
+
class ListTasksResponse(BaseModel):
|
20
|
+
results: List[TaskResponse]
|
21
|
+
|
22
|
+
pagination: DbModelPaginationResponse
|
mixpeek/tasks.py
CHANGED
@@ -436,3 +436,219 @@ class Tasks(BaseSDK):
|
|
436
436
|
http_res_text,
|
437
437
|
http_res,
|
438
438
|
)
|
439
|
+
|
440
|
+
def list_active_tasks_v1_tasks_get(
|
441
|
+
self,
|
442
|
+
*,
|
443
|
+
page: OptionalNullable[int] = UNSET,
|
444
|
+
page_size: Optional[int] = 10,
|
445
|
+
x_namespace: OptionalNullable[str] = UNSET,
|
446
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
447
|
+
server_url: Optional[str] = None,
|
448
|
+
timeout_ms: Optional[int] = None,
|
449
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
450
|
+
) -> models.ListTasksResponse:
|
451
|
+
r"""List Active Tasks
|
452
|
+
|
453
|
+
Retrieve all tasks that are not in a complete state (DONE, FAILED, SKIPPED, or CANCELLED)
|
454
|
+
|
455
|
+
:param page:
|
456
|
+
:param page_size:
|
457
|
+
:param x_namespace: Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint.
|
458
|
+
:param retries: Override the default retry configuration for this method
|
459
|
+
:param server_url: Override the default server URL for this method
|
460
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
461
|
+
:param http_headers: Additional headers to set or replace on requests.
|
462
|
+
"""
|
463
|
+
base_url = None
|
464
|
+
url_variables = None
|
465
|
+
if timeout_ms is None:
|
466
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
467
|
+
|
468
|
+
if server_url is not None:
|
469
|
+
base_url = server_url
|
470
|
+
|
471
|
+
request = models.ListActiveTasksV1TasksGetRequest(
|
472
|
+
page=page,
|
473
|
+
page_size=page_size,
|
474
|
+
x_namespace=x_namespace,
|
475
|
+
)
|
476
|
+
|
477
|
+
req = self._build_request(
|
478
|
+
method="GET",
|
479
|
+
path="/v1/tasks",
|
480
|
+
base_url=base_url,
|
481
|
+
url_variables=url_variables,
|
482
|
+
request=request,
|
483
|
+
request_body_required=False,
|
484
|
+
request_has_path_params=False,
|
485
|
+
request_has_query_params=True,
|
486
|
+
user_agent_header="user-agent",
|
487
|
+
accept_header_value="application/json",
|
488
|
+
http_headers=http_headers,
|
489
|
+
security=self.sdk_configuration.security,
|
490
|
+
timeout_ms=timeout_ms,
|
491
|
+
)
|
492
|
+
|
493
|
+
if retries == UNSET:
|
494
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
495
|
+
retries = self.sdk_configuration.retry_config
|
496
|
+
|
497
|
+
retry_config = None
|
498
|
+
if isinstance(retries, utils.RetryConfig):
|
499
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
500
|
+
|
501
|
+
http_res = self.do_request(
|
502
|
+
hook_ctx=HookContext(
|
503
|
+
operation_id="list_active_tasks_v1_tasks_get",
|
504
|
+
oauth2_scopes=[],
|
505
|
+
security_source=get_security_from_env(
|
506
|
+
self.sdk_configuration.security, models.Security
|
507
|
+
),
|
508
|
+
),
|
509
|
+
request=req,
|
510
|
+
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
511
|
+
retry_config=retry_config,
|
512
|
+
)
|
513
|
+
|
514
|
+
data: Any = None
|
515
|
+
if utils.match_response(http_res, "200", "application/json"):
|
516
|
+
return utils.unmarshal_json(http_res.text, models.ListTasksResponse)
|
517
|
+
if utils.match_response(
|
518
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
519
|
+
):
|
520
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
521
|
+
raise models.ErrorResponse(data=data)
|
522
|
+
if utils.match_response(http_res, "422", "application/json"):
|
523
|
+
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
524
|
+
raise models.HTTPValidationError(data=data)
|
525
|
+
if utils.match_response(http_res, "500", "application/json"):
|
526
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
527
|
+
raise models.ErrorResponse(data=data)
|
528
|
+
if utils.match_response(http_res, "4XX", "*"):
|
529
|
+
http_res_text = utils.stream_to_text(http_res)
|
530
|
+
raise models.APIError(
|
531
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
532
|
+
)
|
533
|
+
if utils.match_response(http_res, "5XX", "*"):
|
534
|
+
http_res_text = utils.stream_to_text(http_res)
|
535
|
+
raise models.APIError(
|
536
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
537
|
+
)
|
538
|
+
|
539
|
+
content_type = http_res.headers.get("Content-Type")
|
540
|
+
http_res_text = utils.stream_to_text(http_res)
|
541
|
+
raise models.APIError(
|
542
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
543
|
+
http_res.status_code,
|
544
|
+
http_res_text,
|
545
|
+
http_res,
|
546
|
+
)
|
547
|
+
|
548
|
+
async def list_active_tasks_v1_tasks_get_async(
|
549
|
+
self,
|
550
|
+
*,
|
551
|
+
page: OptionalNullable[int] = UNSET,
|
552
|
+
page_size: Optional[int] = 10,
|
553
|
+
x_namespace: OptionalNullable[str] = UNSET,
|
554
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
555
|
+
server_url: Optional[str] = None,
|
556
|
+
timeout_ms: Optional[int] = None,
|
557
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
558
|
+
) -> models.ListTasksResponse:
|
559
|
+
r"""List Active Tasks
|
560
|
+
|
561
|
+
Retrieve all tasks that are not in a complete state (DONE, FAILED, SKIPPED, or CANCELLED)
|
562
|
+
|
563
|
+
:param page:
|
564
|
+
:param page_size:
|
565
|
+
:param x_namespace: Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint.
|
566
|
+
:param retries: Override the default retry configuration for this method
|
567
|
+
:param server_url: Override the default server URL for this method
|
568
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
569
|
+
:param http_headers: Additional headers to set or replace on requests.
|
570
|
+
"""
|
571
|
+
base_url = None
|
572
|
+
url_variables = None
|
573
|
+
if timeout_ms is None:
|
574
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
575
|
+
|
576
|
+
if server_url is not None:
|
577
|
+
base_url = server_url
|
578
|
+
|
579
|
+
request = models.ListActiveTasksV1TasksGetRequest(
|
580
|
+
page=page,
|
581
|
+
page_size=page_size,
|
582
|
+
x_namespace=x_namespace,
|
583
|
+
)
|
584
|
+
|
585
|
+
req = self._build_request_async(
|
586
|
+
method="GET",
|
587
|
+
path="/v1/tasks",
|
588
|
+
base_url=base_url,
|
589
|
+
url_variables=url_variables,
|
590
|
+
request=request,
|
591
|
+
request_body_required=False,
|
592
|
+
request_has_path_params=False,
|
593
|
+
request_has_query_params=True,
|
594
|
+
user_agent_header="user-agent",
|
595
|
+
accept_header_value="application/json",
|
596
|
+
http_headers=http_headers,
|
597
|
+
security=self.sdk_configuration.security,
|
598
|
+
timeout_ms=timeout_ms,
|
599
|
+
)
|
600
|
+
|
601
|
+
if retries == UNSET:
|
602
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
603
|
+
retries = self.sdk_configuration.retry_config
|
604
|
+
|
605
|
+
retry_config = None
|
606
|
+
if isinstance(retries, utils.RetryConfig):
|
607
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
608
|
+
|
609
|
+
http_res = await self.do_request_async(
|
610
|
+
hook_ctx=HookContext(
|
611
|
+
operation_id="list_active_tasks_v1_tasks_get",
|
612
|
+
oauth2_scopes=[],
|
613
|
+
security_source=get_security_from_env(
|
614
|
+
self.sdk_configuration.security, models.Security
|
615
|
+
),
|
616
|
+
),
|
617
|
+
request=req,
|
618
|
+
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
619
|
+
retry_config=retry_config,
|
620
|
+
)
|
621
|
+
|
622
|
+
data: Any = None
|
623
|
+
if utils.match_response(http_res, "200", "application/json"):
|
624
|
+
return utils.unmarshal_json(http_res.text, models.ListTasksResponse)
|
625
|
+
if utils.match_response(
|
626
|
+
http_res, ["400", "401", "403", "404"], "application/json"
|
627
|
+
):
|
628
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
629
|
+
raise models.ErrorResponse(data=data)
|
630
|
+
if utils.match_response(http_res, "422", "application/json"):
|
631
|
+
data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
|
632
|
+
raise models.HTTPValidationError(data=data)
|
633
|
+
if utils.match_response(http_res, "500", "application/json"):
|
634
|
+
data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
|
635
|
+
raise models.ErrorResponse(data=data)
|
636
|
+
if utils.match_response(http_res, "4XX", "*"):
|
637
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
638
|
+
raise models.APIError(
|
639
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
640
|
+
)
|
641
|
+
if utils.match_response(http_res, "5XX", "*"):
|
642
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
643
|
+
raise models.APIError(
|
644
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
645
|
+
)
|
646
|
+
|
647
|
+
content_type = http_res.headers.get("Content-Type")
|
648
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
649
|
+
raise models.APIError(
|
650
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
651
|
+
http_res.status_code,
|
652
|
+
http_res_text,
|
653
|
+
http_res,
|
654
|
+
)
|
mixpeek/taxonomy_entities.py
CHANGED
@@ -1594,11 +1594,10 @@ class TaxonomyEntities(BaseSDK):
|
|
1594
1594
|
filters: OptionalNullable[
|
1595
1595
|
Union[models.LogicalOperator, models.LogicalOperatorTypedDict]
|
1596
1596
|
] = UNSET,
|
1597
|
-
confidence_threshold: Optional[float] = 0.8,
|
1598
1597
|
assignment: Optional[
|
1599
1598
|
Union[models.AssignmentConfig, models.AssignmentConfigTypedDict]
|
1600
1599
|
] = None,
|
1601
|
-
|
1600
|
+
limit: OptionalNullable[int] = UNSET,
|
1602
1601
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
1603
1602
|
server_url: Optional[str] = None,
|
1604
1603
|
timeout_ms: Optional[int] = None,
|
@@ -1612,9 +1611,8 @@ class TaxonomyEntities(BaseSDK):
|
|
1612
1611
|
:param collections: List of collection names or ids to search for features
|
1613
1612
|
:param x_namespace: Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint.
|
1614
1613
|
:param filters: Filters to apply to the discovery task
|
1615
|
-
:param confidence_threshold: Minimum confidence score required for classification
|
1616
1614
|
:param assignment: Configuration for how classifications should be assigned to features
|
1617
|
-
:param
|
1615
|
+
:param limit: Number of feature samples to process, if None, all features that match the filters are processed
|
1618
1616
|
:param retries: Override the default retry configuration for this method
|
1619
1617
|
:param server_url: Override the default server URL for this method
|
1620
1618
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
@@ -1637,11 +1635,10 @@ class TaxonomyEntities(BaseSDK):
|
|
1637
1635
|
filters=utils.get_pydantic_model(
|
1638
1636
|
filters, OptionalNullable[models.LogicalOperator]
|
1639
1637
|
),
|
1640
|
-
confidence_threshold=confidence_threshold,
|
1641
1638
|
assignment=utils.get_pydantic_model(
|
1642
1639
|
assignment, Optional[models.AssignmentConfig]
|
1643
1640
|
),
|
1644
|
-
|
1641
|
+
limit=limit,
|
1645
1642
|
),
|
1646
1643
|
)
|
1647
1644
|
)
|
@@ -1729,11 +1726,10 @@ class TaxonomyEntities(BaseSDK):
|
|
1729
1726
|
filters: OptionalNullable[
|
1730
1727
|
Union[models.LogicalOperator, models.LogicalOperatorTypedDict]
|
1731
1728
|
] = UNSET,
|
1732
|
-
confidence_threshold: Optional[float] = 0.8,
|
1733
1729
|
assignment: Optional[
|
1734
1730
|
Union[models.AssignmentConfig, models.AssignmentConfigTypedDict]
|
1735
1731
|
] = None,
|
1736
|
-
|
1732
|
+
limit: OptionalNullable[int] = UNSET,
|
1737
1733
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
1738
1734
|
server_url: Optional[str] = None,
|
1739
1735
|
timeout_ms: Optional[int] = None,
|
@@ -1747,9 +1743,8 @@ class TaxonomyEntities(BaseSDK):
|
|
1747
1743
|
:param collections: List of collection names or ids to search for features
|
1748
1744
|
:param x_namespace: Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint.
|
1749
1745
|
:param filters: Filters to apply to the discovery task
|
1750
|
-
:param confidence_threshold: Minimum confidence score required for classification
|
1751
1746
|
:param assignment: Configuration for how classifications should be assigned to features
|
1752
|
-
:param
|
1747
|
+
:param limit: Number of feature samples to process, if None, all features that match the filters are processed
|
1753
1748
|
:param retries: Override the default retry configuration for this method
|
1754
1749
|
:param server_url: Override the default server URL for this method
|
1755
1750
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
@@ -1772,11 +1767,10 @@ class TaxonomyEntities(BaseSDK):
|
|
1772
1767
|
filters=utils.get_pydantic_model(
|
1773
1768
|
filters, OptionalNullable[models.LogicalOperator]
|
1774
1769
|
),
|
1775
|
-
confidence_threshold=confidence_threshold,
|
1776
1770
|
assignment=utils.get_pydantic_model(
|
1777
1771
|
assignment, Optional[models.AssignmentConfig]
|
1778
1772
|
),
|
1779
|
-
|
1773
|
+
limit=limit,
|
1780
1774
|
),
|
1781
1775
|
)
|
1782
1776
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: mixpeek
|
3
|
-
Version: 0.17.
|
3
|
+
Version: 0.17.7
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
5
5
|
Author: Speakeasy
|
6
6
|
Requires-Python: >=3.9
|
@@ -226,6 +226,7 @@ with Mixpeek(
|
|
226
226
|
|
227
227
|
* [kill_task_v1_tasks_task_id_delete](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/tasks/README.md#kill_task_v1_tasks_task_id_delete) - Kill Task
|
228
228
|
* [get_task_v1_tasks_task_id_get](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/tasks/README.md#get_task_v1_tasks_task_id_get) - Get Task Information
|
229
|
+
* [list_active_tasks_v1_tasks_get](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/tasks/README.md#list_active_tasks_v1_tasks_get) - List Active Tasks
|
229
230
|
|
230
231
|
### [taxonomy_entities](https://github.com/mixpeek/python-sdk/blob/master/docs/sdks/taxonomyentities/README.md)
|
231
232
|
|
@@ -3,7 +3,7 @@ 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=
|
6
|
+
mixpeek/_version.py,sha256=JhVPIYTzD5yreJaNEoIOpCq5MzjESubuyOSOz8QLpsg,458
|
7
7
|
mixpeek/assets.py,sha256=okHHFp_tkGHH_2jFQVOolykQjcAT79X5whNDq8EzyrU,75844
|
8
8
|
mixpeek/basesdk.py,sha256=j_PZqE6WgIfx1cPCK5gAVn-rgPy9iLhUN5ELtefoEU0,11976
|
9
9
|
mixpeek/collections.py,sha256=FowQr_11c94vabISINK6SHDJvXdR5m7OQ3Oxr51eLrM,49397
|
@@ -13,7 +13,7 @@ mixpeek/features.py,sha256=dRQMzv1TEEz4ytz1VfjLBAPP7MoLPNVPySj0AQUSeOk,41774
|
|
13
13
|
mixpeek/health.py,sha256=4i7KHGS2bYHCAE0nyHDw5g24MXcTZYVaTviQNKPW5o0,6742
|
14
14
|
mixpeek/httpclient.py,sha256=WDbLpMzo7qmWki_ryOJcCAYNI1T4uyWKV08rRuCdNII,2688
|
15
15
|
mixpeek/ingest_assets.py,sha256=huVBLPX2e25QSV3ZVTHvJXT3EvdGCi9RuAWuxRR4AEw,40586
|
16
|
-
mixpeek/models/__init__.py,sha256=
|
16
|
+
mixpeek/models/__init__.py,sha256=tA15wFp9zSk7e76MF48-to5yygR17id6EGWQjXnQ6W4,31191
|
17
17
|
mixpeek/models/actionusage.py,sha256=WAnnBVTeQ9j0dtIrubfyyJQwbBamxManfS8fc2OFNyo,324
|
18
18
|
mixpeek/models/apierror.py,sha256=9mTyJSyvUAOnSfW_1HWt9dGl8IDlpQ68DebwYsDNdug,528
|
19
19
|
mixpeek/models/apikey.py,sha256=P99SWsu6wgc6HStE2MteANIGShUkM2dwQnbQvdg5AOc,654
|
@@ -22,7 +22,8 @@ mixpeek/models/assetfeatures.py,sha256=etqfjGnlrbI6fAp6OrM86jxP92X0MAeO3lKqUz3Pk
|
|
22
22
|
mixpeek/models/assetresponse.py,sha256=XR0gM7agzRnGIOqqPqrotZRg1hdN1o-rfW6x9-esE4g,5069
|
23
23
|
mixpeek/models/assets_model_searchquery.py,sha256=F8TTe7lCD2IF_5ik-GwlvAR2437SBsWCI7IDipft904,664
|
24
24
|
mixpeek/models/assetupdate.py,sha256=xVL49RVIsc7ytm0yVJ9xq1GcSykiswMiC8GeWnZMKB4,670
|
25
|
-
mixpeek/models/assignmentconfig.py,sha256=
|
25
|
+
mixpeek/models/assignmentconfig.py,sha256=681MGdSFOSi_juxaYVFD9E3WpU3RwnHIWZGcmlI-6EE,2531
|
26
|
+
mixpeek/models/assignmentmode.py,sha256=iGnIbBsf-L3OGIQeFLl9INPu61N0dEMeRUnhxyxRNZY,277
|
26
27
|
mixpeek/models/availablemodels.py,sha256=raBZi6xCmWbYNgvX-N5LzWLwEfbEskcJ_nJfTst9u5U,460
|
27
28
|
mixpeek/models/availablemodelsresponse.py,sha256=DDo0FaQx38Dls2A-4K4pTdpFydzXS533WkJQz9zBADE,1072
|
28
29
|
mixpeek/models/boolindexparams.py,sha256=bg7Hy6y9acpu7AxMpHTsYjEphDd0HnrqFPSgIDpgdZc,454
|
@@ -48,7 +49,7 @@ mixpeek/models/delete_namespace_v1_namespaces_namespace_deleteop.py,sha256=8Rx0M
|
|
48
49
|
mixpeek/models/delete_taxonomy_v1_entities_taxonomies_taxonomy_deleteop.py,sha256=xgBTZtgI9B1ryz-T9n67XpDavuRcYmnfb9hlDgNvHs4,2322
|
49
50
|
mixpeek/models/delete_user_v1_organizations_users_user_email_deleteop.py,sha256=ihsOW_KtfWvJTIwZW2zWKxFYnkbX7Qn7ux8XQxu8Z3U,544
|
50
51
|
mixpeek/models/denseembedding.py,sha256=ECX8Nwo6tD8Qm1WxGPGOy4H8WYLQ6q6VKqbnanT3vlA,413
|
51
|
-
mixpeek/models/discoverrequest.py,sha256=
|
52
|
+
mixpeek/models/discoverrequest.py,sha256=GyH4RVo34cUfsQHl0WGf1imJojoBhlCurJ7e-J3Bsn4,2447
|
52
53
|
mixpeek/models/embeddingconfig.py,sha256=tjP4AoaWyMztqWkrL07T2ACxzuldYjZfCPaUQrk-4aQ,742
|
53
54
|
mixpeek/models/embeddingrequest.py,sha256=1xH5yNaNGl9Zi4aikEpb73hl9KSfZLnpX79ZVL6lypI,3100
|
54
55
|
mixpeek/models/embeddingresponse.py,sha256=1H6OWwIIO0ktqhmK0mIGdo3Bqv8saM7jFaFlljEZL1g,2223
|
@@ -96,6 +97,7 @@ mixpeek/models/jsontextoutputsettings.py,sha256=EGbFfuSFSXQO6A3_Gkj58qPVsEU5NE55
|
|
96
97
|
mixpeek/models/jsonvideooutputsettings.py,sha256=7kf0tJM2Go-rWBIbp9yWJYv2RFesQvOjPsE3p-DeA9I,1716
|
97
98
|
mixpeek/models/keywordindexparams.py,sha256=V_p8KMQ_eftLvDSMTFuifeOEXZVAqKFml9Fx2woyE50,535
|
98
99
|
mixpeek/models/kill_task_v1_tasks_task_id_deleteop.py,sha256=1LuuipgT4IVUnTBnw2hIbD20ltiMg-NOXWv-tZHZnQs,2174
|
100
|
+
mixpeek/models/list_active_tasks_v1_tasks_getop.py,sha256=hR2r1xP1SoXT61vobk8LnM6EY-VGEETcr5gIKVB53jw,2449
|
99
101
|
mixpeek/models/list_assets_v1_assets_postop.py,sha256=P2DjYuGJ6jtyEujEL1qkxclKjkd-6n8pr8-TLgsKE-Y,2759
|
100
102
|
mixpeek/models/list_classifications_v1_entities_taxonomies_taxonomy_classifications_postop.py,sha256=OtvqhPLZC3WXFPKSAn3N6IzEjhxD87kVqt5ggV_UG64,3174
|
101
103
|
mixpeek/models/list_collections_v1_collections_getop.py,sha256=zDz5GCAi5mMDmkPnIrS6L3qIje3tEXUcUUDMnajWCD0,2461
|
@@ -108,6 +110,7 @@ mixpeek/models/listclassificationsresponse.py,sha256=dlpI24_WXa14Z8o1pjljkg-4BKY
|
|
108
110
|
mixpeek/models/listcollectionsresponse.py,sha256=QRDk1-yg21sbRFUrH9lfqvA7q8Ex517C5UbsI5w1lQY,670
|
109
111
|
mixpeek/models/listfeaturesrequest.py,sha256=b0hUacli5s9E0W-jeboYLJrQyHMmetd7VyIZh1_gSTc,2830
|
110
112
|
mixpeek/models/listfeaturesresponse.py,sha256=5bGne8MktUoJnqyo2uWTg1nJQmFLNRTS8TX1HYcGvhQ,689
|
113
|
+
mixpeek/models/listtasksresponse.py,sha256=KQ4tpekEC4aHjdEYp6Oj8SpQV0ThPZll6HApMsHSEgg,638
|
111
114
|
mixpeek/models/listtaxonomiesresponse.py,sha256=Qd6kppjPrLR63e8vfNCGKJmw_YHilIwoBdq23XCTU90,767
|
112
115
|
mixpeek/models/logicaloperator.py,sha256=-YpC_qxzBHcjS71TsoVCEI9OvePL56Fx6Q_lpUaZipg,2824
|
113
116
|
mixpeek/models/logodetectsettings.py,sha256=f_xvsILMrlbhS4raufxc7iNaONqEvWWTj7_OOIr4BTM,1706
|
@@ -170,8 +173,8 @@ mixpeek/organizations.py,sha256=Vy4IzXiUjsVDtxidIDbRi-ml2h7jsRkvFLHvzcYsa08,7077
|
|
170
173
|
mixpeek/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
171
174
|
mixpeek/sdk.py,sha256=K7nIws2PhKEHC79up5B5E2T7l8XYUCzV51efONbdQTA,5995
|
172
175
|
mixpeek/sdkconfiguration.py,sha256=WDFDVblhsi547ZxDPEPR243zKLM1shTDSt9w3nporHc,1703
|
173
|
-
mixpeek/tasks.py,sha256=
|
174
|
-
mixpeek/taxonomy_entities.py,sha256=
|
176
|
+
mixpeek/tasks.py,sha256=8i9U0jkEW2rTVyJVOf7NW0Gs36Ud8aIjvTUTUxZsc-c,27746
|
177
|
+
mixpeek/taxonomy_entities.py,sha256=NRtKmtYEVTl2SXHIZ7uMBVMqY5omgTabXyDUCk7BarY,104648
|
175
178
|
mixpeek/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
176
179
|
mixpeek/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
|
177
180
|
mixpeek/utils/__init__.py,sha256=8npwwHS-7zjVrbkzBGO-Uk4GkjC240PCleMbgPK1Axs,2418
|
@@ -189,6 +192,6 @@ mixpeek/utils/security.py,sha256=XoK-R2YMyZtVWQte7FoezfGJS-dea9jz4qQ7w5dwNWc,600
|
|
189
192
|
mixpeek/utils/serializers.py,sha256=BSJT7kBOkNBFyP7KREyMoe14JGbgijD1M6AXFMbdmco,4924
|
190
193
|
mixpeek/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
191
194
|
mixpeek/utils/values.py,sha256=_89YXPTI_BU6SXJBzFR4pIzTCBPQW9tsOTN1jeBBIDs,3428
|
192
|
-
mixpeek-0.17.
|
193
|
-
mixpeek-0.17.
|
194
|
-
mixpeek-0.17.
|
195
|
+
mixpeek-0.17.7.dist-info/METADATA,sha256=sNctyWkmzxB7z6NiZz5CcK96bL7gICqfbr0-1n2Mgbw,24293
|
196
|
+
mixpeek-0.17.7.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
197
|
+
mixpeek-0.17.7.dist-info/RECORD,,
|
File without changes
|