UncountablePythonSDK 0.0.5__py3-none-any.whl → 0.0.7__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.

Potentially problematic release.


This version of UncountablePythonSDK might be problematic. Click here for more details.

Files changed (71) hide show
  1. {UncountablePythonSDK-0.0.5.dist-info → UncountablePythonSDK-0.0.7.dist-info}/METADATA +1 -1
  2. UncountablePythonSDK-0.0.7.dist-info/RECORD +119 -0
  3. {UncountablePythonSDK-0.0.5.dist-info → UncountablePythonSDK-0.0.7.dist-info}/WHEEL +1 -1
  4. pkgs/type_spec/builder.py +0 -61
  5. pkgs/type_spec/config.py +3 -0
  6. pkgs/type_spec/emit_open_api.py +33 -22
  7. pkgs/type_spec/emit_open_api_util.py +6 -2
  8. pkgs/type_spec/emit_python.py +3 -2
  9. type_spec/external/api/entity/create_entities.yaml +33 -0
  10. type_spec/external/api/entity/{external_create_entity.yaml → create_entity.yaml} +4 -14
  11. type_spec/external/api/entity/{external_get_entities_data.yaml → get_entities_data.yaml} +6 -6
  12. type_spec/external/api/entity/{external_list_entities.yaml → list_entities.yaml} +6 -6
  13. type_spec/external/api/entity/{external_resolve_entity_ids.yaml → resolve_entity_ids.yaml} +2 -2
  14. type_spec/external/api/entity/{external_set_values.yaml → set_values.yaml} +4 -4
  15. type_spec/external/api/input_groups/{external_get_input_group_names.yaml → get_input_group_names.yaml} +2 -2
  16. type_spec/external/api/inputs/{external_create_inputs.yaml → create_inputs.yaml} +4 -4
  17. type_spec/external/api/inputs/{external_get_input_data.yaml → get_input_data.yaml} +10 -10
  18. type_spec/external/api/inputs/{external_get_input_names.yaml → get_input_names.yaml} +2 -2
  19. type_spec/external/api/inputs/{external_get_inputs_data.yaml → get_inputs_data.yaml} +10 -10
  20. type_spec/external/api/inputs/{external_set_input_attribute_values.yaml → set_input_attribute_values.yaml} +2 -2
  21. type_spec/external/api/outputs/{external_get_output_data.yaml → get_output_data.yaml} +10 -10
  22. type_spec/external/api/outputs/{external_get_output_names.yaml → get_output_names.yaml} +2 -2
  23. type_spec/external/api/project/{external_get_projects.yaml → get_projects.yaml} +4 -4
  24. type_spec/external/api/project/{external_get_projects_data.yaml → get_projects_data.yaml} +8 -8
  25. type_spec/external/api/recipe_metadata/{external_get_recipe_metadata_data.yaml → get_recipe_metadata_data.yaml} +2 -2
  26. type_spec/external/api/recipes/{external_create_recipes.yaml → create_recipes.yaml} +6 -6
  27. type_spec/external/api/recipes/{external_get_curve.yaml → get_curve.yaml} +5 -5
  28. type_spec/external/api/recipes/{external_get_recipe_calculations.yaml → get_recipe_calculations.yaml} +4 -4
  29. type_spec/external/api/recipes/get_recipe_links.yaml +26 -0
  30. type_spec/external/api/recipes/{external_get_recipe_names.yaml → get_recipe_names.yaml} +2 -2
  31. type_spec/external/api/recipes/{external_get_recipe_output_metadata.yaml → get_recipe_output_metadata.yaml} +4 -4
  32. type_spec/external/api/recipes/{external_get_recipes_data.yaml → get_recipes_data.yaml} +38 -38
  33. uncountable/types/__init__.py +60 -54
  34. uncountable/types/api/entity/{external_create_entities.py → create_entities.py} +5 -25
  35. uncountable/types/api/entity/{external_create_entity.py → create_entity.py} +7 -13
  36. uncountable/types/api/entity/{external_get_entities_data.py → get_entities_data.py} +9 -9
  37. uncountable/types/api/entity/{external_list_entities.py → list_entities.py} +9 -9
  38. uncountable/types/api/entity/{external_resolve_entity_ids.py → resolve_entity_ids.py} +3 -3
  39. uncountable/types/api/entity/{external_set_values.py → set_values.py} +6 -6
  40. uncountable/types/api/input_groups/{external_get_input_group_names.py → get_input_group_names.py} +3 -3
  41. uncountable/types/api/inputs/{external_create_inputs.py → create_inputs.py} +6 -6
  42. uncountable/types/api/inputs/{external_get_input_data.py → get_input_data.py} +15 -15
  43. uncountable/types/api/inputs/{external_get_input_names.py → get_input_names.py} +3 -3
  44. uncountable/types/api/inputs/{external_get_inputs_data.py → get_inputs_data.py} +15 -15
  45. uncountable/types/api/inputs/{external_set_input_attribute_values.py → set_input_attribute_values.py} +3 -3
  46. uncountable/types/api/outputs/{external_get_output_data.py → get_output_data.py} +15 -15
  47. uncountable/types/api/outputs/{external_get_output_names.py → get_output_names.py} +3 -3
  48. uncountable/types/api/project/{external_get_projects.py → get_projects.py} +6 -6
  49. uncountable/types/api/project/{external_get_projects_data.py → get_projects_data.py} +12 -12
  50. uncountable/types/api/recipe_metadata/{external_get_recipe_metadata_data.py → get_recipe_metadata_data.py} +3 -3
  51. uncountable/types/api/recipes/{external_create_recipes.py → create_recipes.py} +9 -9
  52. uncountable/types/api/recipes/{external_get_curve.py → get_curve.py} +7 -7
  53. uncountable/types/api/recipes/{external_get_recipe_calculations.py → get_recipe_calculations.py} +6 -6
  54. uncountable/types/api/recipes/get_recipe_links.py +36 -0
  55. uncountable/types/api/recipes/{external_get_recipe_names.py → get_recipe_names.py} +3 -3
  56. uncountable/types/api/recipes/{external_get_recipe_output_metadata.py → get_recipe_output_metadata.py} +6 -6
  57. uncountable/types/api/recipes/{external_get_recipes_data.py → get_recipes_data.py} +57 -57
  58. uncountable/types/client_base.py +220 -217
  59. uncountable/types/entity.py +271 -0
  60. uncountable/types/field_values.py +28 -0
  61. uncountable/types/{api/recipes/external_get_recipe_links.py → recipe_links.py} +4 -25
  62. UncountablePythonSDK-0.0.5.dist-info/RECORD +0 -116
  63. type_spec/external/api/entity/external_create_entities.yaml +0 -55
  64. type_spec/external/api/recipes/external_get_recipe_links.yaml +0 -61
  65. {UncountablePythonSDK-0.0.5.dist-info → UncountablePythonSDK-0.0.7.dist-info}/top_level.txt +0 -0
  66. /type_spec/external/api/outputs/{external_resolve_output_conditions.yaml → resolve_output_conditions.yaml} +0 -0
  67. /type_spec/external/api/recipes/{external_set_recipe_inputs.yaml → set_recipe_inputs.yaml} +0 -0
  68. /type_spec/external/api/recipes/{external_set_recipe_outputs.yaml → set_recipe_outputs.yaml} +0 -0
  69. /uncountable/types/api/outputs/{external_resolve_output_conditions.py → resolve_output_conditions.py} +0 -0
  70. /uncountable/types/api/recipes/{external_set_recipe_inputs.py → set_recipe_inputs.py} +0 -0
  71. /uncountable/types/api/recipes/{external_set_recipe_outputs.py → set_recipe_outputs.py} +0 -0
