arthur-client 0.5.0__tar.gz → 0.6.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 (61) hide show
  1. {arthur-client-0.5.0 → arthur-client-0.6.0}/PKG-INFO +1 -1
  2. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/admin/models.py +1 -1
  3. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/alerts/models.py +1 -1
  4. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/bench/models.py +1 -1
  5. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/common/models.py +1 -1
  6. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/enrichments/client.py +3 -3
  7. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/enrichments/models.py +12 -9
  8. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/inferences/models.py +1 -1
  9. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/insights/models.py +1 -1
  10. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/metrics/models.py +1 -1
  11. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/model_groups/models.py +1 -1
  12. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/models/models.py +1 -1
  13. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/query/models.py +1 -1
  14. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/version.py +1 -1
  15. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur_client.egg-info/PKG-INFO +1 -1
  16. {arthur-client-0.5.0 → arthur-client-0.6.0}/LICENSE +0 -0
  17. {arthur-client-0.5.0 → arthur-client-0.6.0}/README.md +0 -0
  18. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/__init__.py +0 -0
  19. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/auth/__init__.py +0 -0
  20. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/auth/helpers.py +0 -0
  21. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/auth/refresh.py +0 -0
  22. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/helpers.py +0 -0
  23. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/http/__init__.py +0 -0
  24. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/http/helper.py +0 -0
  25. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/http/requests.py +0 -0
  26. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/http/validation.py +0 -0
  27. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/__init__.py +0 -0
  28. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/admin/__init__.py +0 -0
  29. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/admin/client.py +0 -0
  30. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/alerts/__init__.py +0 -0
  31. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/alerts/client.py +0 -0
  32. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/bench/__init__.py +0 -0
  33. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/bench/client.py +0 -0
  34. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/client.py +0 -0
  35. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/common/__init__.py +0 -0
  36. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/common/client.py +0 -0
  37. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/enrichments/__init__.py +0 -0
  38. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/inferences/__init__.py +0 -0
  39. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/inferences/client.py +0 -0
  40. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/insights/__init__.py +0 -0
  41. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/insights/client.py +0 -0
  42. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/metrics/__init__.py +0 -0
  43. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/metrics/client.py +0 -0
  44. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/model_groups/__init__.py +0 -0
  45. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/model_groups/client.py +0 -0
  46. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/models/__init__.py +0 -0
  47. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/models/client.py +0 -0
  48. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/query/__init__.py +0 -0
  49. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/rest/query/client.py +1 -1
  50. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/client/types.py +0 -0
  51. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/common/__init__.py +0 -0
  52. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/common/constants.py +0 -0
  53. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/common/exceptions.py +0 -0
  54. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur/common/log.py +0 -0
  55. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur_client.egg-info/SOURCES.txt +0 -0
  56. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur_client.egg-info/dependency_links.txt +0 -0
  57. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur_client.egg-info/requires.txt +0 -0
  58. {arthur-client-0.5.0 → arthur-client-0.6.0}/arthur_client.egg-info/top_level.txt +0 -0
  59. {arthur-client-0.5.0 → arthur-client-0.6.0}/client-readme-public.md +0 -0
  60. {arthur-client-0.5.0 → arthur-client-0.6.0}/pyproject.toml +0 -0
  61. {arthur-client-0.5.0 → arthur-client-0.6.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: arthur-client
3
- Version: 0.5.0
3
+ Version: 0.6.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: 2023-10-03T17:05:09+00:00
3
+ # timestamp: 2023-10-04T15:04:36+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: 2023-10-03T17:05:08+00:00
3
+ # timestamp: 2023-10-04T15:04:36+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: 2023-10-03T17:05:08+00:00
3
+ # timestamp: 2023-10-04T15:04:36+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: 2023-10-03T17:05:08+00:00
3
+ # timestamp: 2023-10-04T15:04:36+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -12,7 +12,7 @@ from arthur.client.rest.enrichments.models import (
12
12
  BiasConstraintEnum,
13
13
  BiasMitigationEnrichmentConfiguration,
14
14
  BiasMitigationEnrichmentResponse,
15
- EnrichmentsConfiguration,
15
+ EnrichmentsRequest,
16
16
  EnrichmentsResponse,
17
17
  ExplainabilityEnrichmentMultipartRequestBody,
18
18
  ExplainabilityEnrichmentRequest,
@@ -102,14 +102,14 @@ class ArthurEnrichmentsClient:
102
102
  def update_enrichment_config(
103
103
  self,
104
104
  model_id: str,
105
- json_body: EnrichmentsConfiguration,
105
+ json_body: EnrichmentsRequest,
106
106
  multipart_data: ExplainabilityEnrichmentMultipartRequestBody,
107
107
  ) -> Response:
108
108
  """
109
109
  Updates the enrichment configuration for a model
110
110
 
111
111
  :param model_id:
112
- :param json_body: A JSON-formatted enrichments configuration. See the EnrichmentsConfiguration object for schema
112
+ :param json_body: Configures multiple enrichments. A multipart/form-data body with at least a `configuration` JSON body. If explainability is being enabled for the first time, artifacts must be supplied.
113
113
  :param multipart_data: When setting up explainability, a config must always be provided. The explainability enrichment artifact files may be provided all together, but a config must be provided as well, regardless of whether the config has already been set.
114
114
  """
115
115
 
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: enrichments.yaml
3
- # timestamp: 2023-10-03T17:05:08+00:00
3
+ # timestamp: 2023-10-04T15:04:36+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -199,6 +199,17 @@ class ExplainabilityEnrichmentRequest(BaseModel):
199
199
  """
200
200
 
201
201
 
202
+ class EnrichmentsRequest(BaseModel):
203
+ """
204
+ Configures multiple enrichments. A multipart/form-data body with at least a `configuration` JSON body. If explainability is being enabled for the first time, artifacts must be supplied.
205
+ """
206
+
207
+ config: Optional[EnrichmentsConfiguration] = None
208
+ """
209
+ Enrichments configuration
210
+ """
211
+
212
+
202
213
  class ExplanationValuesWhatIf(BaseModel):
203
214
  attribute_name: str = Field(..., example='feature_a')
204
215
  explanation_value: float = Field(..., example=0.12)
@@ -333,14 +344,6 @@ class WhatIfRequest(BaseModel):
333
344
  model_pipeline_input: List[WhatIfAttributeRequest]
334
345
 
335
346
 
336
- class EnrichmentsRequest(EnrichmentsConfiguration):
337
- """
338
- Configures multiple enrichments. A multipart/form-data body with at least a `configuration` JSON body. If explainability is being enabled for the first time, artifacts must be supplied.
339
- """
340
-
341
- pass
342
-
343
-
344
347
  class EnrichmentStatusUpdate(EnrichmentStatus):
345
348
  """
346
349
  Updates status for an enrichment. A body with at least a `status` key.
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: inferences.yaml
3
- # timestamp: 2023-10-03T17:05:08+00:00
3
+ # timestamp: 2023-10-04T15:04:36+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: 2023-10-03T17:05:08+00:00
3
+ # timestamp: 2023-10-04T15:04:35+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: 2023-10-03T17:05:08+00:00
3
+ # timestamp: 2023-10-04T15:04:35+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: 2023-10-03T17:05:08+00:00
3
+ # timestamp: 2023-10-04T15:04:35+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: 2023-10-03T17:05:08+00:00
3
+ # timestamp: 2023-10-04T15:04:35+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: 2023-10-03T17:05:08+00:00
3
+ # timestamp: 2023-10-04T15:04:35+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -1,2 +1,2 @@
1
- __version__ = "0.5.0"
1
+ __version__ = "0.6.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: 0.5.0
3
+ Version: 0.6.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,7 +6,6 @@ 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
10
9
  from arthur.client.rest.query.models import (
11
10
  DataDriftResponse,
12
11
  DataDriftTableRequest,
@@ -14,6 +13,7 @@ from arthur.client.rest.query.models import (
14
13
  DistributionsRequest,
15
14
  QueryResult,
16
15
  )
16
+ from arthur.client.rest.common.models import DataDriftRequest, QueryRequest
17
17
 
18
18
 
19
19
  PATH_PREFIX = "/api"
File without changes