arize 8.0.0a21__py3-none-any.whl → 8.0.0a23__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.
Files changed (166) hide show
  1. arize/__init__.py +17 -9
  2. arize/_exporter/client.py +55 -36
  3. arize/_exporter/parsers/tracing_data_parser.py +41 -30
  4. arize/_exporter/validation.py +3 -3
  5. arize/_flight/client.py +208 -77
  6. arize/_generated/api_client/__init__.py +30 -6
  7. arize/_generated/api_client/api/__init__.py +1 -0
  8. arize/_generated/api_client/api/datasets_api.py +864 -190
  9. arize/_generated/api_client/api/experiments_api.py +167 -131
  10. arize/_generated/api_client/api/projects_api.py +1197 -0
  11. arize/_generated/api_client/api_client.py +2 -2
  12. arize/_generated/api_client/configuration.py +42 -34
  13. arize/_generated/api_client/exceptions.py +2 -2
  14. arize/_generated/api_client/models/__init__.py +15 -4
  15. arize/_generated/api_client/models/dataset.py +10 -10
  16. arize/_generated/api_client/models/dataset_example.py +111 -0
  17. arize/_generated/api_client/models/dataset_example_update.py +100 -0
  18. arize/_generated/api_client/models/dataset_version.py +13 -13
  19. arize/_generated/api_client/models/datasets_create_request.py +16 -8
  20. arize/_generated/api_client/models/datasets_examples_insert_request.py +100 -0
  21. arize/_generated/api_client/models/datasets_examples_list200_response.py +106 -0
  22. arize/_generated/api_client/models/datasets_examples_update_request.py +102 -0
  23. arize/_generated/api_client/models/datasets_list200_response.py +10 -4
  24. arize/_generated/api_client/models/experiment.py +14 -16
  25. arize/_generated/api_client/models/experiment_run.py +108 -0
  26. arize/_generated/api_client/models/experiment_run_create.py +102 -0
  27. arize/_generated/api_client/models/experiments_create_request.py +16 -10
  28. arize/_generated/api_client/models/experiments_list200_response.py +10 -4
  29. arize/_generated/api_client/models/experiments_runs_list200_response.py +19 -5
  30. arize/_generated/api_client/models/{error.py → pagination_metadata.py} +13 -11
  31. arize/_generated/api_client/models/primitive_value.py +172 -0
  32. arize/_generated/api_client/models/problem.py +100 -0
  33. arize/_generated/api_client/models/project.py +99 -0
  34. arize/_generated/api_client/models/{datasets_list_examples200_response.py → projects_create_request.py} +13 -11
  35. arize/_generated/api_client/models/projects_list200_response.py +106 -0
  36. arize/_generated/api_client/rest.py +2 -2
  37. arize/_generated/api_client/test/test_dataset.py +4 -2
  38. arize/_generated/api_client/test/test_dataset_example.py +56 -0
  39. arize/_generated/api_client/test/test_dataset_example_update.py +52 -0
  40. arize/_generated/api_client/test/test_dataset_version.py +7 -2
  41. arize/_generated/api_client/test/test_datasets_api.py +27 -13
  42. arize/_generated/api_client/test/test_datasets_create_request.py +8 -4
  43. arize/_generated/api_client/test/{test_datasets_list_examples200_response.py → test_datasets_examples_insert_request.py} +19 -15
  44. arize/_generated/api_client/test/test_datasets_examples_list200_response.py +66 -0
  45. arize/_generated/api_client/test/test_datasets_examples_update_request.py +61 -0
  46. arize/_generated/api_client/test/test_datasets_list200_response.py +9 -3
  47. arize/_generated/api_client/test/test_experiment.py +2 -4
  48. arize/_generated/api_client/test/test_experiment_run.py +56 -0
  49. arize/_generated/api_client/test/test_experiment_run_create.py +54 -0
  50. arize/_generated/api_client/test/test_experiments_api.py +6 -6
  51. arize/_generated/api_client/test/test_experiments_create_request.py +9 -6
  52. arize/_generated/api_client/test/test_experiments_list200_response.py +9 -5
  53. arize/_generated/api_client/test/test_experiments_runs_list200_response.py +15 -5
  54. arize/_generated/api_client/test/test_pagination_metadata.py +53 -0
  55. arize/_generated/api_client/test/{test_error.py → test_primitive_value.py} +13 -14
  56. arize/_generated/api_client/test/test_problem.py +57 -0
  57. arize/_generated/api_client/test/test_project.py +58 -0
  58. arize/_generated/api_client/test/test_projects_api.py +59 -0
  59. arize/_generated/api_client/test/test_projects_create_request.py +54 -0
  60. arize/_generated/api_client/test/test_projects_list200_response.py +70 -0
  61. arize/_generated/api_client_README.md +43 -29
  62. arize/_generated/protocol/flight/flight_pb2.py +400 -0
  63. arize/_lazy.py +27 -19
  64. arize/client.py +269 -55
  65. arize/config.py +365 -116
  66. arize/constants/__init__.py +1 -0
  67. arize/constants/config.py +11 -4
  68. arize/constants/ml.py +6 -4
  69. arize/constants/openinference.py +2 -0
  70. arize/constants/pyarrow.py +2 -0
  71. arize/constants/spans.py +3 -1
  72. arize/datasets/__init__.py +1 -0
  73. arize/datasets/client.py +299 -84
  74. arize/datasets/errors.py +32 -2
  75. arize/datasets/validation.py +18 -8
  76. arize/embeddings/__init__.py +2 -0
  77. arize/embeddings/auto_generator.py +23 -19
  78. arize/embeddings/base_generators.py +89 -36
  79. arize/embeddings/constants.py +2 -0
  80. arize/embeddings/cv_generators.py +26 -4
  81. arize/embeddings/errors.py +27 -5
  82. arize/embeddings/nlp_generators.py +31 -12
  83. arize/embeddings/tabular_generators.py +32 -20
  84. arize/embeddings/usecases.py +12 -2
  85. arize/exceptions/__init__.py +1 -0
  86. arize/exceptions/auth.py +11 -1
  87. arize/exceptions/base.py +29 -4
  88. arize/exceptions/models.py +21 -2
  89. arize/exceptions/parameters.py +31 -0
  90. arize/exceptions/spaces.py +12 -1
  91. arize/exceptions/types.py +86 -7
  92. arize/exceptions/values.py +220 -20
  93. arize/experiments/__init__.py +1 -0
  94. arize/experiments/client.py +390 -286
  95. arize/experiments/evaluators/__init__.py +1 -0
  96. arize/experiments/evaluators/base.py +74 -41
  97. arize/experiments/evaluators/exceptions.py +6 -3
  98. arize/experiments/evaluators/executors.py +121 -73
  99. arize/experiments/evaluators/rate_limiters.py +106 -57
  100. arize/experiments/evaluators/types.py +34 -7
  101. arize/experiments/evaluators/utils.py +65 -27
  102. arize/experiments/functions.py +103 -101
  103. arize/experiments/tracing.py +52 -44
  104. arize/experiments/types.py +56 -31
  105. arize/logging.py +54 -22
  106. arize/models/__init__.py +1 -0
  107. arize/models/batch_validation/__init__.py +1 -0
  108. arize/models/batch_validation/errors.py +543 -65
  109. arize/models/batch_validation/validator.py +339 -300
  110. arize/models/bounded_executor.py +20 -7
  111. arize/models/casting.py +75 -29
  112. arize/models/client.py +326 -107
  113. arize/models/proto.py +95 -40
  114. arize/models/stream_validation.py +42 -14
  115. arize/models/surrogate_explainer/__init__.py +1 -0
  116. arize/models/surrogate_explainer/mimic.py +24 -13
  117. arize/pre_releases.py +43 -0
  118. arize/projects/__init__.py +1 -0
  119. arize/projects/client.py +129 -0
  120. arize/regions.py +40 -0
  121. arize/spans/__init__.py +1 -0
  122. arize/spans/client.py +130 -106
  123. arize/spans/columns.py +13 -0
  124. arize/spans/conversion.py +54 -38
  125. arize/spans/validation/__init__.py +1 -0
  126. arize/spans/validation/annotations/__init__.py +1 -0
  127. arize/spans/validation/annotations/annotations_validation.py +6 -4
  128. arize/spans/validation/annotations/dataframe_form_validation.py +13 -11
  129. arize/spans/validation/annotations/value_validation.py +35 -11
  130. arize/spans/validation/common/__init__.py +1 -0
  131. arize/spans/validation/common/argument_validation.py +33 -8
  132. arize/spans/validation/common/dataframe_form_validation.py +35 -9
  133. arize/spans/validation/common/errors.py +211 -11
  134. arize/spans/validation/common/value_validation.py +80 -13
  135. arize/spans/validation/evals/__init__.py +1 -0
  136. arize/spans/validation/evals/dataframe_form_validation.py +28 -8
  137. arize/spans/validation/evals/evals_validation.py +34 -4
  138. arize/spans/validation/evals/value_validation.py +26 -3
  139. arize/spans/validation/metadata/__init__.py +1 -1
  140. arize/spans/validation/metadata/argument_validation.py +14 -5
  141. arize/spans/validation/metadata/dataframe_form_validation.py +26 -10
  142. arize/spans/validation/metadata/value_validation.py +24 -10
  143. arize/spans/validation/spans/__init__.py +1 -0
  144. arize/spans/validation/spans/dataframe_form_validation.py +34 -13
  145. arize/spans/validation/spans/spans_validation.py +35 -4
  146. arize/spans/validation/spans/value_validation.py +76 -7
  147. arize/types.py +293 -157
  148. arize/utils/__init__.py +1 -0
  149. arize/utils/arrow.py +31 -15
  150. arize/utils/cache.py +34 -6
  151. arize/utils/dataframe.py +19 -2
  152. arize/utils/online_tasks/__init__.py +2 -0
  153. arize/utils/online_tasks/dataframe_preprocessor.py +53 -41
  154. arize/utils/openinference_conversion.py +44 -5
  155. arize/utils/proto.py +10 -0
  156. arize/utils/size.py +5 -3
  157. arize/version.py +3 -1
  158. {arize-8.0.0a21.dist-info → arize-8.0.0a23.dist-info}/METADATA +4 -3
  159. arize-8.0.0a23.dist-info/RECORD +174 -0
  160. {arize-8.0.0a21.dist-info → arize-8.0.0a23.dist-info}/WHEEL +1 -1
  161. arize-8.0.0a23.dist-info/licenses/LICENSE +176 -0
  162. arize-8.0.0a23.dist-info/licenses/NOTICE +13 -0
  163. arize/_generated/protocol/flight/export_pb2.py +0 -61
  164. arize/_generated/protocol/flight/ingest_pb2.py +0 -365
  165. arize-8.0.0a21.dist-info/RECORD +0 -146
  166. arize-8.0.0a21.dist-info/licenses/LICENSE.md +0 -12
