UncountablePythonSDK 0.0.46__py3-none-any.whl → 0.0.47__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.46.dist-info → UncountablePythonSDK-0.0.47.dist-info}/METADATA +1 -1
- {UncountablePythonSDK-0.0.46.dist-info → UncountablePythonSDK-0.0.47.dist-info}/RECORD +9 -9
- examples/edit_recipe_inputs.py +3 -0
- uncountable/types/api/entity/create_entities.py +1 -1
- uncountable/types/api/entity/create_entity.py +1 -1
- uncountable/types/api/recipes/edit_recipe_inputs.py +14 -1
- uncountable/types/client_base.py +2 -2
- {UncountablePythonSDK-0.0.46.dist-info → UncountablePythonSDK-0.0.47.dist-info}/WHEEL +0 -0
- {UncountablePythonSDK-0.0.46.dist-info → UncountablePythonSDK-0.0.47.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: UncountablePythonSDK
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.47
|
|
4
4
|
Summary: Uncountable SDK
|
|
5
5
|
Project-URL: Homepage, https://github.com/uncountableinc/uncountable-python-sdk
|
|
6
6
|
Project-URL: Repository, https://github.com/uncountableinc/uncountable-python-sdk.git
|
|
@@ -16,7 +16,7 @@ docs/static/favicons/mstile-150x150.png,sha256=eAK4QdEofhdLtfmjuPTpnX3MJqYnvGXsH
|
|
|
16
16
|
docs/static/favicons/safari-pinned-tab.svg,sha256=S84fRnz0ZxLnQrKtmmFZytiRyu1xLtMR_RVy5jmwU7k,1926
|
|
17
17
|
examples/async_batch.py,sha256=CffQ8O9drJ-Mdd6S5DnMIOBsHv5aVkTZrD3l3xBnB4s,1094
|
|
18
18
|
examples/create_entity.py,sha256=noZdtJ5f9Wfiob3zUH-8bDVbrCPJnFtXFk_W9pSjvUA,664
|
|
19
|
-
examples/edit_recipe_inputs.py,sha256=
|
|
19
|
+
examples/edit_recipe_inputs.py,sha256=SFHhccktlpWlz4ujh30KZ-hZTFneRWuEp9b3nJSbNn8,1647
|
|
20
20
|
examples/invoke_uploader.py,sha256=NOHsvObRGLrOYaSKtwk1xkhsdLEdbUmrseUX6JzC4Q0,635
|
|
21
21
|
examples/upload_files.py,sha256=tUfKFqiqwnw08OL5Y8_e4j5pSRhp94cFex8XTuVa_ig,487
|
|
22
22
|
pkgs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -100,7 +100,7 @@ uncountable/types/calculations.py,sha256=FFO_D3BbKoGDZnqWvTKpW4KF359i2vrKjpdFCLY
|
|
|
100
100
|
uncountable/types/calculations_t.py,sha256=7GTSi2L8NYjzjUJJx3cmtVkK9uD-uhfYvIFK-ffQj-8,556
|
|
101
101
|
uncountable/types/chemical_structure.py,sha256=E-LnikTFDoVQ1b2zKaVUIO_PAKm-7aZZYJi8I8SDSic,302
|
|
102
102
|
uncountable/types/chemical_structure_t.py,sha256=aFsTkkbzy6Gvyde3qrrEYD95gcYhxkgKMiDRaRE0o-Y,760
|
|
103
|
-
uncountable/types/client_base.py,sha256=
|
|
103
|
+
uncountable/types/client_base.py,sha256=foD_tf3-FniOHIDO7AdPpPr5FdIDhUNVceXlyo-pA2M,65257
|
|
104
104
|
uncountable/types/client_config.py,sha256=4h5Liko9uKCo9_0gdbPhoK6Jr2Kv7tioLiQ8iKeq-_4,301
|
|
105
105
|
uncountable/types/client_config_t.py,sha256=_HdS37gMSTIiD4qLnW9dIgt8_Rt5A6xhwMGGga7vnLg,625
|
|
106
106
|
uncountable/types/curves.py,sha256=W6uMpG5SyW1MS82szNpxkFEn1MnxNpBFyFbQb2Ysfng,366
|
|
@@ -166,8 +166,8 @@ uncountable/types/api/batch/execute_batch_load_async.py,sha256=3ptjtokj7eZ_A7OUX
|
|
|
166
166
|
uncountable/types/api/chemical/__init__.py,sha256=gCgbynxG3jA8FQHzercKtrHKHkiIKr8APdZYUniAor8,55
|
|
167
167
|
uncountable/types/api/chemical/convert_chemical_formats.py,sha256=-FKBOcg1jteFu920NM-0lBk90pfucpcg2WAsaddfDc8,1323
|
|
168
168
|
uncountable/types/api/entity/__init__.py,sha256=gCgbynxG3jA8FQHzercKtrHKHkiIKr8APdZYUniAor8,55
|
|
169
|
-
uncountable/types/api/entity/create_entities.py,sha256=
|
|
170
|
-
uncountable/types/api/entity/create_entity.py,sha256=
|
|
169
|
+
uncountable/types/api/entity/create_entities.py,sha256=wYxj0Dsi6nRy94qzTUkZYWHkFFpTC8Gt2sHOuwCosVs,1738
|
|
170
|
+
uncountable/types/api/entity/create_entity.py,sha256=pqN0VNcWlaHFxOtuPUjE2DsONVDYCkq-gUEAV3R0Ds0,1908
|
|
171
171
|
uncountable/types/api/entity/get_entities_data.py,sha256=_dyDJ8Aukeijj2U3ZEQYNECoI3TC4phn8RhgJQP1e1s,1162
|
|
172
172
|
uncountable/types/api/entity/list_entities.py,sha256=93J8jbHOdBL7Ee2_z_M57JpIVsmI2RddDMpprTakYks,1717
|
|
173
173
|
uncountable/types/api/entity/lock_entity.py,sha256=twQ-f61AKS_NrKP-TzqHkMmzTJGMc4yxZFl-2JctOg4,1004
|
|
@@ -217,7 +217,7 @@ uncountable/types/api/recipes/associate_recipe_as_lot.py,sha256=iwRDSje33GaDpOVh
|
|
|
217
217
|
uncountable/types/api/recipes/create_recipe.py,sha256=-ybqIZ3LH5018g0fQ07XWq9L6OL3qkiYkXnH02kxnL0,1371
|
|
218
218
|
uncountable/types/api/recipes/create_recipes.py,sha256=Cr7hXRAMnFeBNxOBv7_j-K5nkaC67cu3vFLqMBH3yVc,1555
|
|
219
219
|
uncountable/types/api/recipes/disassociate_recipe_as_input.py,sha256=EreRtLP4o29RazwbM5qb1PJZqLf4Ii8xJ9NT7ciKfKo,898
|
|
220
|
-
uncountable/types/api/recipes/edit_recipe_inputs.py,sha256=
|
|
220
|
+
uncountable/types/api/recipes/edit_recipe_inputs.py,sha256=5bq3zQopq3ShSn1wMU4WHjUfkxdT1wQDXe9UFUgp9Uc,6077
|
|
221
221
|
uncountable/types/api/recipes/get_curve.py,sha256=GVNgTm0_toTR9530kEa1qSojsck_xi_nkwakMo588YQ,935
|
|
222
222
|
uncountable/types/api/recipes/get_recipe_calculations.py,sha256=Hq9hmIUBdZ5KRb9FrniaK5khH4KNSOT8vX2oD9h1J-o,1474
|
|
223
223
|
uncountable/types/api/recipes/get_recipe_links.py,sha256=zD4dEIQVAV5wv0NirBldwMEROgvOf7mXT-pWlaSiuN4,975
|
|
@@ -237,7 +237,7 @@ uncountable/types/api/triggers/__init__.py,sha256=gCgbynxG3jA8FQHzercKtrHKHkiIKr
|
|
|
237
237
|
uncountable/types/api/triggers/run_trigger.py,sha256=_Rpha9nxXI3Xr17CrGDtofg4HZ81x2lt0rMZ6As0qfE,893
|
|
238
238
|
uncountable/types/api/uploader/__init__.py,sha256=gCgbynxG3jA8FQHzercKtrHKHkiIKr8APdZYUniAor8,55
|
|
239
239
|
uncountable/types/api/uploader/invoke_uploader.py,sha256=2RCvnccwEm6J5dt7UJVLUKxfk49vfpGXjBLCWIBD3Ck,1006
|
|
240
|
-
UncountablePythonSDK-0.0.
|
|
241
|
-
UncountablePythonSDK-0.0.
|
|
242
|
-
UncountablePythonSDK-0.0.
|
|
243
|
-
UncountablePythonSDK-0.0.
|
|
240
|
+
UncountablePythonSDK-0.0.47.dist-info/METADATA,sha256=GNA-6K_SnpEbHAp-TfhxvSwjxMjceKun1_M3twl0aW8,1707
|
|
241
|
+
UncountablePythonSDK-0.0.47.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
|
|
242
|
+
UncountablePythonSDK-0.0.47.dist-info/top_level.txt,sha256=1UVGjAU-6hJY9qw2iJ7nCBeEwZ793AEN5ZfKX9A1uj4,31
|
|
243
|
+
UncountablePythonSDK-0.0.47.dist-info/RECORD,,
|
examples/edit_recipe_inputs.py
CHANGED
|
@@ -37,6 +37,9 @@ edits.append(
|
|
|
37
37
|
quantity_basis=QuantityBasis.VOLUME, ingredient_key=IdentifierKeyId(id=1)
|
|
38
38
|
)
|
|
39
39
|
)
|
|
40
|
+
edits.append(
|
|
41
|
+
edit_recipe_inputs_t.RecipeInputEditAddInstructions(instructions="Mix for 3 minutes")
|
|
42
|
+
)
|
|
40
43
|
batch_loader.edit_recipe_inputs(
|
|
41
44
|
recipe_key=IdentifierKeyBatchReference(reference=created_recipe_reference),
|
|
42
45
|
edits=edits,
|
|
@@ -34,7 +34,7 @@ class EntityToCreate:
|
|
|
34
34
|
@dataclasses.dataclass(kw_only=True)
|
|
35
35
|
class Arguments:
|
|
36
36
|
definition_id: base_t.ObjectId
|
|
37
|
-
entity_type: typing.Union[typing.Literal[entity_t.EntityType.LAB_REQUEST], typing.Literal[entity_t.EntityType.APPROVAL], typing.Literal[entity_t.EntityType.CUSTOM_ENTITY], typing.Literal[entity_t.EntityType.INVENTORY_AMOUNT], typing.Literal[entity_t.EntityType.TASK], typing.Literal[entity_t.EntityType.PROJECT], typing.Literal[entity_t.EntityType.EQUIPMENT], typing.Literal[entity_t.EntityType.INV_LOCAL_LOCATIONS], typing.Literal[entity_t.EntityType.FIELD_OPTION_SET], typing.Literal[entity_t.EntityType.WEBHOOK]]
|
|
37
|
+
entity_type: typing.Union[typing.Literal[entity_t.EntityType.LAB_REQUEST], typing.Literal[entity_t.EntityType.APPROVAL], typing.Literal[entity_t.EntityType.CUSTOM_ENTITY], typing.Literal[entity_t.EntityType.INVENTORY_AMOUNT], typing.Literal[entity_t.EntityType.TASK], typing.Literal[entity_t.EntityType.PROJECT], typing.Literal[entity_t.EntityType.EQUIPMENT], typing.Literal[entity_t.EntityType.INV_LOCAL_LOCATIONS], typing.Literal[entity_t.EntityType.FIELD_OPTION_SET], typing.Literal[entity_t.EntityType.WEBHOOK], typing.Literal[entity_t.EntityType.SPECS]]
|
|
38
38
|
entities_to_create: list[EntityToCreate]
|
|
39
39
|
|
|
40
40
|
|
|
@@ -40,7 +40,7 @@ class EntityFieldInitialValue:
|
|
|
40
40
|
@dataclasses.dataclass(kw_only=True)
|
|
41
41
|
class Arguments:
|
|
42
42
|
definition_id: base_t.ObjectId
|
|
43
|
-
entity_type: typing.Union[typing.Literal[entity_t.EntityType.LAB_REQUEST], typing.Literal[entity_t.EntityType.APPROVAL], typing.Literal[entity_t.EntityType.CUSTOM_ENTITY], typing.Literal[entity_t.EntityType.INVENTORY_AMOUNT], typing.Literal[entity_t.EntityType.TASK], typing.Literal[entity_t.EntityType.PROJECT], typing.Literal[entity_t.EntityType.EQUIPMENT], typing.Literal[entity_t.EntityType.INV_LOCAL_LOCATIONS], typing.Literal[entity_t.EntityType.FIELD_OPTION_SET], typing.Literal[entity_t.EntityType.WEBHOOK]]
|
|
43
|
+
entity_type: typing.Union[typing.Literal[entity_t.EntityType.LAB_REQUEST], typing.Literal[entity_t.EntityType.APPROVAL], typing.Literal[entity_t.EntityType.CUSTOM_ENTITY], typing.Literal[entity_t.EntityType.INVENTORY_AMOUNT], typing.Literal[entity_t.EntityType.TASK], typing.Literal[entity_t.EntityType.PROJECT], typing.Literal[entity_t.EntityType.EQUIPMENT], typing.Literal[entity_t.EntityType.INV_LOCAL_LOCATIONS], typing.Literal[entity_t.EntityType.FIELD_OPTION_SET], typing.Literal[entity_t.EntityType.WEBHOOK], typing.Literal[entity_t.EntityType.SPECS]]
|
|
44
44
|
field_values: typing.Optional[typing.Optional[list[field_values_t.FieldRefNameValue]]] = None
|
|
45
45
|
|
|
46
46
|
|
|
@@ -23,6 +23,7 @@ __all__: list[str] = [
|
|
|
23
23
|
"ENDPOINT_PATH",
|
|
24
24
|
"RecipeInputEdit",
|
|
25
25
|
"RecipeInputEditAddInput",
|
|
26
|
+
"RecipeInputEditAddInstructions",
|
|
26
27
|
"RecipeInputEditBase",
|
|
27
28
|
"RecipeInputEditChangeBasisViewed",
|
|
28
29
|
"RecipeInputEditClearInputs",
|
|
@@ -45,6 +46,7 @@ class RecipeInputEditType(StrEnum):
|
|
|
45
46
|
UPDATE_ANNOTATIONS = "update_annotations"
|
|
46
47
|
SET_LOT = "set_lot"
|
|
47
48
|
CHANGE_BASIS = "change_basis"
|
|
49
|
+
ADD_INSTRUCTIONS = "add_instructions"
|
|
48
50
|
|
|
49
51
|
|
|
50
52
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -115,6 +117,16 @@ class RecipeInputEditSetLot(RecipeInputEditBase):
|
|
|
115
117
|
ingredient_lot_recipe_key: identifier_t.IdentifierKey
|
|
116
118
|
|
|
117
119
|
|
|
120
|
+
# DO NOT MODIFY -- This file is generated by type_spec
|
|
121
|
+
@serial_class(
|
|
122
|
+
parse_require={"type"},
|
|
123
|
+
)
|
|
124
|
+
@dataclasses.dataclass(kw_only=True)
|
|
125
|
+
class RecipeInputEditAddInstructions(RecipeInputEditBase):
|
|
126
|
+
type: typing.Literal[RecipeInputEditType.ADD_INSTRUCTIONS] = RecipeInputEditType.ADD_INSTRUCTIONS
|
|
127
|
+
instructions: str
|
|
128
|
+
|
|
129
|
+
|
|
118
130
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
119
131
|
@serial_class(
|
|
120
132
|
to_string_values={"lower_value", "upper_value"},
|
|
@@ -140,7 +152,7 @@ class RecipeInputEditUpdateAnnotations(RecipeInputEditInputBase):
|
|
|
140
152
|
|
|
141
153
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
142
154
|
RecipeInputEdit = typing.Annotated[
|
|
143
|
-
typing.Union[RecipeInputEditClearInputs, RecipeInputEditUpsertInput, RecipeInputEditAddInput, RecipeInputEditUpdateAnnotations, RecipeInputEditSetLot, RecipeInputEditChangeBasisViewed],
|
|
155
|
+
typing.Union[RecipeInputEditClearInputs, RecipeInputEditUpsertInput, RecipeInputEditAddInput, RecipeInputEditUpdateAnnotations, RecipeInputEditSetLot, RecipeInputEditChangeBasisViewed, RecipeInputEditAddInstructions],
|
|
144
156
|
serial_union_annotation(
|
|
145
157
|
discriminator="type",
|
|
146
158
|
discriminator_map={
|
|
@@ -150,6 +162,7 @@ RecipeInputEdit = typing.Annotated[
|
|
|
150
162
|
"update_annotations": RecipeInputEditUpdateAnnotations,
|
|
151
163
|
"set_lot": RecipeInputEditSetLot,
|
|
152
164
|
"change_basis": RecipeInputEditChangeBasisViewed,
|
|
165
|
+
"add_instructions": RecipeInputEditAddInstructions,
|
|
153
166
|
},
|
|
154
167
|
),
|
|
155
168
|
]
|
uncountable/types/client_base.py
CHANGED
|
@@ -235,7 +235,7 @@ class ClientMethods(ABC):
|
|
|
235
235
|
self,
|
|
236
236
|
*,
|
|
237
237
|
definition_id: base_t.ObjectId,
|
|
238
|
-
entity_type: typing.Union[typing.Literal[entity_t.EntityType.LAB_REQUEST], typing.Literal[entity_t.EntityType.APPROVAL], typing.Literal[entity_t.EntityType.CUSTOM_ENTITY], typing.Literal[entity_t.EntityType.INVENTORY_AMOUNT], typing.Literal[entity_t.EntityType.TASK], typing.Literal[entity_t.EntityType.PROJECT], typing.Literal[entity_t.EntityType.EQUIPMENT], typing.Literal[entity_t.EntityType.INV_LOCAL_LOCATIONS], typing.Literal[entity_t.EntityType.FIELD_OPTION_SET], typing.Literal[entity_t.EntityType.WEBHOOK]],
|
|
238
|
+
entity_type: typing.Union[typing.Literal[entity_t.EntityType.LAB_REQUEST], typing.Literal[entity_t.EntityType.APPROVAL], typing.Literal[entity_t.EntityType.CUSTOM_ENTITY], typing.Literal[entity_t.EntityType.INVENTORY_AMOUNT], typing.Literal[entity_t.EntityType.TASK], typing.Literal[entity_t.EntityType.PROJECT], typing.Literal[entity_t.EntityType.EQUIPMENT], typing.Literal[entity_t.EntityType.INV_LOCAL_LOCATIONS], typing.Literal[entity_t.EntityType.FIELD_OPTION_SET], typing.Literal[entity_t.EntityType.WEBHOOK], typing.Literal[entity_t.EntityType.SPECS]],
|
|
239
239
|
entities_to_create: list[create_entities_t.EntityToCreate],
|
|
240
240
|
) -> create_entities_t.Data:
|
|
241
241
|
"""Creates new Uncountable entities
|
|
@@ -260,7 +260,7 @@ class ClientMethods(ABC):
|
|
|
260
260
|
self,
|
|
261
261
|
*,
|
|
262
262
|
definition_id: base_t.ObjectId,
|
|
263
|
-
entity_type: typing.Union[typing.Literal[entity_t.EntityType.LAB_REQUEST], typing.Literal[entity_t.EntityType.APPROVAL], typing.Literal[entity_t.EntityType.CUSTOM_ENTITY], typing.Literal[entity_t.EntityType.INVENTORY_AMOUNT], typing.Literal[entity_t.EntityType.TASK], typing.Literal[entity_t.EntityType.PROJECT], typing.Literal[entity_t.EntityType.EQUIPMENT], typing.Literal[entity_t.EntityType.INV_LOCAL_LOCATIONS], typing.Literal[entity_t.EntityType.FIELD_OPTION_SET], typing.Literal[entity_t.EntityType.WEBHOOK]],
|
|
263
|
+
entity_type: typing.Union[typing.Literal[entity_t.EntityType.LAB_REQUEST], typing.Literal[entity_t.EntityType.APPROVAL], typing.Literal[entity_t.EntityType.CUSTOM_ENTITY], typing.Literal[entity_t.EntityType.INVENTORY_AMOUNT], typing.Literal[entity_t.EntityType.TASK], typing.Literal[entity_t.EntityType.PROJECT], typing.Literal[entity_t.EntityType.EQUIPMENT], typing.Literal[entity_t.EntityType.INV_LOCAL_LOCATIONS], typing.Literal[entity_t.EntityType.FIELD_OPTION_SET], typing.Literal[entity_t.EntityType.WEBHOOK], typing.Literal[entity_t.EntityType.SPECS]],
|
|
264
264
|
field_values: typing.Optional[typing.Optional[list[field_values_t.FieldRefNameValue]]] = None,
|
|
265
265
|
) -> create_entity_t.Data:
|
|
266
266
|
"""Creates a new Uncountable entity
|
|
File without changes
|
{UncountablePythonSDK-0.0.46.dist-info → UncountablePythonSDK-0.0.47.dist-info}/top_level.txt
RENAMED
|
File without changes
|