@@ -0,0 +1,36 @@
1
+ # DO NOT MODIFY -- This file is generated by type_spec
2
+ # flake8: noqa: F821
3
+ # ruff: noqa: E402
4
+ # fmt: off
5
+ # isort: skip_file
6
+ from __future__ import annotations
7
+ import typing # noqa: F401
8
+ import datetime # noqa: F401
9
+ from decimal import Decimal # noqa: F401
10
+ from dataclasses import dataclass
11
+ from ... import recipe_links as recipe_links_t
12
+
13
+ __all__: list[str] = [
14
+ "Arguments",
15
+ "Data",
16
+ "ENDPOINT_METHOD",
17
+ "ENDPOINT_PATH",
18
+ ]
19
+
20
+ ENDPOINT_METHOD = "GET"
21
+ ENDPOINT_PATH = "api/external/recipes/external_get_recipe_links"
22
+
23
+
24
+ # DO NOT MODIFY -- This file is generated by type_spec
25
+ @dataclass(kw_only=True)
26
+ class Arguments:
27
+ recipe_ids: list[int]
28
+ depth: int = 1
29
+ link_types: typing.Optional[list[recipe_links_t.RecipeLinkType]]
30
+
31
+
32
+ # DO NOT MODIFY -- This file is generated by type_spec
33
+ @dataclass(kw_only=True)
34
+ class Data:
35
+ recipe_links: list[recipe_links_t.RecipeLink]
36
+ # DO NOT MODIFY -- This file is generated by type_spec
@@ -14,7 +14,7 @@ __all__: list[str] = [
14
14
  "Data",
15
15
  "ENDPOINT_METHOD",
16
16
  "ENDPOINT_PATH",
17
- "ExternalSimpleRecipe",
17
+ "SimpleRecipe",
18
18
  ]