@@ -0,0 +1,106 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Arize REST API
5
+
6
+ API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment.
7
+
8
+ The version of the OpenAPI document: 2.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field
21
+ from typing import Any, ClassVar, Dict, List
22
+ from arize._generated.api_client.models.pagination_metadata import PaginationMetadata
23
+ from arize._generated.api_client.models.project import Project
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+
27
+ class ProjectsList200Response(BaseModel):
28
+ """
29
+ ProjectsList200Response
30
+ """ # noqa: E501
31
+ projects: List[Project] = Field(description="A list of projects")
32
+ pagination: PaginationMetadata
33
+ __properties: ClassVar[List[str]] = ["projects", "pagination"]
34
+
35
+ model_config = ConfigDict(
36
+ populate_by_name=True,
37
+ validate_assignment=True,
38
+ protected_namespaces=(),
39
+ )
40
+
41
+
42
+ def to_str(self) -> str:
43
+ """Returns the string representation of the model using alias"""
44
+ return pprint.pformat(self.model_dump(by_alias=True))
45
+
46
+ def to_json(self) -> str:
47
+ """Returns the JSON representation of the model using alias"""
48
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
49
+ return json.dumps(self.to_dict())
50
+
51
+ @classmethod
52
+ def from_json(cls, json_str: str) -> Optional[Self]:
53
+ """Create an instance of ProjectsList200Response from a JSON string"""
54
+ return cls.from_dict(json.loads(json_str))
55
+
56
+ def to_dict(self) -> Dict[str, Any]:
57
+ """Return the dictionary representation of the model using alias.
58
+
59
+ This has the following differences from calling pydantic's
60
+ `self.model_dump(by_alias=True)`:
61
+
62
+ * `None` is only added to the output dict for nullable fields that
63
+ were set at model initialization. Other fields with value `None`
64
+ are ignored.
65
+ """
66
+ excluded_fields: Set[str] = set([
67
+ ])
68
+
69
+ _dict = self.model_dump(
70
+ by_alias=True,
71
+ exclude=excluded_fields,
72
+ exclude_none=True,
73
+ )
74
+ # override the default output from pydantic by calling `to_dict()` of each item in projects (list)
75
+ _items = []
76
+ if self.projects:
77
+ for _item_projects in self.projects:
78
+ if _item_projects:
79
+ _items.append(_item_projects.to_dict())
80
+ _dict['projects'] = _items
81
+ # override the default output from pydantic by calling `to_dict()` of pagination
82
+ if self.pagination:
83
+ _dict['pagination'] = self.pagination.to_dict()
84
+ return _dict
85
+
86
+ @classmethod
87
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
88
+ """Create an instance of ProjectsList200Response from a dict"""
89
+ if obj is None:
90
+ return None
91
+
92
+ if not isinstance(obj, dict):
93
+ return cls.model_validate(obj)
94
+
95
+ # raise errors for additional fields in the input
96
+ for _key in obj.keys():
97
+ if _key not in cls.__properties:
98
+ raise ValueError("Error due to additional fields (not defined in ProjectsList200Response) in the input: " + _key)
99
+
100
+ _obj = cls.model_validate({
101
+ "projects": [Project.from_dict(_item) for _item in obj["projects"]] if obj.get("projects") is not None else None,
102
+ "pagination": PaginationMetadata.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None
103
+ })
104
+ return _obj
105
+
106
+
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Arize REST API
5
5
 
