arthur-client 1.1.0__py3-none-any.whl → 1.2.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.
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: admin.yaml
3
- # timestamp: 2024-01-16T21:33:56+00:00
3
+ # timestamp: 2024-01-19T17:36:04+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: alerts.yaml
3
- # timestamp: 2024-01-16T21:33:56+00:00
3
+ # timestamp: 2024-01-19T17:36:04+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: bench.yaml
3
- # timestamp: 2024-01-16T21:33:55+00:00
3
+ # timestamp: 2024-01-19T17:36:03+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: common.yaml
3
- # timestamp: 2024-01-16T21:33:55+00:00
3
+ # timestamp: 2024-01-19T17:36:03+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: enrichments.yaml
3
- # timestamp: 2024-01-16T21:33:55+00:00
3
+ # timestamp: 2024-01-19T17:36:03+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -59,12 +59,14 @@ class ArthurInferencesClient:
59
59
  )
60
60
  return InferencesResponse(**parsed_resp)
61
61
 
62
- def update_inference_ground_truths(
62
+ def update_inferences(
63
63
  self, model_id: str, json_body: List["PartnerIdInferenceGroundTruth"]
64
64
  ) -> InferencesResponse:
65
65
  """
66
66
  Updates inferences with ground truth data
67
67
 
68
+ This endpoint behaves similarly to the PATCH /v3/models/{model_id}/ground_truth endpoint, but it requires inference writing permissions.
69
+
68
70
  :param model_id:
69
71
  :param json_body: List of inference ground truth data
70
72
  """
@@ -76,6 +78,25 @@ class ArthurInferencesClient:
76
78
  )
77
79
  return InferencesResponse(**parsed_resp)
78
80
 
81
+ def update_inference_ground_truths(
82
+ self, model_id: str, json_body: List["PartnerIdInferenceGroundTruth"]
83
+ ) -> InferencesResponse:
84
+ """
85
+ Updates inferences with ground truth data
86
+
87
+ This endpoint behaves similarly to the PATCH /v3/models/{model_id}/inferences endpoint, but it requires ground truth writing permissions instead of inference writing permissions.
88
+
89
+ :param model_id:
90
+ :param json_body: List of inference ground truth data
91
+ """
92
+
93
+ parsed_resp: Dict[str, Any] = self.http_client.patch( # type: ignore
94
+ f"/v3/models/{model_id}/ground_truth",
95
+ json=[x.dict(by_alias=True, exclude_none=True) for x in json_body],
96
+ validation_response_code=207,
97
+ )
98
+ return InferencesResponse(**parsed_resp)
99
+
79
100
  def send_inference_file(
80
101
  self, model_id: str, multipart_data: FileInferenceData
81
102
  ) -> ReferenceDataResponse:
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: inferences.yaml
3
- # timestamp: 2024-01-16T21:33:55+00:00
3
+ # timestamp: 2024-01-19T17:36:03+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: insights.yaml
3
- # timestamp: 2024-01-16T21:33:55+00:00
3
+ # timestamp: 2024-01-19T17:36:03+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: metrics.yaml
3
- # timestamp: 2024-01-16T21:33:55+00:00
3
+ # timestamp: 2024-01-19T17:36:03+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -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
9
10
  from arthur.client.rest.model_groups.models import (
10
11
  ModelGroupResponse,
11
12
  ModelGroupUpdateRequest,
12
13
  PaginatedModelGroupResponse,
13
14
  PaginatedModelGroupVersionsResponse,
14
15
  )
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: model_groups.yaml
3
- # timestamp: 2024-01-16T21:33:55+00:00
3
+ # timestamp: 2024-01-19T17:36:03+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: models.yaml
3
- # timestamp: 2024-01-16T21:33:55+00:00
3
+ # timestamp: 2024-01-19T17:36:03+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -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"
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: query.yaml
3
- # timestamp: 2024-01-16T21:33:55+00:00
3
+ # timestamp: 2024-01-19T17:36:03+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: users.yaml
3
- # timestamp: 2024-01-16T21:33:55+00:00
3
+ # timestamp: 2024-01-19T17:36:03+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
arthur/client/version.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = "1.1.0"
1
+ __version__ = "1.2.0"
2
2
  api_spec_version = "3.0.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: arthur-client
3
- Version: 1.1.0
3
+ Version: 1.2.0
4
4
  Summary: Arthur API Python Client
5
5
  Author-email: Arthur <info@arthur.ai>
6
6
  License: MIT