19
19
 
20
20
  ENDPOINT_METHOD = "GET"
@@ -29,7 +29,7 @@ class Arguments:
29
29
 
30
30
  # DO NOT MODIFY -- This file is generated by type_spec
31
31
  @dataclass(kw_only=True)
32
- class ExternalSimpleRecipe:
32
+ class SimpleRecipe:
33
33
  id: int
34
34
  name: str
35
35
 
@@ -37,5 +37,5 @@ class ExternalSimpleRecipe:
37
37
  # DO NOT MODIFY -- This file is generated by type_spec
38
38
  @dataclass(kw_only=True)
39
39
  class Data:
40
- recipes: list[ExternalSimpleRecipe]
40
+ recipes: list[SimpleRecipe]
41
41
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -16,8 +16,8 @@ __all__: list[str] = [
16
16
  "Data",
17
17
  "ENDPOINT_METHOD",
18
18
  "ENDPOINT_PATH",
19
- "ExternalRecipeOutputMetadata",
20
- "ExternalRecipeOutputMetadataField",
19
+ "RecipeOutputMetadata",
20
+ "RecipeOutputMetadataField",
21
21
  ]
22
22
 
23
23
  ENDPOINT_METHOD = "GET"
@@ -36,7 +36,7 @@ class Arguments:
36
36
  to_string_values={"quantity_dec"},
37
37
  )
38
38
  @dataclass(kw_only=True)
39
- class ExternalRecipeOutputMetadata:
39
+ class RecipeOutputMetadata:
40
40
  recipe_output_id: int
41
41
  recipe_output_metadata_field_id: int
42
42
  quantity_dec: Decimal
@@ -45,7 +45,7 @@ class ExternalRecipeOutputMetadata:
45
45
 
46
46
  # DO NOT MODIFY -- This file is generated by type_spec
47
47
  @dataclass(kw_only=True)
48
- class ExternalRecipeOutputMetadataField:
48
+ class RecipeOutputMetadataField:
49
49
  id: int
50
50
  name: str
51
51
  quantity_type: str
@@ -54,6 +54,6 @@ class ExternalRecipeOutputMetadataField:
54
54
  # DO NOT MODIFY -- This file is generated by type_spec
55
55
  @dataclass(kw_only=True)
56
56
  class Data:
57
- recipe_output_metadata: list[ExternalRecipeOutputMetadata]
58
- recipe_output_metadata_fields: list[ExternalRecipeOutputMetadataField]
57
+ recipe_output_metadata: list[RecipeOutputMetadata]
58
+ recipe_output_metadata_fields: list[RecipeOutputMetadataField]
59
59
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -13,28 +13,28 @@ from ... import base as base_t
13
13
 
14
14
  __all__: list[str] = [
15
15
  "Arguments",
16
+ "ConditionParameterValue",
16
17
  "Data",
17
18
  "ENDPOINT_METHOD",
18
19
  "ENDPOINT_PATH",
19
- "ExternalConditionParameterValue",
20
- "ExternalRecipe",
21
- "ExternalRecipeInput",
22
- "ExternalRecipeMetadata",
23
- "ExternalRecipeOutput",
24
- "ExternalRecipeStep",
25
- "ExternalRecipeStepGroup",
26
- "ExternalRecipeStepRelationship",
27
- "ExternalRecipeWorkflowStep",
28
- "ExternalSimpleExperimentGroup",
29
- "ExternalSimpleInput",
30
- "ExternalSimpleOutput",
31
- "ExternalSimpleOutputCondition",
32
- "ExternalSimpleRecipeMetadataField",
33
- "ExternalSimpleRecipeTag",
34
- "ExternalSimpleUnit",
35
- "ExternalSimpleUser",
36
- "ExternalSimpleWorkflow",
37
- "ExternalSimpleWorkflowStep",
20
+ "Recipe",
21
+ "RecipeInput",
22
+ "RecipeMetadata",
23
+ "RecipeOutput",
24
+ "RecipeStep",
25
+ "RecipeStepGroup",
26
+ "RecipeStepRelationship",
27
+ "RecipeWorkflowStep",
28
+ "SimpleExperimentGroup",
29
+ "SimpleInput",
30
+ "SimpleOutput",
31
+ "SimpleOutputCondition",
32
+ "SimpleRecipeMetadataField",
33
+ "SimpleRecipeTag",
34
+ "SimpleUnit",
35
+ "SimpleUser",
36
+ "SimpleWorkflow",
37
+ "SimpleWorkflowStep",
38
38
  ]
39
39
 
40
40
  ENDPOINT_METHOD = "GET"
@@ -52,7 +52,7 @@ class Arguments:
52
52
 
53
53
  # DO NOT MODIFY -- This file is generated by type_spec
54
54
  @dataclass(kw_only=True)
55
- class ExternalSimpleRecipeMetadataField:
55
+ class SimpleRecipeMetadataField:
56
56
  metadata_id: int
57
57
  name: str
58
58
  quantity_type: str
@@ -64,7 +64,7 @@ class ExternalSimpleRecipeMetadataField:
64
64
  to_string_values={"quantity_dec"},
65
65
  )
66
66
  @dataclass(kw_only=True)
67
- class ExternalRecipeMetadata:
67
+ class RecipeMetadata:
68
68
  metadata_id: int
69
69
  quantity_dec: Decimal
70
70
  quantity_json: base_t.JsonValue
@@ -72,21 +72,21 @@ class ExternalRecipeMetadata:
72
72
 
73
73
  # DO NOT MODIFY -- This file is generated by type_spec
74
74
  @dataclass(kw_only=True)
75
- class ExternalSimpleRecipeTag:
75
+ class SimpleRecipeTag:
76
76
  recipe_tag_id: int
77
77
  name: str
78
78
 
79
79
 
80
80
  # DO NOT MODIFY -- This file is generated by type_spec
81
81
  @dataclass(kw_only=True)
82
- class ExternalSimpleExperimentGroup:
82
+ class SimpleExperimentGroup:
83
83
  experiment_group_id: int
84
84
  name: str
85
85
 
86
86
 
87
87
  # DO NOT MODIFY -- This file is generated by type_spec
88
88
  @dataclass(kw_only=True)
89
- class ExternalSimpleUnit:
89
+ class SimpleUnit:
90
90
  unit_id: int
91
91
  name: str
92
92
 