6
- API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment. You can access the OpenAPI spec for this API at https://api.arize.com/v2/spec.yaml
6
+ API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment.
7
7
 
8
- The version of the OpenAPI document: 0.0.1
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Arize REST API
5
5
 
6
- API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment. You can access the OpenAPI spec for this API at https://api.arize.com/v2/spec.yaml
6
+ API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment.
7
7
 
8
- The version of the OpenAPI document: 0.0.1
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -54,6 +54,8 @@ class TestDataset(unittest.TestCase):
54
54
  id = '',
55
55
  name = '',
56
56
  space_id = '',
57
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
58
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
57
59
  )
58
60
  """
59
61
 
@@ -0,0 +1,56 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Arize REST API
5
+
6
+ API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment.
7
+
8
+ The version of the OpenAPI document: 2.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import unittest
16
+
17
+ from arize._generated.api_client.models.dataset_example import DatasetExample
18
+
19
+ class TestDatasetExample(unittest.TestCase):
20
+ """DatasetExample unit test stubs"""
21
+
22
+ def setUp(self):
23
+ pass
24
+
25
+ def tearDown(self):
26
+ pass
27
+
28
+ def make_instance(self, include_optional) -> DatasetExample:
29
+ """Test DatasetExample
30
+ include_optional is a boolean, when False only required
31
+ params are included, when True both required and
32
+ optional params are included """
33
+ # uncomment below to create an instance of `DatasetExample`
34
+ """
35
+ model = DatasetExample()
36
+ if include_optional:
37
+ return DatasetExample(
38
+ id = '',
39
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
40
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
41
+ )
42
+ else:
43
+ return DatasetExample(
44
+ id = '',
45
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
46
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
47
+ )
48
+ """
49
+
50
+ def testDatasetExample(self):
51
+ """Test DatasetExample"""
52
+ # inst_req_only = self.make_instance(include_optional=False)
53
+ # inst_req_and_optional = self.make_instance(include_optional=True)
54
+
55
+ if __name__ == '__main__':
56
+ unittest.main()
@@ -0,0 +1,52 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Arize REST API
5
+
6
+ API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment.
7
+
8
+ The version of the OpenAPI document: 2.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import unittest
16
+
17
+ from arize._generated.api_client.models.dataset_example_update import DatasetExampleUpdate
18
+
19
+ class TestDatasetExampleUpdate(unittest.TestCase):
20
+ """DatasetExampleUpdate unit test stubs"""
21
+
22
+ def setUp(self):
23
+ pass
24
+
25
+ def tearDown(self):
26
+ pass
27
+
28
+ def make_instance(self, include_optional) -> DatasetExampleUpdate:
29
+ """Test DatasetExampleUpdate
30
+ include_optional is a boolean, when False only required
31
+ params are included, when True both required and
32
+ optional params are included """
33
+ # uncomment below to create an instance of `DatasetExampleUpdate`
34
+ """
35
+ model = DatasetExampleUpdate()
36
+ if include_optional:
37
+ return DatasetExampleUpdate(
38
+ id = ''
39
+ )
40
+ else:
41
+ return DatasetExampleUpdate(
42
+ id = '',
43
+ )
44
+ """
45
+
46
+ def testDatasetExampleUpdate(self):
47
+ """Test DatasetExampleUpdate"""
48
+ # inst_req_only = self.make_instance(include_optional=False)
49
+ # inst_req_and_optional = self.make_instance(include_optional=True)
50
+
51
+ if __name__ == '__main__':
52
+ unittest.main()
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Arize REST API
5
5
 
6
- API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment. You can access the OpenAPI spec for this API at https://api.arize.com/v2/spec.yaml
6
+ API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment.
7
7
 
8
- The version of the OpenAPI document: 0.0.1
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -43,6 +43,11 @@ class TestDatasetVersion(unittest.TestCase):
43
43
  )
44
44
  else:
45
45
  return DatasetVersion(
46
+ id = '',
47
+ name = '',
48
+ dataset_id = '',
49
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
50
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
46
51
  )
47
52
  """