@@ -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=sbDZI6B0e94vBpaoBbaFOOIxS9Lag939yGdXxqOdIf0,49
4
+ arthur/client/version.py,sha256=nMqL-plahGDDgHiM6rg7a9Yc4Rz4Y6UqHQGqRwgcCK4,49
5
5
  arthur/client/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  arthur/client/auth/helpers.py,sha256=zIfbUh6JqyXGs6cq26xjY0M4nQfcU5YWUwLO_h0G534,4987
7
7
  arthur/client/auth/refresh.py,sha256=Zn56iptWjnLGT0DIRsBSoRIBUPOB-7dLqVG-FZYW9yo,2681
@@ -13,46 +13,46 @@ arthur/client/rest/__init__.py,sha256=LA1HL5LlXNw2zck-rWpCKU1lgsgWJa_fKovE2SmgIJ
13
13
  arthur/client/rest/client.py,sha256=Hg_YkiNHKF8rrGgRqxH4alTnVYcX13Vkj5PSMTqn3Pk,7003
14
14
  arthur/client/rest/admin/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
15
15
  arthur/client/rest/admin/client.py,sha256=lRLBkR8NiGQumqhJBFGsZM_eRIXyRFgljU6kJwPTwAU,10629
16
- arthur/client/rest/admin/models.py,sha256=GmurYtMUmXwZEbv5fRJKeSoijyANtBwOO-fSjvQSpeg,15398
16
+ arthur/client/rest/admin/models.py,sha256=TEQEzV6VSP3CH2ltJSKXFLxU150t8fpCGT0mH47BYqA,15398
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=fp-hbTBaiKick7h3JG6K1XlIdb5vxJ0CoxAC77cHeR8,19582
19
+ arthur/client/rest/alerts/models.py,sha256=71PEQbOAef8dImt52SMLYzEJFgffNYEPXg3loWIFLoA,19582
20
20
  arthur/client/rest/bench/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
21
21
  arthur/client/rest/bench/client.py,sha256=eRVemQiqYvXqntjKzyICdvrPgbzXD780LXDfHHQBYRs,8558
22
- arthur/client/rest/bench/models.py,sha256=0c5aEHUBA_hzUUUj4qKq22rnVU3p6Fq64-3ThloizNQ,5328
22
+ arthur/client/rest/bench/models.py,sha256=NyLGFOenuE0hUWqLWgge9R1d61XQshfM8EthHFLSREU,5328
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=HBuvVzh9gWLyBgYxqLllPeO78dW0mt0KagUKFQLzU78,10006
25
+ arthur/client/rest/common/models.py,sha256=YlY2fz8IOvM1nsziU5wEBW6q9ao1fLEE9nHBIKeiIQk,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=vBHomuJGBBOxQKLn7SDTHDzlxPqu4-QLyvGiQUI_PTA,14382
28
+ arthur/client/rest/enrichments/models.py,sha256=_8hZIEMpkMlPm2PCyfWuXPKG4wLBcTC9_cfMTmgpcfQ,14382
29
29
  arthur/client/rest/inferences/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
30
- arthur/client/rest/inferences/client.py,sha256=YY56LBzjHrGCyrUf9ETy7I7D6V9gNtOXBfodjFsPJB8,9071
31
- arthur/client/rest/inferences/models.py,sha256=3gGMaz0hkYJfmZuOPzFzHH0vHODYUlJzf-wHPwsxnxE,12571
30
+ arthur/client/rest/inferences/client.py,sha256=r38R6SZmz3MEwSlev56DBuwaDccWsaXGZjZOP-Q8pSU,10013
31
+ arthur/client/rest/inferences/models.py,sha256=hfQVQatXQAAOyf3aRM-OuSdKCOeP0pJFStTp7iNkaJY,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=bmpoiTtMoGm-OCmlqoZlBx4tydrU_5Xm0YiZ6gHFFwY,4082
34
+ arthur/client/rest/insights/models.py,sha256=gtGYreJhJ2dMfkuze3KDmMf-8CsI0tOHWJD6jXDrtN0,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=ugs4VY_Af3PVZG_cUyZybu24yvzDFieFjn0fXCEIFbU,8267
37
+ arthur/client/rest/metrics/models.py,sha256=uxJXE8mfLimogPQp1Fp6zciM49h3CPVa2iEdY5fIlJU,8267
38
38
  arthur/client/rest/model_groups/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