@@ -97,7 +97,7 @@ class ExternalSimpleUnit:
97
97
  to_string_values={"quantity_dec"},
98
98
  )
99
99
  @dataclass(kw_only=True)
100
- class ExternalRecipeOutput:
100
+ class RecipeOutput:
101
101
  id: int
102
102
  output_id: int
103
103
  replicate_num: int
@@ -109,10 +109,10 @@ class ExternalRecipeOutput:
109
109
 
110
110
  # DO NOT MODIFY -- This file is generated by type_spec
111
111
  @dataclass(kw_only=True)
112
- class ExternalSimpleOutput:
112
+ class SimpleOutput:
113
113
  output_id: int
114
114
  name: str
115
- unit: typing.Optional[ExternalSimpleUnit]
115
+ unit: typing.Optional[SimpleUnit]
116
116
  quantity_type: str
117
117
 
118
118
 
@@ -122,7 +122,7 @@ class ExternalSimpleOutput:
122
122
  to_string_values={"quantity_dec"},
123
123
  )
124
124
  @dataclass(kw_only=True)
125
- class ExternalConditionParameterValue:
125
+ class ConditionParameterValue:
126
126
  condition_parameter_id: int
127
127
  condition_parameter_name: str
128
128
  quantity_dec: Decimal
@@ -131,24 +131,24 @@ class ExternalConditionParameterValue:
131
131
 
132
132
  # DO NOT MODIFY -- This file is generated by type_spec
133
133
  @dataclass(kw_only=True)
134
- class ExternalSimpleOutputCondition:
134
+ class SimpleOutputCondition:
135
135
  output_condition_id: int
136
- condition_parameter_values: list[ExternalConditionParameterValue]
136
+ condition_parameter_values: list[ConditionParameterValue]
137
137
 
138
138
 
139
139
  # DO NOT MODIFY -- This file is generated by type_spec
140
140
  @dataclass(kw_only=True)
141
- class ExternalSimpleWorkflowStep:
141
+ class SimpleWorkflowStep:
142
142
  workflow_step_id: int
143
143
  name: str
144
144
 
145
145
 
146
146
  # DO NOT MODIFY -- This file is generated by type_spec
147
147
  @dataclass(kw_only=True)
148
- class ExternalSimpleWorkflow:
148
+ class SimpleWorkflow:
149
149
  workflow_id: int
150
150
  name: str
151
- workflow_steps: list[ExternalSimpleWorkflowStep]
151
+ workflow_steps: list[SimpleWorkflowStep]
152
152
 
153
153
 
154
154
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -157,7 +157,7 @@ class ExternalSimpleWorkflow:
157
157
  to_string_values={"actual_quantity_dec", "quantity_dec"},
158
158
  )
159
159
  @dataclass(kw_only=True)
160
- class ExternalRecipeInput:
160
+ class RecipeInput:
161
161
  input_id: int
162
162
  input_lot_recipe_id: typing.Optional[int]
163
163
  recipe_step_id: int
@@ -171,7 +171,7 @@ class ExternalRecipeInput:
171
171
 
172
172
  # DO NOT MODIFY -- This file is generated by type_spec
173
173
  @dataclass(kw_only=True)
174
- class ExternalSimpleInput:
174
+ class SimpleInput:
175
175
  input_id: int
176
176
  quantity_type: str
177
177
  name: str
@@ -181,7 +181,7 @@ class ExternalSimpleInput:
181
181
 
182
182
  # DO NOT MODIFY -- This file is generated by type_spec
183
183
  @dataclass(kw_only=True)
184
- class ExternalRecipeStep:
184
+ class RecipeStep:
185
185
  name: typing.Optional[str]
186
186
  recipe_step_id: int
187
187
  recipe_step_number: int
@@ -190,22 +190,22 @@ class ExternalRecipeStep:
190
190
 
191
191
  # DO NOT MODIFY -- This file is generated by type_spec
192
192
  @dataclass(kw_only=True)
193
- class ExternalRecipeStepGroup:
193
+ class RecipeStepGroup:
194
194
  name: typing.Optional[str]