48
53
 
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Arize REST API
5
5
 
6
- API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment. You can access the OpenAPI spec for this API at https://api.arize.com/v2/spec.yaml
6
+ API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment.
7
7
 
8
- The version of the OpenAPI document: 0.0.1
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -29,35 +29,49 @@ class TestDatasetsApi(unittest.TestCase):
29
29
  def test_datasets_create(self) -> None:
30
30
  """Test case for datasets_create
31
31
 
32
- Create a new dataset with JSON examples
32
+ Create a dataset
33
33
  """
34
34
  pass
35
35
 
36
36
  def test_datasets_delete(self) -> None:
37
37
  """Test case for datasets_delete
38
38
 
39
- Delete a dataset by ID
39
+ Delete a dataset
40
40
  """
41
41
  pass
42
42
 
43
- def test_datasets_get(self) -> None:
44
- """Test case for datasets_get
43
+ def test_datasets_examples_insert(self) -> None:
44
+ """Test case for datasets_examples_insert
45
45
 
46
- Get dataset by ID
46
+ Add new examples to a dataset
47
47
  """
48
48
  pass
49
49
 
50
- def test_datasets_list(self) -> None:
51
- """Test case for datasets_list
50
+ def test_datasets_examples_list(self) -> None:
51
+ """Test case for datasets_examples_list
52
+
53
+ List dataset examples
54
+ """
55
+ pass
56
+
57
+ def test_datasets_examples_update(self) -> None:
58
+ """Test case for datasets_examples_update
52
59
 
53
- List datasets the user has access to
60
+ Update existing examples in a dataset
54
61
  """