39
- arthur/client/rest/model_groups/client.py,sha256=A4_n_G-dejm4Ln5d6qAS83I6xAqz9qbUn0SXteoTxhI,5020
40
- arthur/client/rest/model_groups/models.py,sha256=cAmCXdlCIh71rvxeEEWh9H5vogzNqsJ6rput7d_bJIw,2151
39
+ arthur/client/rest/model_groups/client.py,sha256=2F50s9yXP1bX1ohDo216TYqMYXBXHxjtwJyWXESBxU8,5020
40
+ arthur/client/rest/model_groups/models.py,sha256=Z4-XtOVTjpLYGb_cnaSxSR2ceS7lrhowPYMZnKiyeA4,2151
41
41
  arthur/client/rest/models/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
42
42
  arthur/client/rest/models/client.py,sha256=LdztHARtz8WNvQqTKZr12nKno4qedf_1HljZh8i7lkA,19636
43
- arthur/client/rest/models/models.py,sha256=OMW1MxCm-WCjZm_JTDaMt2hR3PuGYCrJqEDAPQvmups,17733
43
+ arthur/client/rest/models/models.py,sha256=fhrIiEfaT_iG8xWawX20LU4slqf6eMr-A4MYBrSaO2k,17733
44
44
  arthur/client/rest/query/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
45
- arthur/client/rest/query/client.py,sha256=EIpEqcn7m-a3Ku3KO95NINdx83ggfOmGdin0Z0oHH3E,4125
46
- arthur/client/rest/query/models.py,sha256=HXreB7VgHD9AKL-m0Jf6Vlb0PgIlOy2IKWVK_hL2WI0,4223
45
+ arthur/client/rest/query/client.py,sha256=A8ZpF34G9koOf3_H_mqyNiCRk-gC8p5Vp4x6AhEnIww,4125
46
+ arthur/client/rest/query/models.py,sha256=h4aiCBwXx9DdFsyQ5rRK9NMtLTdeBIAWqNfGC53GWaU,4223
47
47
  arthur/client/rest/users/__init__.py,sha256=FdmrkBO-lbpLjMuaRZBDGhEnapOBYLP6U7j0-PqKpKw,42
48
48
  arthur/client/rest/users/client.py,sha256=LN0j0tJtVWs1lUtwTSKXX5gobMmgWvm8oYQIIAUsHjw,5130
49
- arthur/client/rest/users/models.py,sha256=odla8_8dzbjkdfxir5DAEisP_R77igUxRxO5x-2jDYs,8943
49
+ arthur/client/rest/users/models.py,sha256=CKjmEpAmnq-ImKjeGzFdyt-lqd7yUeiH9Qna_u0MFoU,8943
50
50
  arthur/common/__init__.py,sha256=ZPrXCVGLk4xZJQhuxYHKQYWUOpa3uHsqhf0T8qzgpjQ,68
51
51
  arthur/common/constants.py,sha256=4_o_WDbtoOJ7kANCV28HdFbDJDO90k2TGULHxjqeSao,159
52
52
  arthur/common/exceptions.py,sha256=m_lGhrb-EoMZCq6XjYPJLQEfAhYkE7h0Wuz0bNMtV4c,5230
53
53
  arthur/common/log.py,sha256=oDB_teFV-pdDfcM3VGSSWYSOu6Iag_3RyzRDWBcIcOM,2851
54
- arthur_client-1.1.0.dist-info/LICENSE,sha256=a0qChOPgo0vduazUlCCpPkJ4A7nOtvBTbbvNh6qDmhw,1063
55
- arthur_client-1.1.0.dist-info/METADATA,sha256=RoLaeh7r2YcGqohh85qqlCGc7KlT4PUPjjuEF32qwXk,1737
56
- arthur_client-1.1.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
57
- arthur_client-1.1.0.dist-info/top_level.txt,sha256=u8s5CFDcE7LoZePEhTOipwnPqeiXh4_hYXJp7vg5BLQ,7
58
- arthur_client-1.1.0.dist-info/RECORD,,
54
+ arthur_client-1.2.0.dist-info/LICENSE,sha256=a0qChOPgo0vduazUlCCpPkJ4A7nOtvBTbbvNh6qDmhw,1063
55
+ arthur_client-1.2.0.dist-info/METADATA,sha256=-UIkZJArrSVje4-zjxDE7WuHN7h-U556JgP-wsZOykI,1737
56
+ arthur_client-1.2.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
57
+ arthur_client-1.2.0.dist-info/top_level.txt,sha256=u8s5CFDcE7LoZePEhTOipwnPqeiXh4_hYXJp7vg5BLQ,7
58
+ arthur_client-1.2.0.dist-info/RECORD,,