195
- recipe_steps: list[ExternalRecipeStep]
195
+ recipe_steps: list[RecipeStep]
196
196
 
197
197
 
198
198
  # DO NOT MODIFY -- This file is generated by type_spec
199
199
  @dataclass(kw_only=True)
200
- class ExternalRecipeWorkflowStep:
200
+ class RecipeWorkflowStep:
201
201
  recipe_workflow_step_id: int
202
202
  workflow_step_id: int
203
- recipe_step_groups: list[ExternalRecipeStepGroup]
203
+ recipe_step_groups: list[RecipeStepGroup]
204
204
 
205
205
 
206
206
  # DO NOT MODIFY -- This file is generated by type_spec
207
207
  @dataclass(kw_only=True)
208
- class ExternalSimpleUser:
208
+ class SimpleUser:
209
209
  user_id: int
210
210
  display_name: str
211
211
  email: str
@@ -216,7 +216,7 @@ class ExternalSimpleUser:
216
216
  to_string_values={"actual_quantity_dec", "quantity_dec"},
217
217
  )
218
218
  @dataclass(kw_only=True)
219
- class ExternalRecipeStepRelationship:
219
+ class RecipeStepRelationship:
220
220
  step_relationship_id: base_t.ObjectId
221
221
  name: typing.Optional[str]
222
222
  source_recipe_workflow_step_id: base_t.ObjectId
@@ -227,20 +227,20 @@ class ExternalRecipeStepRelationship:
227
227
 
228
228
  # DO NOT MODIFY -- This file is generated by type_spec
229
229
  @dataclass(kw_only=True)
230
- class ExternalRecipe:
230
+ class Recipe:
231
231
  recipe_id: int
232
232
  create_datetime: str
233
233
  last_modified_datetime: str
234
234
  name: str
235
235
  notes: typing.Optional[str]
236
236
  workflow_id: int
237
- metadata: list[ExternalRecipeMetadata]
238
- inputs: list[ExternalRecipeInput]
239
- outputs: list[ExternalRecipeOutput]
240
- workflow_steps: list[ExternalRecipeWorkflowStep]
237
+ metadata: list[RecipeMetadata]
238
+ inputs: list[RecipeInput]
239
+ outputs: list[RecipeOutput]
240
+ workflow_steps: list[RecipeWorkflowStep]
241
241
  tag_ids: list[int]
242
242
  experiment_group_ids: list[int]
243
- step_relationships: list[ExternalRecipeStepRelationship]
243
+ step_relationships: list[RecipeStepRelationship]
244
244
  creating_user_id: typing.Optional[int] = None
245
245
  barcode_value: typing.Optional[str] = None
246
246
 
@@ -248,13 +248,13 @@ class ExternalRecipe:
248
248
  # DO NOT MODIFY -- This file is generated by type_spec
249
249
  @dataclass(kw_only=True)
250
250
  class Data:
251
- recipes: list[ExternalRecipe]
252
- workflows: list[ExternalSimpleWorkflow]
253
- metadata: list[ExternalSimpleRecipeMetadataField]
254
- inputs: list[ExternalSimpleInput]
255
- outputs: list[ExternalSimpleOutput]
256
- output_conditions: list[ExternalSimpleOutputCondition]
257
- users: list[ExternalSimpleUser]
258
- recipe_tags: list[ExternalSimpleRecipeTag]
259
- experiment_groups: list[ExternalSimpleExperimentGroup]
251
+ recipes: list[Recipe]
252
+ workflows: list[SimpleWorkflow]
253
+ metadata: list[SimpleRecipeMetadataField]
254
+ inputs: list[SimpleInput]
255
+ outputs: list[SimpleOutput]
256
+ output_conditions: list[SimpleOutputCondition]
257
+ users: list[SimpleUser]
258
+ recipe_tags: list[SimpleRecipeTag]
259
+ experiment_groups: list[SimpleExperimentGroup]
260
260
  # DO NOT MODIFY -- This file is generated by type_spec