UncountablePythonSDK 0.0.38__py3-none-any.whl → 0.0.39__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.
- {UncountablePythonSDK-0.0.38.dist-info → UncountablePythonSDK-0.0.39.dist-info}/METADATA +1 -1
- {UncountablePythonSDK-0.0.38.dist-info → UncountablePythonSDK-0.0.39.dist-info}/RECORD +98 -96
- {UncountablePythonSDK-0.0.38.dist-info → UncountablePythonSDK-0.0.39.dist-info}/WHEEL +1 -1
- pkgs/type_spec/emit_python.py +3 -1
- uncountable/core/client.py +1 -1
- uncountable/types/__init__.py +3 -1
- uncountable/types/api/batch/execute_batch.py +1 -1
- uncountable/types/api/batch/execute_batch_load_async.py +1 -1
- uncountable/types/api/chemical/convert_chemical_formats.py +1 -1
- uncountable/types/api/entity/create_entities.py +1 -1
- uncountable/types/api/entity/create_entity.py +1 -1
- uncountable/types/api/entity/get_entities_data.py +1 -1
- uncountable/types/api/entity/list_entities.py +1 -1
- uncountable/types/api/entity/lock_entity.py +1 -1
- uncountable/types/api/entity/resolve_entity_ids.py +1 -1
- uncountable/types/api/entity/set_values.py +1 -1
- uncountable/types/api/entity/transition_entity_phase.py +1 -1
- uncountable/types/api/entity/unlock_entity.py +1 -1
- uncountable/types/api/equipment/__init__.py +1 -0
- uncountable/types/api/equipment/associate_equipment_input.py +37 -0
- uncountable/types/api/field_options/upsert_field_options.py +1 -1
- uncountable/types/api/id_source/list_id_source.py +1 -1
- uncountable/types/api/id_source/match_id_source.py +1 -1
- uncountable/types/api/input_groups/get_input_group_names.py +1 -1
- uncountable/types/api/inputs/create_inputs.py +1 -1
- uncountable/types/api/inputs/get_input_data.py +1 -1
- uncountable/types/api/inputs/get_input_names.py +1 -1
- uncountable/types/api/inputs/get_inputs_data.py +1 -1
- uncountable/types/api/inputs/set_input_attribute_values.py +1 -1
- uncountable/types/api/inputs/set_input_category.py +1 -1
- uncountable/types/api/inputs/set_input_subcategories.py +1 -1
- uncountable/types/api/inputs/set_intermediate_type.py +1 -1
- uncountable/types/api/material_families/update_entity_material_families.py +1 -1
- uncountable/types/api/outputs/get_output_data.py +1 -1
- uncountable/types/api/outputs/get_output_names.py +1 -1
- uncountable/types/api/outputs/resolve_output_conditions.py +1 -1
- uncountable/types/api/permissions/set_core_permissions.py +1 -1
- uncountable/types/api/project/get_projects.py +1 -1
- uncountable/types/api/project/get_projects_data.py +1 -1
- uncountable/types/api/recipe_links/create_recipe_link.py +1 -1
- uncountable/types/api/recipe_links/remove_recipe_link.py +1 -1
- uncountable/types/api/recipe_metadata/get_recipe_metadata_data.py +1 -1
- uncountable/types/api/recipes/add_recipe_to_project.py +1 -1
- uncountable/types/api/recipes/archive_recipes.py +1 -1
- uncountable/types/api/recipes/associate_recipe_as_input.py +1 -1
- uncountable/types/api/recipes/associate_recipe_as_lot.py +1 -1
- uncountable/types/api/recipes/create_recipe.py +1 -1
- uncountable/types/api/recipes/create_recipes.py +1 -1
- uncountable/types/api/recipes/disassociate_recipe_as_input.py +1 -1
- uncountable/types/api/recipes/edit_recipe_inputs.py +1 -1
- uncountable/types/api/recipes/get_curve.py +1 -1
- uncountable/types/api/recipes/get_recipe_calculations.py +1 -1
- uncountable/types/api/recipes/get_recipe_links.py +1 -1
- uncountable/types/api/recipes/get_recipe_names.py +1 -1
- uncountable/types/api/recipes/get_recipe_output_metadata.py +1 -1
- uncountable/types/api/recipes/get_recipes_data.py +1 -1
- uncountable/types/api/recipes/lock_recipes.py +1 -1
- uncountable/types/api/recipes/remove_recipe_from_project.py +1 -1
- uncountable/types/api/recipes/set_recipe_inputs.py +1 -1
- uncountable/types/api/recipes/set_recipe_metadata.py +1 -1
- uncountable/types/api/recipes/set_recipe_output_annotations.py +1 -1
- uncountable/types/api/recipes/set_recipe_outputs.py +1 -1
- uncountable/types/api/recipes/set_recipe_tags.py +1 -1
- uncountable/types/api/recipes/unarchive_recipes.py +1 -1
- uncountable/types/api/recipes/unlock_recipes.py +1 -1
- uncountable/types/api/triggers/run_trigger.py +1 -1
- uncountable/types/async_batch.py +2 -1
- uncountable/types/async_batch_processor.py +37 -1
- uncountable/types/base.py +1 -1
- uncountable/types/calculations.py +1 -1
- uncountable/types/chemical_structure.py +1 -1
- uncountable/types/client_base.py +24 -1
- uncountable/types/curves.py +1 -1
- uncountable/types/entity.py +1 -1
- uncountable/types/experiment_groups.py +1 -1
- uncountable/types/field_values.py +1 -1
- uncountable/types/fields.py +1 -1
- uncountable/types/id_source.py +1 -1
- uncountable/types/identifier.py +1 -1
- uncountable/types/input_attributes.py +1 -1
- uncountable/types/inputs.py +1 -1
- uncountable/types/outputs.py +1 -1
- uncountable/types/permissions.py +1 -1
- uncountable/types/phases.py +1 -1
- uncountable/types/post_base.py +1 -1
- uncountable/types/recipe_identifiers.py +1 -1
- uncountable/types/recipe_inputs.py +1 -1
- uncountable/types/recipe_links.py +1 -1
- uncountable/types/recipe_metadata.py +1 -1
- uncountable/types/recipe_output_metadata.py +1 -1
- uncountable/types/recipe_tags.py +1 -1
- uncountable/types/recipe_workflow_steps.py +1 -1
- uncountable/types/recipes.py +1 -1
- uncountable/types/response.py +1 -1
- uncountable/types/units.py +1 -1
- uncountable/types/users.py +1 -1
- uncountable/types/workflows.py +1 -1
- {UncountablePythonSDK-0.0.38.dist-info → UncountablePythonSDK-0.0.39.dist-info}/top_level.txt +0 -0
uncountable/types/async_batch.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
2
|
# flake8: noqa: F821
|
|
3
|
-
# ruff: noqa: E402
|
|
3
|
+
# ruff: noqa: E402 Q003
|
|
4
4
|
# fmt: off
|
|
5
5
|
# isort: skip_file
|
|
6
6
|
from __future__ import annotations
|
|
@@ -29,6 +29,7 @@ class AsyncBatchRequestPath(StrEnum):
|
|
|
29
29
|
ARCHIVE_RECIPES = "recipes/archive"
|
|
30
30
|
LOCK_RECIPES = "recipes/lock_recipes"
|
|
31
31
|
UNLOCK_RECIPES = "recipes/unlock_recipes"
|
|
32
|
+
ASSOCIATE_EQUIPMENT_INPUT = "equipment/associate_equipment_input"
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
2
|
# flake8: noqa: F821
|
|
3
|
-
# ruff: noqa: E402
|
|
3
|
+
# ruff: noqa: E402 Q003
|
|
4
4
|
# fmt: off
|
|
5
5
|
# isort: skip_file
|
|
6
6
|
# ruff: noqa: PLR0904
|
|
@@ -8,6 +8,7 @@ from __future__ import annotations
|
|
|
8
8
|
import typing # noqa: F401
|
|
9
9
|
import datetime # noqa: F401
|
|
10
10
|
from decimal import Decimal # noqa: F401
|
|
11
|
+
import uncountable.types.api.equipment.associate_equipment_input as associate_equipment_input_t
|
|
11
12
|
from uncountable.types import async_batch as async_batch_t
|
|
12
13
|
from uncountable.types import base as base_t
|
|
13
14
|
import uncountable.types.api.recipes.create_recipe as create_recipe_t
|
|
@@ -31,6 +32,41 @@ class AsyncBatchProcessorBase(ABC):
|
|
|
31
32
|
def send(self) -> base_t.ObjectId:
|
|
32
33
|
...
|
|
33
34
|
|
|
35
|
+
def associate_equipment_input(
|
|
36
|
+
self,
|
|
37
|
+
*,
|
|
38
|
+
equipment_key: identifier_t.IdentifierKey,
|
|
39
|
+
material_family_ids: list[base_t.ObjectId],
|
|
40
|
+
depends_on: typing.Optional[list[str]] = None,
|
|
41
|
+
) -> async_batch_t.QueuedAsyncBatchRequest:
|
|
42
|
+
"""Create or return the input association for equipment
|
|
43
|
+
|
|
44
|
+
:param equipment_key: Identifier of the equipment to associate
|
|
45
|
+
:param material_family_ids: The list of material families to add the input to. This must be non-empty
|
|
46
|
+
:param depends_on: A list of batch reference keys to process before processing this request
|
|
47
|
+
"""
|
|
48
|
+
args = associate_equipment_input_t.Arguments(
|
|
49
|
+
equipment_key=equipment_key,
|
|
50
|
+
material_family_ids=material_family_ids,
|
|
51
|
+
)
|
|
52
|
+
json_data = serialize_for_api(args)
|
|
53
|
+
|
|
54
|
+
batch_reference = str(uuid.uuid4())
|
|
55
|
+
|
|
56
|
+
req = async_batch_t.AsyncBatchRequest(
|
|
57
|
+
path=async_batch_t.AsyncBatchRequestPath.ASSOCIATE_EQUIPMENT_INPUT,
|
|
58
|
+
data=json_data,
|
|
59
|
+
depends_on=depends_on,
|
|
60
|
+
batch_reference=batch_reference,
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
self._enqueue(req)
|
|
64
|
+
|
|
65
|
+
return async_batch_t.QueuedAsyncBatchRequest(
|
|
66
|
+
path=req.path,
|
|
67
|
+
batch_reference=req.batch_reference,
|
|
68
|
+
)
|
|
69
|
+
|
|
34
70
|
def create_recipe(
|
|
35
71
|
self,
|
|
36
72
|
*,
|
uncountable/types/base.py
CHANGED
uncountable/types/client_base.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
2
|
# flake8: noqa: F821
|
|
3
|
-
# ruff: noqa: E402
|
|
3
|
+
# ruff: noqa: E402 Q003
|
|
4
4
|
# fmt: off
|
|
5
5
|
# isort: skip_file
|
|
6
6
|
# ruff: noqa: PLR0904
|
|
@@ -11,6 +11,7 @@ from decimal import Decimal # noqa: F401
|
|
|
11
11
|
from pkgs.serialization import OpaqueKey
|
|
12
12
|
import uncountable.types.api.recipes.add_recipe_to_project as add_recipe_to_project_t
|
|
13
13
|
import uncountable.types.api.recipes.archive_recipes as archive_recipes_t
|
|
14
|
+
import uncountable.types.api.equipment.associate_equipment_input as associate_equipment_input_t
|
|
14
15
|
import uncountable.types.api.recipes.associate_recipe_as_input as associate_recipe_as_input_t
|
|
15
16
|
import uncountable.types.api.recipes.associate_recipe_as_lot as associate_recipe_as_lot_t
|
|
16
17
|
from uncountable.types import async_batch as async_batch_t
|
|
@@ -142,6 +143,28 @@ class ClientMethods(ABC):
|
|
|
142
143
|
)
|
|
143
144
|
return self.do_request(api_request=api_request, return_type=archive_recipes_t.Data)
|
|
144
145
|
|
|
146
|
+
def associate_equipment_input(
|
|
147
|
+
self,
|
|
148
|
+
*,
|
|
149
|
+
equipment_key: identifier_t.IdentifierKey,
|
|
150
|
+
material_family_ids: list[base_t.ObjectId],
|
|
151
|
+
) -> associate_equipment_input_t.Data:
|
|
152
|
+
"""Create or return the input association for equipment
|
|
153
|
+
|
|
154
|
+
:param equipment_key: Identifier of the equipment to associate
|
|
155
|
+
:param material_family_ids: The list of material families to add the input to. This must be non-empty
|
|
156
|
+
"""
|
|
157
|
+
args = associate_equipment_input_t.Arguments(
|
|
158
|
+
equipment_key=equipment_key,
|
|
159
|
+
material_family_ids=material_family_ids,
|
|
160
|
+
)
|
|
161
|
+
api_request = APIRequest(
|
|
162
|
+
method=associate_equipment_input_t.ENDPOINT_METHOD,
|
|
163
|
+
endpoint=associate_equipment_input_t.ENDPOINT_PATH,
|
|
164
|
+
args=args,
|
|
165
|
+
)
|
|
166
|
+
return self.do_request(api_request=api_request, return_type=associate_equipment_input_t.Data)
|
|
167
|
+
|
|
145
168
|
def associate_recipe_as_input(
|
|
146
169
|
self,
|
|
147
170
|
*,
|
uncountable/types/curves.py
CHANGED
uncountable/types/entity.py
CHANGED
uncountable/types/fields.py
CHANGED
uncountable/types/id_source.py
CHANGED
uncountable/types/identifier.py
CHANGED
uncountable/types/inputs.py
CHANGED
uncountable/types/outputs.py
CHANGED
uncountable/types/permissions.py
CHANGED
uncountable/types/phases.py
CHANGED
uncountable/types/post_base.py
CHANGED
uncountable/types/recipe_tags.py
CHANGED
uncountable/types/recipes.py
CHANGED
uncountable/types/response.py
CHANGED
uncountable/types/units.py
CHANGED
uncountable/types/users.py
CHANGED
uncountable/types/workflows.py
CHANGED
{UncountablePythonSDK-0.0.38.dist-info → UncountablePythonSDK-0.0.39.dist-info}/top_level.txt
RENAMED
|
File without changes
|