55
62
  pass
56
63
 
57
- def test_datasets_list_examples(self) -> None:
58
- """Test case for datasets_list_examples
64
+ def test_datasets_get(self) -> None:
65
+ """Test case for datasets_get
66
+
67
+ Get a dataset
68
+ """
69
+ pass
70
+
71
+ def test_datasets_list(self) -> None:
72
+ """Test case for datasets_list
59
73
 
60
- List examples for a dataset
74
+ List datasets
61
75
  """
62
76
  pass
63
77
 
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Arize REST API
5
5
 
6
- API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment. You can access the OpenAPI spec for this API at https://api.arize.com/v2/spec.yaml
6
+ API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment.
7
7
 
8
- The version of the OpenAPI document: 0.0.1
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -38,7 +38,9 @@ class TestDatasetsCreateRequest(unittest.TestCase):
38
38
  name = '',
39
39
  space_id = '',
40
40
  examples = [
41
- None
41
+ {
42
+ 'key' : null
43
+ }
42
44
  ]
43
45
  )
44
46
  else:
@@ -46,7 +48,9 @@ class TestDatasetsCreateRequest(unittest.TestCase):
46
48
  name = '',
47
49
  space_id = '',
48
50
  examples = [
49
- None
51
+ {
52
+ 'key' : null
53
+ }
50
54
  ],
51
55
  )
52
56
  """
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Arize REST API
5
5
 
