arthur-client 0.11.0__py3-none-any.whl → 0.12.0__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.
- arthur/client/rest/admin/models.py +1 -1
- arthur/client/rest/alerts/models.py +1 -1
- arthur/client/rest/bench/client.py +37 -8
- arthur/client/rest/bench/models.py +1 -1
- arthur/client/rest/common/models.py +1 -1
- arthur/client/rest/enrichments/models.py +1 -1
- arthur/client/rest/inferences/models.py +1 -1
- arthur/client/rest/insights/models.py +1 -1
- arthur/client/rest/metrics/models.py +1 -1
- arthur/client/rest/model_groups/client.py +1 -1
- arthur/client/rest/model_groups/models.py +1 -1
- arthur/client/rest/models/models.py +5 -1
- arthur/client/rest/query/client.py +1 -1
- arthur/client/rest/query/models.py +1 -1
- arthur/client/version.py +1 -1
- {arthur_client-0.11.0.dist-info → arthur_client-0.12.0.dist-info}/METADATA +1 -1
- {arthur_client-0.11.0.dist-info → arthur_client-0.12.0.dist-info}/RECORD +20 -20
- {arthur_client-0.11.0.dist-info → arthur_client-0.12.0.dist-info}/LICENSE +0 -0
- {arthur_client-0.11.0.dist-info → arthur_client-0.12.0.dist-info}/WHEEL +0 -0
- {arthur_client-0.11.0.dist-info → arthur_client-0.12.0.dist-info}/top_level.txt +0 -0
@@ -42,7 +42,8 @@ class ArthurBenchClient:
|
|
42
42
|
self,
|
43
43
|
name: Optional[str] = None,
|
44
44
|
sort: Optional[str] = None,
|
45
|
-
|
45
|
+
page: Optional[int] = None,
|
46
|
+
page_size: Optional[int] = None,
|
46
47
|
) -> PaginatedGetTestSuitesResponse:
|
47
48
|
"""
|
48
49
|
Gets test suites
|
@@ -52,7 +53,8 @@ class ArthurBenchClient:
|
|
52
53
|
|
53
54
|
:param name:
|
54
55
|
:param sort:
|
55
|
-
:param
|
56
|
+
:param page:
|
57
|
+
:param page_size:
|
56
58
|
"""
|
57
59
|
|
58
60
|
params: Dict[str, Any] = {}
|
@@ -60,8 +62,10 @@ class ArthurBenchClient:
|
|
60
62
|
params["name"] = name
|
61
63
|
if sort is not None:
|
62
64
|
params["sort"] = sort
|
63
|
-
if
|
64
|
-
params["
|
65
|
+
if page is not None:
|
66
|
+
params["page"] = page
|
67
|
+
if page_size is not None:
|
68
|
+
params["page_size"] = page_size
|
65
69
|
|
66
70
|
parsed_resp: Dict[str, Any] = self.http_client.get( # type: ignore
|
67
71
|
f"/v3/bench/test_suites", params=params, validation_response_code=200
|
@@ -82,15 +86,30 @@ class ArthurBenchClient:
|
|
82
86
|
)
|
83
87
|
return TestSuiteResponse(**parsed_resp)
|
84
88
|
|
85
|
-
def get_test_suite(
|
89
|
+
def get_test_suite(
|
90
|
+
self,
|
91
|
+
test_suite_id: str,
|
92
|
+
page: Optional[int] = None,
|
93
|
+
page_size: Optional[int] = None,
|
94
|
+
) -> PaginatedGetTestSuiteResponse:
|
86
95
|
"""
|
87
96
|
Get reference data for an existing test suite
|
88
97
|
|
89
98
|
:param test_suite_id:
|
99
|
+
:param page:
|
100
|
+
:param page_size:
|
90
101
|
"""
|
91
102
|
|
103
|
+
params: Dict[str, Any] = {}
|
104
|
+
if page is not None:
|
105
|
+
params["page"] = page
|
106
|
+
if page_size is not None:
|
107
|
+
params["page_size"] = page_size
|
108
|
+
|
92
109
|
parsed_resp: Dict[str, Any] = self.http_client.get( # type: ignore
|
93
|
-
f"/v3/bench/test_suites/{test_suite_id}",
|
110
|
+
f"/v3/bench/test_suites/{test_suite_id}",
|
111
|
+
params=params,
|
112
|
+
validation_response_code=200,
|
94
113
|
)
|
95
114
|
return PaginatedGetTestSuiteResponse(**parsed_resp)
|
96
115
|
|
@@ -118,7 +137,7 @@ class ArthurBenchClient:
|
|
118
137
|
page_size: Optional[int] = None,
|
119
138
|
) -> TestSuiteSummaryResponse:
|
120
139
|
"""
|
121
|
-
Get
|
140
|
+
Get paginated summary statistics of a test suite
|
122
141
|
|
123
142
|
Defaults to page size of 5.
|
124
143
|
|
@@ -144,18 +163,28 @@ class ArthurBenchClient:
|
|
144
163
|
return TestSuiteSummaryResponse(**parsed_resp)
|
145
164
|
|
146
165
|
def get_runs_for_test_suite(
|
147
|
-
self,
|
166
|
+
self,
|
167
|
+
test_suite_id: str,
|
168
|
+
sort: Optional[str] = None,
|
169
|
+
page: Optional[int] = None,
|
170
|
+
page_size: Optional[int] = None,
|
148
171
|
) -> PaginatedGetRunsForTestSuiteResponse:
|
149
172
|
"""
|
150
173
|
Get runs for a particular test suite (identified by test_suite_id)
|
151
174
|
|
152
175
|
:param test_suite_id:
|
153
176
|
:param sort:
|
177
|
+
:param page:
|
178
|
+
:param page_size:
|
154
179
|
"""
|
155
180
|
|
156
181
|
params: Dict[str, Any] = {}
|
157
182
|
if sort is not None:
|
158
183
|
params["sort"] = sort
|
184
|
+
if page is not None:
|
185
|
+
params["page"] = page
|
186
|
+
if page_size is not None:
|
187
|
+
params["page_size"] = page_size
|
159
188
|
|
160
189
|
parsed_resp: Dict[str, Any] = self.http_client.get( # type: ignore
|
161
190
|
f"/v3/bench/test_suites/{test_suite_id}/runs",
|
@@ -6,13 +6,13 @@ from requests import Response
|
|
6
6
|
# import http client
|
7
7
|
from arthur.client.http.requests import HTTPClient
|
8
8
|
|
9
|
-
from arthur.client.rest.models.models import ModelExpand, ModelObject
|
10
9
|
from arthur.client.rest.model_groups.models import (
|
11
10
|
ModelGroupResponse,
|
12
11
|
ModelGroupUpdateRequest,
|
13
12
|
PaginatedModelGroupResponse,
|
14
13
|
PaginatedModelGroupVersionsResponse,
|
15
14
|
)
|
15
|
+
from arthur.client.rest.models.models import ModelExpand, ModelObject
|
16
16
|
|
17
17
|
|
18
18
|
PATH_PREFIX = "/api"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# generated by datamodel-codegen:
|
2
2
|
# filename: models.yaml
|
3
|
-
# timestamp: 2023-12-
|
3
|
+
# timestamp: 2023-12-21T22:07:14+00:00
|
4
4
|
|
5
5
|
from __future__ import annotations
|
6
6
|
|
@@ -503,6 +503,10 @@ class ModelResponse(ModelObject):
|
|
503
503
|
"""
|
504
504
|
The total number of critical alerts for the model that are active (status is new or acknowledged).
|
505
505
|
"""
|
506
|
+
version_sequence_num: Optional[int] = None
|
507
|
+
"""
|
508
|
+
An integer representing the sequence number of the model within its model group
|
509
|
+
"""
|
506
510
|
|
507
511
|
|
508
512
|
class ModelUpdateRequest(BaseModel):
|
@@ -6,6 +6,7 @@ from requests import Response
|
|
6
6
|
# import http client
|
7
7
|
from arthur.client.http.requests import HTTPClient
|
8
8
|
|
9
|
+
from arthur.client.rest.common.models import DataDriftRequest, QueryRequest
|
9
10
|
from arthur.client.rest.query.models import (
|
10
11
|
DataDriftResponse,
|
11
12
|
DataDriftTableRequest,
|
@@ -13,7 +14,6 @@ from arthur.client.rest.query.models import (
|
|
13
14
|
DistributionsRequest,
|
14
15
|
QueryResult,
|
15
16
|
)
|
16
|
-
from arthur.client.rest.common.models import DataDriftRequest, QueryRequest
|
17
17
|
|
18
18
|
|
19
19
|
PATH_PREFIX = "/api"
|
arthur/client/version.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
__version__ = "0.
|
1
|
+
__version__ = "0.12.0"
|
2
2
|
api_spec_version = "3.0.0"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
arthur/client/__init__.py,sha256=hLwS66smzK1qUEyhyvXqZ_2L47IKkM7fjVNj7L2d24k,57
|
2
2
|
arthur/client/helpers.py,sha256=toTAqb-r8SuvXXyy4ohef_2DOEyp8V7SidXL9W3gbxA,1457
|
3
3
|
arthur/client/types.py,sha256=GufCfBBWoTe9MiH2NVSELgh-kJOvuj1-SiPcW0LKqGI,234
|
4
|
-
arthur/client/version.py,sha256=
|
4
|
+
arthur/client/version.py,sha256=mFKpS7fIeL6M_TEHV-AoxGSOsgTHGdpzYuieCHTFnIw,50
|
5
5
|
arthur/client/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
arthur/client/auth/helpers.py,sha256=IWJ-s_yuVd0MMkQuA8S5njQdcAhMYoi8QMS7ksxAcnA,4881
|
7
7
|
arthur/client/auth/refresh.py,sha256=Zn56iptWjnLGT0DIRsBSoRIBUPOB-7dLqVG-FZYW9yo,2681
|
@@ -13,43 +13,43 @@ arthur/client/rest/__init__.py,sha256=NiYncfs-JAR8LxTUGx4c2yBFWudotQv7FjDQNpjvYY
|
|
13
13
|
arthur/client/rest/client.py,sha256=FYCi6RI0o2HbjZG2UufidJxBd8H-cLT68O1Glmmf3QY,6857
|
14
14
|
arthur/client/rest/admin/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
15
15
|
arthur/client/rest/admin/client.py,sha256=70FjNlxt1-QQmE_7m5Qux3WfTtOehO4VgJJx01L80IY,14999
|
16
|
-
arthur/client/rest/admin/models.py,sha256=
|
16
|
+
arthur/client/rest/admin/models.py,sha256=kqVzSqXIr1Zc7xpWM9qmLfbKKA3vdBy7iI-Jy5AzMAg,22897
|
17
17
|
arthur/client/rest/alerts/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
18
18
|
arthur/client/rest/alerts/client.py,sha256=-RAhKM05GUhw307b-f0ept4Fy6n3SwF3onXbAYCXLA8,20399
|
19
|
-
arthur/client/rest/alerts/models.py,sha256=
|
19
|
+
arthur/client/rest/alerts/models.py,sha256=FlCuPvkGfChY0BcCxRwQbcin6IPalYfoYUU778AWam8,19582
|
20
20
|
arthur/client/rest/bench/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
21
|
-
arthur/client/rest/bench/client.py,sha256=
|
22
|
-
arthur/client/rest/bench/models.py,sha256=
|
21
|
+
arthur/client/rest/bench/client.py,sha256=eRVemQiqYvXqntjKzyICdvrPgbzXD780LXDfHHQBYRs,8558
|
22
|
+
arthur/client/rest/bench/models.py,sha256=M5zFGtRTzNZdAr0WSy7xqT0GcYQ6IIGql3jpr-MvBf0,5165
|
23
23
|
arthur/client/rest/common/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
24
24
|
arthur/client/rest/common/client.py,sha256=wd24QtCkGKvzbWVhKxwUYxZsoaN6YU-NheQIv6k6YHo,701
|
25
|
-
arthur/client/rest/common/models.py,sha256=
|
25
|
+
arthur/client/rest/common/models.py,sha256=QJzLxNgxJamk0tyTfpUIPE0Xeg_LVDhTI8STrn0gKjY,10006
|
26
26
|
arthur/client/rest/enrichments/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
27
27
|
arthur/client/rest/enrichments/client.py,sha256=U8LOVm_MXZMqmtoqx6ASEK2Nl-19CZbEyEQlPqpl4xI,12252
|
28
|
-
arthur/client/rest/enrichments/models.py,sha256=
|
28
|
+
arthur/client/rest/enrichments/models.py,sha256=A-cF7aqC-78McNQf7Q8AxVMhLcpGhtI2dz3cbGcTGE8,14382
|
29
29
|
arthur/client/rest/inferences/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
30
30
|
arthur/client/rest/inferences/client.py,sha256=YY56LBzjHrGCyrUf9ETy7I7D6V9gNtOXBfodjFsPJB8,9071
|
31
|
-
arthur/client/rest/inferences/models.py,sha256=
|
31
|
+
arthur/client/rest/inferences/models.py,sha256=BgcO0DvYbp9YSTRL-aaOijZnoMA2OdgcZxeiALo1Ovw,12571
|
32
32
|
arthur/client/rest/insights/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
33
33
|
arthur/client/rest/insights/client.py,sha256=8ok5oDzdBeytwMAjuSuyTI8xh_C72w1czo3mpxO7GVw,6364
|
34
|
-
arthur/client/rest/insights/models.py,sha256=
|
34
|
+
arthur/client/rest/insights/models.py,sha256=Yq2glbkl-SdCROXT8SFTKxhCkTz1Gj0uoDDudbn1gJM,4082
|
35
35
|
arthur/client/rest/metrics/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
36
36
|
arthur/client/rest/metrics/client.py,sha256=jjynBs2qi1b0x3wGwruKpDn9RJ_FuTZ3Y54kjh-eme0,9819
|
37
|
-
arthur/client/rest/metrics/models.py,sha256=
|
37
|
+
arthur/client/rest/metrics/models.py,sha256=HQsNKG8ysrDm3ZwY5bwbBVSWTNiM_XlWOsmtmx3_f_k,8267
|
38
38
|
arthur/client/rest/model_groups/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
39
|
-
arthur/client/rest/model_groups/client.py,sha256=
|
40
|
-
arthur/client/rest/model_groups/models.py,sha256=
|
39
|
+
arthur/client/rest/model_groups/client.py,sha256=A4_n_G-dejm4Ln5d6qAS83I6xAqz9qbUn0SXteoTxhI,5020
|
40
|
+
arthur/client/rest/model_groups/models.py,sha256=cAby6NSkC6wBwhNjyzYglBB4g-xn7vSo5uGyq-6k76U,2151
|
41
41
|
arthur/client/rest/models/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
42
42
|
arthur/client/rest/models/client.py,sha256=KUGdTDYbAMjzHhvMPoMKc05m4U15CCslwi5uWRrWJHI,16190
|
43
|
-
arthur/client/rest/models/models.py,sha256=
|
43
|
+
arthur/client/rest/models/models.py,sha256=Qf6LCgJQ3et3KBIwP1Yj1GxLlXhAIaEsYvbknjkwQQk,16616
|
44
44
|
arthur/client/rest/query/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
|
45
|
-
arthur/client/rest/query/client.py,sha256=
|
46
|
-
arthur/client/rest/query/models.py,sha256=
|
45
|
+
arthur/client/rest/query/client.py,sha256=A8ZpF34G9koOf3_H_mqyNiCRk-gC8p5Vp4x6AhEnIww,4125
|
46
|
+
arthur/client/rest/query/models.py,sha256=PwKKeuQ5W_HLkzzES4Uqv-Ls9oi-CfeCQoEKr0m5Hq8,4223
|
47
47
|
arthur/common/__init__.py,sha256=ZPrXCVGLk4xZJQhuxYHKQYWUOpa3uHsqhf0T8qzgpjQ,68
|
48
48
|
arthur/common/constants.py,sha256=4_o_WDbtoOJ7kANCV28HdFbDJDO90k2TGULHxjqeSao,159
|
49
49
|
arthur/common/exceptions.py,sha256=m_lGhrb-EoMZCq6XjYPJLQEfAhYkE7h0Wuz0bNMtV4c,5230
|
50
50
|
arthur/common/log.py,sha256=oDB_teFV-pdDfcM3VGSSWYSOu6Iag_3RyzRDWBcIcOM,2851
|
51
|
-
arthur_client-0.
|
52
|
-
arthur_client-0.
|
53
|
-
arthur_client-0.
|
54
|
-
arthur_client-0.
|
55
|
-
arthur_client-0.
|
51
|
+
arthur_client-0.12.0.dist-info/LICENSE,sha256=a0qChOPgo0vduazUlCCpPkJ4A7nOtvBTbbvNh6qDmhw,1063
|
52
|
+
arthur_client-0.12.0.dist-info/METADATA,sha256=ZCstqmm7ys1UdANLD2Mn1k0atZ6ZoRUOvhS42SG1IJY,1738
|
53
|
+
arthur_client-0.12.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
54
|
+
arthur_client-0.12.0.dist-info/top_level.txt,sha256=u8s5CFDcE7LoZePEhTOipwnPqeiXh4_hYXJp7vg5BLQ,7
|
55
|
+
arthur_client-0.12.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|