arthur-client 1.1.0__tar.gz → 1.2.0__tar.gz

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.
Files changed (64) hide show
  1. {arthur-client-1.1.0 → arthur-client-1.2.0}/PKG-INFO +1 -1
  2. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/admin/models.py +1 -1
  3. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/alerts/models.py +1 -1
  4. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/bench/models.py +1 -1
  5. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/common/models.py +1 -1
  6. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/enrichments/models.py +1 -1
  7. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/inferences/client.py +22 -1
  8. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/inferences/models.py +1 -1
  9. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/insights/models.py +1 -1
  10. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/metrics/models.py +1 -1
  11. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/model_groups/models.py +1 -1
  12. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/models/models.py +1 -1
  13. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/query/models.py +1 -1
  14. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/users/models.py +1 -1
  15. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/version.py +1 -1
  16. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur_client.egg-info/PKG-INFO +1 -1
  17. {arthur-client-1.1.0 → arthur-client-1.2.0}/LICENSE +0 -0
  18. {arthur-client-1.1.0 → arthur-client-1.2.0}/README.md +0 -0
  19. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/__init__.py +0 -0
  20. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/auth/__init__.py +0 -0
  21. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/auth/helpers.py +0 -0
  22. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/auth/refresh.py +0 -0
  23. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/helpers.py +0 -0
  24. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/http/__init__.py +0 -0
  25. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/http/helper.py +0 -0
  26. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/http/requests.py +0 -0
  27. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/http/validation.py +0 -0
  28. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/__init__.py +0 -0
  29. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/admin/__init__.py +0 -0
  30. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/admin/client.py +0 -0
  31. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/alerts/__init__.py +0 -0
  32. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/alerts/client.py +0 -0
  33. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/bench/__init__.py +0 -0
  34. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/bench/client.py +0 -0
  35. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/client.py +0 -0
  36. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/common/__init__.py +0 -0
  37. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/common/client.py +0 -0
  38. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/enrichments/__init__.py +0 -0
  39. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/enrichments/client.py +0 -0
  40. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/inferences/__init__.py +0 -0
  41. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/insights/__init__.py +0 -0
  42. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/insights/client.py +0 -0
  43. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/metrics/__init__.py +0 -0
  44. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/metrics/client.py +0 -0
  45. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/model_groups/__init__.py +0 -0
  46. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/model_groups/client.py +1 -1
  47. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/models/__init__.py +0 -0
  48. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/models/client.py +0 -0
  49. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/query/__init__.py +0 -0
  50. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/query/client.py +1 -1
  51. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/users/__init__.py +0 -0
  52. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/rest/users/client.py +0 -0
  53. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/client/types.py +0 -0
  54. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/common/__init__.py +0 -0
  55. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/common/constants.py +0 -0
  56. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/common/exceptions.py +0 -0
  57. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur/common/log.py +0 -0
  58. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur_client.egg-info/SOURCES.txt +0 -0
  59. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur_client.egg-info/dependency_links.txt +0 -0
  60. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur_client.egg-info/requires.txt +0 -0
  61. {arthur-client-1.1.0 → arthur-client-1.2.0}/arthur_client.egg-info/top_level.txt +0 -0
  62. {arthur-client-1.1.0 → arthur-client-1.2.0}/client-readme-public.md +0 -0
  63. {arthur-client-1.1.0 → arthur-client-1.2.0}/pyproject.toml +0 -0
  64. {arthur-client-1.1.0 → arthur-client-1.2.0}/setup.cfg +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,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
 
@@ -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
 
@@ -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
 
@@ -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
File without changes
File without changes
@@ -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"
@@ -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"
File without changes