UncountablePythonSDK 0.0.39__py3-none-any.whl → 0.0.40__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.39.dist-info → UncountablePythonSDK-0.0.40.dist-info}/METADATA +1 -1
- UncountablePythonSDK-0.0.40.dist-info/RECORD +222 -0
- {UncountablePythonSDK-0.0.39.dist-info → UncountablePythonSDK-0.0.40.dist-info}/WHEEL +1 -1
- pkgs/type_spec/emit_python.py +40 -7
- pkgs/type_spec/type_info/emit_type_info.py +1 -1
- uncountable/types/__init__.py +29 -29
- uncountable/types/api/batch/execute_batch.py +1 -1
- uncountable/types/api/batch/execute_batch_load_async.py +2 -2
- uncountable/types/api/chemical/convert_chemical_formats.py +1 -1
- uncountable/types/api/entity/create_entities.py +3 -3
- uncountable/types/api/entity/create_entity.py +3 -3
- uncountable/types/api/entity/get_entities_data.py +3 -3
- uncountable/types/api/entity/list_entities.py +2 -2
- uncountable/types/api/entity/lock_entity.py +3 -3
- uncountable/types/api/entity/resolve_entity_ids.py +2 -2
- uncountable/types/api/entity/set_values.py +3 -3
- uncountable/types/api/entity/transition_entity_phase.py +3 -3
- uncountable/types/api/entity/unlock_entity.py +3 -3
- uncountable/types/api/equipment/associate_equipment_input.py +3 -3
- uncountable/types/api/field_options/upsert_field_options.py +1 -1
- uncountable/types/api/id_source/list_id_source.py +2 -2
- uncountable/types/api/id_source/match_id_source.py +2 -2
- uncountable/types/api/input_groups/get_input_group_names.py +1 -1
- uncountable/types/api/inputs/create_inputs.py +3 -3
- uncountable/types/api/inputs/get_input_data.py +2 -2
- uncountable/types/api/inputs/get_input_names.py +1 -1
- uncountable/types/api/inputs/get_inputs_data.py +2 -2
- uncountable/types/api/inputs/set_input_attribute_values.py +2 -2
- uncountable/types/api/inputs/set_input_category.py +2 -2
- uncountable/types/api/inputs/set_input_subcategories.py +3 -3
- uncountable/types/api/inputs/set_intermediate_type.py +1 -1
- uncountable/types/api/material_families/update_entity_material_families.py +5 -5
- uncountable/types/api/outputs/get_output_data.py +2 -2
- 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 +3 -3
- uncountable/types/api/project/get_projects.py +2 -2
- uncountable/types/api/project/get_projects_data.py +4 -4
- uncountable/types/api/recipe_links/create_recipe_link.py +3 -3
- uncountable/types/api/recipe_links/remove_recipe_link.py +3 -3
- 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 +2 -2
- uncountable/types/api/recipes/associate_recipe_as_lot.py +2 -2
- uncountable/types/api/recipes/create_recipe.py +4 -4
- uncountable/types/api/recipes/create_recipes.py +2 -2
- uncountable/types/api/recipes/disassociate_recipe_as_input.py +2 -2
- uncountable/types/api/recipes/edit_recipe_inputs.py +3 -3
- uncountable/types/api/recipes/get_curve.py +2 -2
- uncountable/types/api/recipes/get_recipe_calculations.py +2 -2
- uncountable/types/api/recipes/get_recipe_links.py +2 -2
- uncountable/types/api/recipes/get_recipe_names.py +1 -1
- uncountable/types/api/recipes/get_recipe_output_metadata.py +2 -2
- uncountable/types/api/recipes/get_recipes_data.py +7 -7
- 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 +2 -2
- uncountable/types/api/recipes/set_recipe_output_annotations.py +2 -2
- uncountable/types/api/recipes/set_recipe_outputs.py +3 -3
- uncountable/types/api/recipes/set_recipe_tags.py +2 -2
- 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 +2 -2
- uncountable/types/async_batch.py +5 -53
- uncountable/types/async_batch_processor.py +6 -6
- uncountable/types/async_batch_t.py +59 -0
- uncountable/types/base.py +4 -78
- uncountable/types/base_t.py +85 -0
- uncountable/types/calculations.py +2 -17
- uncountable/types/calculations_t.py +23 -0
- uncountable/types/chemical_structure.py +2 -21
- uncountable/types/chemical_structure_t.py +27 -0
- uncountable/types/client_base.py +12 -12
- uncountable/types/curves.py +4 -41
- uncountable/types/curves_t.py +47 -0
- uncountable/types/entity.py +3 -268
- uncountable/types/entity_t.py +274 -0
- uncountable/types/experiment_groups.py +2 -17
- uncountable/types/experiment_groups_t.py +23 -0
- uncountable/types/field_values.py +5 -59
- uncountable/types/field_values_t.py +65 -0
- uncountable/types/fields.py +2 -18
- uncountable/types/fields_t.py +24 -0
- uncountable/types/id_source.py +6 -43
- uncountable/types/id_source_t.py +49 -0
- uncountable/types/identifier.py +5 -48
- uncountable/types/identifier_t.py +54 -0
- uncountable/types/input_attributes.py +2 -23
- uncountable/types/input_attributes_t.py +29 -0
- uncountable/types/inputs.py +4 -56
- uncountable/types/inputs_t.py +62 -0
- uncountable/types/outputs.py +2 -20
- uncountable/types/outputs_t.py +26 -0
- uncountable/types/permissions.py +2 -40
- uncountable/types/permissions_t.py +46 -0
- uncountable/types/phases.py +2 -17
- uncountable/types/phases_t.py +23 -0
- uncountable/types/post_base.py +2 -24
- uncountable/types/post_base_t.py +30 -0
- uncountable/types/recipe_identifiers.py +6 -56
- uncountable/types/recipe_identifiers_t.py +62 -0
- uncountable/types/recipe_inputs.py +3 -24
- uncountable/types/recipe_inputs_t.py +30 -0
- uncountable/types/recipe_links.py +3 -44
- uncountable/types/recipe_links_t.py +50 -0
- uncountable/types/recipe_metadata.py +4 -46
- uncountable/types/recipe_metadata_t.py +52 -0
- uncountable/types/recipe_output_metadata.py +2 -18
- uncountable/types/recipe_output_metadata_t.py +24 -0
- uncountable/types/recipe_tags.py +2 -17
- uncountable/types/recipe_tags_t.py +23 -0
- uncountable/types/recipe_workflow_steps.py +8 -82
- uncountable/types/recipe_workflow_steps_t.py +88 -0
- uncountable/types/recipes.py +2 -15
- uncountable/types/recipes_t.py +21 -0
- uncountable/types/response.py +2 -19
- uncountable/types/response_t.py +25 -0
- uncountable/types/units.py +2 -17
- uncountable/types/units_t.py +23 -0
- uncountable/types/users.py +2 -18
- uncountable/types/users_t.py +24 -0
- uncountable/types/workflows.py +3 -26
- uncountable/types/workflows_t.py +32 -0
- UncountablePythonSDK-0.0.39.dist-info/RECORD +0 -193
- {UncountablePythonSDK-0.0.39.dist-info → UncountablePythonSDK-0.0.40.dist-info}/top_level.txt +0 -0
uncountable/types/phases.py
CHANGED
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
1
|
# flake8: noqa: F821
|
|
3
2
|
# ruff: noqa: E402 Q003
|
|
4
3
|
# fmt: off
|
|
5
4
|
# 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 base as base_t
|
|
12
|
-
|
|
13
|
-
__all__: list[str] = [
|
|
14
|
-
"Phase",
|
|
15
|
-
]
|
|
16
|
-
|
|
17
|
-
|
|
18
5
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
id: base_t.ObjectId
|
|
22
|
-
name: str
|
|
6
|
+
# Kept only for SDK backwards compatibility
|
|
7
|
+
from .phases_t import Phase as Phase
|
|
23
8
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
|
+
# flake8: noqa: F821
|
|
3
|
+
# ruff: noqa: E402 Q003
|
|
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 base_t
|
|
12
|
+
|
|
13
|
+
__all__: list[str] = [
|
|
14
|
+
"Phase",
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
19
|
+
@dataclass(kw_only=True)
|
|
20
|
+
class Phase:
|
|
21
|
+
id: base_t.ObjectId
|
|
22
|
+
name: str
|
|
23
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
uncountable/types/post_base.py
CHANGED
|
@@ -1,30 +1,8 @@
|
|
|
1
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
1
|
# flake8: noqa: F821
|
|
3
2
|
# ruff: noqa: E402 Q003
|
|
4
3
|
# fmt: off
|
|
5
4
|
# 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 pkgs.strenum_compat import StrEnum
|
|
11
|
-
from pkgs.serialization import serial_string_enum
|
|
12
|
-
|
|
13
|
-
__all__: list[str] = [
|
|
14
|
-
"UpdateType",
|
|
15
|
-
]
|
|
16
|
-
|
|
17
|
-
|
|
18
5
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"append": "Append values",
|
|
22
|
-
"override": "Wipe existing and replace",
|
|
23
|
-
"remove": "Remove values",
|
|
24
|
-
},
|
|
25
|
-
)
|
|
26
|
-
class UpdateType(StrEnum):
|
|
27
|
-
APPEND = "append"
|
|
28
|
-
OVERRIDE = "override"
|
|
29
|
-
REMOVE = "remove"
|
|
6
|
+
# Kept only for SDK backwards compatibility
|
|
7
|
+
from .post_base_t import UpdateType as UpdateType
|
|
30
8
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
|
+
# flake8: noqa: F821
|
|
3
|
+
# ruff: noqa: E402 Q003
|
|
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 pkgs.strenum_compat import StrEnum
|
|
11
|
+
from pkgs.serialization import serial_string_enum
|
|
12
|
+
|
|
13
|
+
__all__: list[str] = [
|
|
14
|
+
"UpdateType",
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
19
|
+
@serial_string_enum(
|
|
20
|
+
labels={
|
|
21
|
+
"append": "Append values",
|
|
22
|
+
"override": "Wipe existing and replace",
|
|
23
|
+
"remove": "Remove values",
|
|
24
|
+
},
|
|
25
|
+
)
|
|
26
|
+
class UpdateType(StrEnum):
|
|
27
|
+
APPEND = "append"
|
|
28
|
+
OVERRIDE = "override"
|
|
29
|
+
REMOVE = "remove"
|
|
30
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -1,62 +1,12 @@
|
|
|
1
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
1
|
# flake8: noqa: F821
|
|
3
2
|
# ruff: noqa: E402 Q003
|
|
4
3
|
# fmt: off
|
|
5
4
|
# 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 pkgs.serialization import serial_class
|
|
12
|
-
from . import base as base_t
|
|
13
|
-
|
|
14
|
-
__all__: list[str] = [
|
|
15
|
-
"RecipeIdentifier",
|
|
16
|
-
"RecipeIdentifierEditableName",
|
|
17
|
-
"RecipeIdentifierMaterialFamily",
|
|
18
|
-
"RecipeIdentifierMetadata",
|
|
19
|
-
"RecipeIdentifiers",
|
|
20
|
-
]
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
24
|
-
@serial_class(
|
|
25
|
-
parse_require={"type"},
|
|
26
|
-
)
|
|
27
|
-
@dataclass(kw_only=True)
|
|
28
|
-
class RecipeIdentifierEditableName:
|
|
29
|
-
type: typing.Literal["name"] = "name"
|
|
30
|
-
editable_name: str
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
34
|
-
@serial_class(
|
|
35
|
-
to_string_values={"quantity_dec"},
|
|
36
|
-
parse_require={"type"},
|
|
37
|
-
)
|
|
38
|
-
@dataclass(kw_only=True)
|
|
39
|
-
class RecipeIdentifierMetadata:
|
|
40
|
-
type: typing.Literal["metadata"] = "metadata"
|
|
41
|
-
recipe_metadata_id: base_t.ObjectId
|
|
42
|
-
quantity_dec: typing.Optional[Decimal] = None
|
|
43
|
-
quantity_json: typing.Optional[str] = None
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
47
|
-
@serial_class(
|
|
48
|
-
parse_require={"type"},
|
|
49
|
-
)
|
|
50
|
-
@dataclass(kw_only=True)
|
|
51
|
-
class RecipeIdentifierMaterialFamily:
|
|
52
|
-
type: typing.Literal["material_family_id"] = "material_family_id"
|
|
53
|
-
material_family_id: base_t.ObjectId
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
57
|
-
RecipeIdentifier = typing.Union[RecipeIdentifierEditableName, RecipeIdentifierMetadata, RecipeIdentifierMaterialFamily]
|
|
58
|
-
|
|
59
|
-
|
|
60
5
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
61
|
-
|
|
6
|
+
# Kept only for SDK backwards compatibility
|
|
7
|
+
from .recipe_identifiers_t import RecipeIdentifierEditableName as RecipeIdentifierEditableName
|
|
8
|
+
from .recipe_identifiers_t import RecipeIdentifierMetadata as RecipeIdentifierMetadata
|
|
9
|
+
from .recipe_identifiers_t import RecipeIdentifierMaterialFamily as RecipeIdentifierMaterialFamily
|
|
10
|
+
from .recipe_identifiers_t import RecipeIdentifier as RecipeIdentifier
|
|
11
|
+
from .recipe_identifiers_t import RecipeIdentifiers as RecipeIdentifiers
|
|
62
12
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
|
+
# flake8: noqa: F821
|
|
3
|
+
# ruff: noqa: E402 Q003
|
|
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 pkgs.serialization import serial_class
|
|
12
|
+
from . import base_t
|
|
13
|
+
|
|
14
|
+
__all__: list[str] = [
|
|
15
|
+
"RecipeIdentifier",
|
|
16
|
+
"RecipeIdentifierEditableName",
|
|
17
|
+
"RecipeIdentifierMaterialFamily",
|
|
18
|
+
"RecipeIdentifierMetadata",
|
|
19
|
+
"RecipeIdentifiers",
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
24
|
+
@serial_class(
|
|
25
|
+
parse_require={"type"},
|
|
26
|
+
)
|
|
27
|
+
@dataclass(kw_only=True)
|
|
28
|
+
class RecipeIdentifierEditableName:
|
|
29
|
+
type: typing.Literal["name"] = "name"
|
|
30
|
+
editable_name: str
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
34
|
+
@serial_class(
|
|
35
|
+
to_string_values={"quantity_dec"},
|
|
36
|
+
parse_require={"type"},
|
|
37
|
+
)
|
|
38
|
+
@dataclass(kw_only=True)
|
|
39
|
+
class RecipeIdentifierMetadata:
|
|
40
|
+
type: typing.Literal["metadata"] = "metadata"
|
|
41
|
+
recipe_metadata_id: base_t.ObjectId
|
|
42
|
+
quantity_dec: typing.Optional[Decimal] = None
|
|
43
|
+
quantity_json: typing.Optional[str] = None
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
47
|
+
@serial_class(
|
|
48
|
+
parse_require={"type"},
|
|
49
|
+
)
|
|
50
|
+
@dataclass(kw_only=True)
|
|
51
|
+
class RecipeIdentifierMaterialFamily:
|
|
52
|
+
type: typing.Literal["material_family_id"] = "material_family_id"
|
|
53
|
+
material_family_id: base_t.ObjectId
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
57
|
+
RecipeIdentifier = typing.Union[RecipeIdentifierEditableName, RecipeIdentifierMetadata, RecipeIdentifierMaterialFamily]
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
61
|
+
RecipeIdentifiers = list[RecipeIdentifier]
|
|
62
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -1,30 +1,9 @@
|
|
|
1
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
1
|
# flake8: noqa: F821
|
|
3
2
|
# ruff: noqa: E402 Q003
|
|
4
3
|
# fmt: off
|
|
5
4
|
# 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 pkgs.strenum_compat import StrEnum
|
|
11
|
-
|
|
12
|
-
__all__: list[str] = [
|
|
13
|
-
"InputValueType",
|
|
14
|
-
"QuantityBasis",
|
|
15
|
-
]
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
19
|
-
class InputValueType(StrEnum):
|
|
20
|
-
VALUE = "value"
|
|
21
|
-
ACTUAL_VALUE = "actual_value"
|
|
22
|
-
|
|
23
|
-
|
|
24
5
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
MOLES = "moles"
|
|
29
|
-
VOLUME = "volume"
|
|
6
|
+
# Kept only for SDK backwards compatibility
|
|
7
|
+
from .recipe_inputs_t import InputValueType as InputValueType
|
|
8
|
+
from .recipe_inputs_t import QuantityBasis as QuantityBasis
|
|
30
9
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
|
+
# flake8: noqa: F821
|
|
3
|
+
# ruff: noqa: E402 Q003
|
|
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 pkgs.strenum_compat import StrEnum
|
|
11
|
+
|
|
12
|
+
__all__: list[str] = [
|
|
13
|
+
"InputValueType",
|
|
14
|
+
"QuantityBasis",
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
19
|
+
class InputValueType(StrEnum):
|
|
20
|
+
VALUE = "value"
|
|
21
|
+
ACTUAL_VALUE = "actual_value"
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
25
|
+
class QuantityBasis(StrEnum):
|
|
26
|
+
ARBITRARY = "arbitrary"
|
|
27
|
+
MASS = "mass"
|
|
28
|
+
MOLES = "moles"
|
|
29
|
+
VOLUME = "volume"
|
|
30
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -1,50 +1,9 @@
|
|
|
1
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
1
|
# flake8: noqa: F821
|
|
3
2
|
# ruff: noqa: E402 Q003
|
|
4
3
|
# fmt: off
|
|
5
4
|
# 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 pkgs.strenum_compat import StrEnum
|
|
11
|
-
from dataclasses import dataclass
|
|
12
|
-
from pkgs.serialization import serial_string_enum
|
|
13
|
-
from . import base as base_t
|
|
14
|
-
|
|
15
|
-
__all__: list[str] = [
|
|
16
|
-
"RecipeLink",
|
|
17
|
-
"RecipeLinkType",
|
|
18
|
-
]
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
22
|
-
@serial_string_enum(
|
|
23
|
-
labels={
|
|
24
|
-
"user_link": "Manual Link",
|
|
25
|
-
"child": "Test Sample",
|
|
26
|
-
"self": "Self Link",
|
|
27
|
-
"recipe_as_output": "Analytical Sample",
|
|
28
|
-
"control": "Control Link",
|
|
29
|
-
"intermediate_recipe": "Used as Component Link",
|
|
30
|
-
"previous_experiment": "Previous Sample",
|
|
31
|
-
},
|
|
32
|
-
)
|
|
33
|
-
class RecipeLinkType(StrEnum):
|
|
34
|
-
USER_LINK = "user_link"
|
|
35
|
-
CHILD = "child"
|
|
36
|
-
SELF = "self"
|
|
37
|
-
RECIPE_AS_OUTPUT = "recipe_as_output"
|
|
38
|
-
CONTROL = "control"
|
|
39
|
-
INTERMEDIATE_RECIPE = "intermediate_recipe"
|
|
40
|
-
PREVIOUS_EXPERIMENT = "previous_experiment"
|
|
41
|
-
|
|
42
|
-
|
|
43
5
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
recipe_id_to: base_t.ObjectId
|
|
48
|
-
link_type: str
|
|
49
|
-
name: str
|
|
6
|
+
# Kept only for SDK backwards compatibility
|
|
7
|
+
from .recipe_links_t import RecipeLinkType as RecipeLinkType
|
|
8
|
+
from .recipe_links_t import RecipeLink as RecipeLink
|
|
50
9
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
|
+
# flake8: noqa: F821
|
|
3
|
+
# ruff: noqa: E402 Q003
|
|
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 pkgs.strenum_compat import StrEnum
|
|
11
|
+
from dataclasses import dataclass
|
|
12
|
+
from pkgs.serialization import serial_string_enum
|
|
13
|
+
from . import base_t
|
|
14
|
+
|
|
15
|
+
__all__: list[str] = [
|
|
16
|
+
"RecipeLink",
|
|
17
|
+
"RecipeLinkType",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
22
|
+
@serial_string_enum(
|
|
23
|
+
labels={
|
|
24
|
+
"user_link": "Manual Link",
|
|
25
|
+
"child": "Test Sample",
|
|
26
|
+
"self": "Self Link",
|
|
27
|
+
"recipe_as_output": "Analytical Sample",
|
|
28
|
+
"control": "Control Link",
|
|
29
|
+
"intermediate_recipe": "Used as Component Link",
|
|
30
|
+
"previous_experiment": "Previous Sample",
|
|
31
|
+
},
|
|
32
|
+
)
|
|
33
|
+
class RecipeLinkType(StrEnum):
|
|
34
|
+
USER_LINK = "user_link"
|
|
35
|
+
CHILD = "child"
|
|
36
|
+
SELF = "self"
|
|
37
|
+
RECIPE_AS_OUTPUT = "recipe_as_output"
|
|
38
|
+
CONTROL = "control"
|
|
39
|
+
INTERMEDIATE_RECIPE = "intermediate_recipe"
|
|
40
|
+
PREVIOUS_EXPERIMENT = "previous_experiment"
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
44
|
+
@dataclass(kw_only=True, frozen=True, eq=True)
|
|
45
|
+
class RecipeLink:
|
|
46
|
+
recipe_id_from: base_t.ObjectId
|
|
47
|
+
recipe_id_to: base_t.ObjectId
|
|
48
|
+
link_type: str
|
|
49
|
+
name: str
|
|
50
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -1,52 +1,10 @@
|
|
|
1
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
1
|
# flake8: noqa: F821
|
|
3
2
|
# ruff: noqa: E402 Q003
|
|
4
3
|
# fmt: off
|
|
5
4
|
# 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 pkgs.serialization import serial_class
|
|
12
|
-
from . import base as base_t
|
|
13
|
-
|
|
14
|
-
__all__: list[str] = [
|
|
15
|
-
"MetadataValue",
|
|
16
|
-
"RecipeMetadata",
|
|
17
|
-
"SimpleRecipeMetadataField",
|
|
18
|
-
]
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
22
|
-
@serial_class(
|
|
23
|
-
unconverted_values={"value_json"},
|
|
24
|
-
to_string_values={"value_numeric"},
|
|
25
|
-
)
|
|
26
|
-
@dataclass(kw_only=True)
|
|
27
|
-
class MetadataValue:
|
|
28
|
-
metadata_id: base_t.ObjectId
|
|
29
|
-
value_numeric: typing.Optional[Decimal] = None
|
|
30
|
-
value_str: typing.Optional[str] = None
|
|
31
|
-
value_json: typing.Optional[base_t.JsonValue] = None
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
35
|
-
@dataclass(kw_only=True)
|
|
36
|
-
class SimpleRecipeMetadataField:
|
|
37
|
-
metadata_id: base_t.ObjectId
|
|
38
|
-
name: str
|
|
39
|
-
quantity_type: str
|
|
40
|
-
|
|
41
|
-
|
|
42
5
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
@dataclass(kw_only=True)
|
|
48
|
-
class RecipeMetadata:
|
|
49
|
-
metadata_id: base_t.ObjectId
|
|
50
|
-
quantity_dec: typing.Optional[Decimal] = None
|
|
51
|
-
quantity_json: typing.Optional[base_t.JsonValue] = None
|
|
6
|
+
# Kept only for SDK backwards compatibility
|
|
7
|
+
from .recipe_metadata_t import MetadataValue as MetadataValue
|
|
8
|
+
from .recipe_metadata_t import SimpleRecipeMetadataField as SimpleRecipeMetadataField
|
|
9
|
+
from .recipe_metadata_t import RecipeMetadata as RecipeMetadata
|
|
52
10
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
|
+
# flake8: noqa: F821
|
|
3
|
+
# ruff: noqa: E402 Q003
|
|
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 pkgs.serialization import serial_class
|
|
12
|
+
from . import base_t
|
|
13
|
+
|
|
14
|
+
__all__: list[str] = [
|
|
15
|
+
"MetadataValue",
|
|
16
|
+
"RecipeMetadata",
|
|
17
|
+
"SimpleRecipeMetadataField",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
22
|
+
@serial_class(
|
|
23
|
+
unconverted_values={"value_json"},
|
|
24
|
+
to_string_values={"value_numeric"},
|
|
25
|
+
)
|
|
26
|
+
@dataclass(kw_only=True)
|
|
27
|
+
class MetadataValue:
|
|
28
|
+
metadata_id: base_t.ObjectId
|
|
29
|
+
value_numeric: typing.Optional[Decimal] = None
|
|
30
|
+
value_str: typing.Optional[str] = None
|
|
31
|
+
value_json: typing.Optional[base_t.JsonValue] = None
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
35
|
+
@dataclass(kw_only=True)
|
|
36
|
+
class SimpleRecipeMetadataField:
|
|
37
|
+
metadata_id: base_t.ObjectId
|
|
38
|
+
name: str
|
|
39
|
+
quantity_type: str
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
43
|
+
@serial_class(
|
|
44
|
+
unconverted_values={"quantity_json"},
|
|
45
|
+
to_string_values={"quantity_dec"},
|
|
46
|
+
)
|
|
47
|
+
@dataclass(kw_only=True)
|
|
48
|
+
class RecipeMetadata:
|
|
49
|
+
metadata_id: base_t.ObjectId
|
|
50
|
+
quantity_dec: typing.Optional[Decimal] = None
|
|
51
|
+
quantity_json: typing.Optional[base_t.JsonValue] = None
|
|
52
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
1
|
# flake8: noqa: F821
|
|
3
2
|
# ruff: noqa: E402 Q003
|
|
4
3
|
# fmt: off
|
|
5
4
|
# 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 base as base_t
|
|
12
|
-
|
|
13
|
-
__all__: list[str] = [
|
|
14
|
-
"RecipeOutputMetadataField",
|
|
15
|
-
]
|
|
16
|
-
|
|
17
|
-
|
|
18
5
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
id: base_t.ObjectId
|
|
22
|
-
name: str
|
|
23
|
-
quantity_type: str
|
|
6
|
+
# Kept only for SDK backwards compatibility
|
|
7
|
+
from .recipe_output_metadata_t import RecipeOutputMetadataField as RecipeOutputMetadataField
|
|
24
8
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
|
+
# flake8: noqa: F821
|
|
3
|
+
# ruff: noqa: E402 Q003
|
|
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 base_t
|
|
12
|
+
|
|
13
|
+
__all__: list[str] = [
|
|
14
|
+
"RecipeOutputMetadataField",
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
19
|
+
@dataclass(kw_only=True)
|
|
20
|
+
class RecipeOutputMetadataField:
|
|
21
|
+
id: base_t.ObjectId
|
|
22
|
+
name: str
|
|
23
|
+
quantity_type: str
|
|
24
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
uncountable/types/recipe_tags.py
CHANGED
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
1
|
# flake8: noqa: F821
|
|
3
2
|
# ruff: noqa: E402 Q003
|
|
4
3
|
# fmt: off
|
|
5
4
|
# 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 base as base_t
|
|
12
|
-
|
|
13
|
-
__all__: list[str] = [
|
|
14
|
-
"SimpleRecipeTag",
|
|
15
|
-
]
|
|
16
|
-
|
|
17
|
-
|
|
18
5
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
recipe_tag_id: base_t.ObjectId
|
|
22
|
-
name: str
|
|
6
|
+
# Kept only for SDK backwards compatibility
|
|
7
|
+
from .recipe_tags_t import SimpleRecipeTag as SimpleRecipeTag
|
|
23
8
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
2
|
+
# flake8: noqa: F821
|
|
3
|
+
# ruff: noqa: E402 Q003
|
|
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 base_t
|
|
12
|
+
|
|
13
|
+
__all__: list[str] = [
|
|
14
|
+
"SimpleRecipeTag",
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
19
|
+
@dataclass(kw_only=True)
|
|
20
|
+
class SimpleRecipeTag:
|
|
21
|
+
recipe_tag_id: base_t.ObjectId
|
|
22
|
+
name: str
|
|
23
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|