6
- API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment. You can access the OpenAPI spec for this API at https://api.arize.com/v2/spec.yaml
6
+ API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment.
7
7
 
8
- The version of the OpenAPI document: 0.0.1
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -14,10 +14,10 @@
14
14
 
15
15
  import unittest
16
16
 
17
- from arize._generated.api_client.models.datasets_list_examples200_response import DatasetsListExamples200Response
17
+ from arize._generated.api_client.models.datasets_examples_insert_request import DatasetsExamplesInsertRequest
18
18
 
19
- class TestDatasetsListExamples200Response(unittest.TestCase):
20
- """DatasetsListExamples200Response unit test stubs"""
19
+ class TestDatasetsExamplesInsertRequest(unittest.TestCase):
20
+ """DatasetsExamplesInsertRequest unit test stubs"""
21
21
 
22
22
  def setUp(self):
23
23
  pass
@@ -25,30 +25,34 @@ class TestDatasetsListExamples200Response(unittest.TestCase):
25
25
  def tearDown(self):
26
26
  pass
27
27
 
28
- def make_instance(self, include_optional) -> DatasetsListExamples200Response:
29
- """Test DatasetsListExamples200Response
28
+ def make_instance(self, include_optional) -> DatasetsExamplesInsertRequest:
29
+ """Test DatasetsExamplesInsertRequest
30
30
  include_optional is a boolean, when False only required
31
31
  params are included, when True both required and
32
32
  optional params are included """
33
- # uncomment below to create an instance of `DatasetsListExamples200Response`
33
+ # uncomment below to create an instance of `DatasetsExamplesInsertRequest`
34
34
  """
35
- model = DatasetsListExamples200Response()
35
+ model = DatasetsExamplesInsertRequest()
36
36
  if include_optional:
37
- return DatasetsListExamples200Response(
37
+ return DatasetsExamplesInsertRequest(
38
38
  examples = [
39
- None
39
+ {
40
+ 'key' : null
41
+ }
40
42
  ]
41
43
  )
42
44
  else:
43
- return DatasetsListExamples200Response(
45
+ return DatasetsExamplesInsertRequest(
44
46
  examples = [
45
- None
47
+ {
48
+ 'key' : null
49
+ }
46
50
  ],
47
51
  )
48
52
  """
49
53
 
50
- def testDatasetsListExamples200Response(self):
51
- """Test DatasetsListExamples200Response"""
54
+ def testDatasetsExamplesInsertRequest(self):
55
+ """Test DatasetsExamplesInsertRequest"""
52
56
  # inst_req_only = self.make_instance(include_optional=False)
53
57
  # inst_req_and_optional = self.make_instance(include_optional=True)
54
58
 
@@ -0,0 +1,66 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Arize REST API
5
+
6
+ API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment.
7
+
8
+ The version of the OpenAPI document: 2.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import unittest
16
+
17
+ from arize._generated.api_client.models.datasets_examples_list200_response import DatasetsExamplesList200Response
18
+
19
+ class TestDatasetsExamplesList200Response(unittest.TestCase):
20
+ """DatasetsExamplesList200Response unit test stubs"""
21
+
22
+ def setUp(self):
23
+ pass
24
+
25
+ def tearDown(self):
26
+ pass
27
+
28
+ def make_instance(self, include_optional) -> DatasetsExamplesList200Response:
29
+ """Test DatasetsExamplesList200Response
30
+ include_optional is a boolean, when False only required
31
+ params are included, when True both required and
32
+ optional params are included """
33
+ # uncomment below to create an instance of `DatasetsExamplesList200Response`
34
+ """
35
+ model = DatasetsExamplesList200Response()
36
+ if include_optional:
37
+ return DatasetsExamplesList200Response(
38
+ examples = [
39
+ {
40
+ 'key' : null
41
+ }
42
+ ],
43
+ pagination = arize._generated.api_client.models.pagination_metadata.PaginationMetadata(
44
+ next_cursor = '',
45
+ has_more = True, )
46
+ )
47
+ else:
48
+ return DatasetsExamplesList200Response(
49
+ examples = [
50
+ {
51
+ 'key' : null
52
+ }
53
+ ],
54
+ pagination = arize._generated.api_client.models.pagination_metadata.PaginationMetadata(
55
+ next_cursor = '',
56
+ has_more = True, ),
57
+ )
58
+ """
59
+
60
+ def testDatasetsExamplesList200Response(self):
61
+ """Test DatasetsExamplesList200Response"""
62
+ # inst_req_only = self.make_instance(include_optional=False)
63
+ # inst_req_and_optional = self.make_instance(include_optional=True)
64
+
65
+ if __name__ == '__main__':
66
+ unittest.main()
@@ -0,0 +1,61 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Arize REST API
5
+
6
+ API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment.
7
+
8
+ The version of the OpenAPI document: 2.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import unittest
16
+
17
+ from arize._generated.api_client.models.datasets_examples_update_request import DatasetsExamplesUpdateRequest
18
+
19
+ class TestDatasetsExamplesUpdateRequest(unittest.TestCase):
20
+ """DatasetsExamplesUpdateRequest unit test stubs"""
21
+
22
+ def setUp(self):
23
+ pass
24
+
25
+ def tearDown(self):
26
+ pass
27
+
28
+ def make_instance(self, include_optional) -> DatasetsExamplesUpdateRequest:
29
+ """Test DatasetsExamplesUpdateRequest
30
+ include_optional is a boolean, when False only required
31
+ params are included, when True both required and
32
+ optional params are included """
33
+ # uncomment below to create an instance of `DatasetsExamplesUpdateRequest`
34
+ """
35
+ model = DatasetsExamplesUpdateRequest()
36
+ if include_optional:
37
+ return DatasetsExamplesUpdateRequest(
38
+ examples = [
39
+ {
40
+ 'key' : null
41
+ }
42
+ ],
43
+ new_version = ''
44
+ )
45
+ else:
46
+ return DatasetsExamplesUpdateRequest(
47
+ examples = [
48
+ {
49
+ 'key' : null
50
+ }
51
+ ],
52
+ )
53
+ """
54
+
55
+ def testDatasetsExamplesUpdateRequest(self):
56
+ """Test DatasetsExamplesUpdateRequest"""
57
+ # inst_req_only = self.make_instance(include_optional=False)
58
+ # inst_req_and_optional = self.make_instance(include_optional=True)
59
+
60
+ if __name__ == '__main__':
61
+ unittest.main()
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Arize REST API
5
5
 
6
- API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment. You can access the OpenAPI spec for this API at https://api.arize.com/v2/spec.yaml
6
+ API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment.
7
7
 
8
- The version of the OpenAPI document: 0.0.1
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -50,7 +50,10 @@ class TestDatasetsList200Response(unittest.TestCase):
50
50
  created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
51
51
  updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
52
52
  ], )
53
- ]
53
+ ],
54
+ pagination = arize._generated.api_client.models.pagination_metadata.PaginationMetadata(
55
+ next_cursor = '',
56
+ has_more = True, )
54
57
  )
55
58
  else:
56
59
  return DatasetsList200Response(
@@ -70,6 +73,9 @@ class TestDatasetsList200Response(unittest.TestCase):
70
73
  updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
71
74
  ], )
72
75
  ],
76
+ pagination = arize._generated.api_client.models.pagination_metadata.PaginationMetadata(
77
+ next_cursor = '',
78
+ has_more = True, ),
73
79
  )
74
80
  """
75
81
 
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Arize REST API
5
5
 
6
- API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment. You can access the OpenAPI spec for this API at https://api.arize.com/v2/spec.yaml
6
+ API specification for the backend data server. The API is hosted globally at https://api.arize.com/v2 or in your own environment.
7
7
 
8
- The version of the OpenAPI document: 0.0.1
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
11
  Do not edit the class manually.
@@ -41,7 +41,6 @@ class TestExperiment(unittest.TestCase):
41
41
  dataset_version_id = '',
42
42
  created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
43
43
  updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
44
- created_by = '',
45
44
  experiment_traces_project_id = ''
46
45
  )
47
46
  else:
@@ -52,7 +51,6 @@ class TestExperiment(unittest.TestCase):
52
51
  dataset_version_id = '',
53
52
  created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
54
53
  updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
55
- created_by = '',
56
54
  )
57
55
  """
58
56