UncountablePythonSDK 0.0.100__py3-none-any.whl → 0.0.101__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.100.dist-info → UncountablePythonSDK-0.0.101.dist-info}/METADATA +1 -1
- {UncountablePythonSDK-0.0.100.dist-info → UncountablePythonSDK-0.0.101.dist-info}/RECORD +6 -6
- uncountable/types/async_batch_processor.py +36 -0
- uncountable/types/async_batch_t.py +1 -0
- {UncountablePythonSDK-0.0.100.dist-info → UncountablePythonSDK-0.0.101.dist-info}/WHEEL +0 -0
- {UncountablePythonSDK-0.0.100.dist-info → UncountablePythonSDK-0.0.101.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: UncountablePythonSDK
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.101
|
|
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
|
|
@@ -132,8 +132,8 @@ uncountable/integration/secret_retrieval/retrieve_secret.py,sha256=9iz9N8Z-B68Qw
|
|
|
132
132
|
uncountable/integration/webhook_server/entrypoint.py,sha256=yQWQq_k3kbJkSsEEt6k22YwhXekezJZfV0rnn-hP-Yo,5516
|
|
133
133
|
uncountable/types/__init__.py,sha256=LIhmCf1ohKuXV4FDQys7NkNFSTTQMpS3OqoEoXWwnoI,9306
|
|
134
134
|
uncountable/types/async_batch.py,sha256=yCCWrrLQfxXVqZp-KskxLBNkNmuELdz4PJjx8ULppgs,662
|
|
135
|
-
uncountable/types/async_batch_processor.py,sha256=
|
|
136
|
-
uncountable/types/async_batch_t.py,sha256=
|
|
135
|
+
uncountable/types/async_batch_processor.py,sha256=bz529mybrOPy5WAVh7cAHKCrUcKR5Dhonvti-yhnbYA,16822
|
|
136
|
+
uncountable/types/async_batch_t.py,sha256=zRw7M6Ois5TaiCi2RftX_zjMozyhePILTT2wjxvOSr0,3128
|
|
137
137
|
uncountable/types/async_jobs.py,sha256=JI0ScfawaqMRbJ2jbgW3YQLhijPnBeYdMnZJjygSxHg,322
|
|
138
138
|
uncountable/types/async_jobs_t.py,sha256=u4xd3i512PZ-9592Q2ZgWh_faMiI4UMm0F_gOmZnerI,1389
|
|
139
139
|
uncountable/types/auth_retrieval.py,sha256=770zjN1K9EF5zs1Xml7x6ke6Hkze7rcMT5FdDVCIl9M,549
|
|
@@ -297,7 +297,7 @@ uncountable/types/api/triggers/__init__.py,sha256=gCgbynxG3jA8FQHzercKtrHKHkiIKr
|
|
|
297
297
|
uncountable/types/api/triggers/run_trigger.py,sha256=diX1ix_5hkti1F1uYoZhP5iyc6GHAU5coKgqq5syLhI,1059
|
|
298
298
|
uncountable/types/api/uploader/__init__.py,sha256=gCgbynxG3jA8FQHzercKtrHKHkiIKr8APdZYUniAor8,55
|
|
299
299
|
uncountable/types/api/uploader/invoke_uploader.py,sha256=-loZzBihKqx63eP-f5RuV1mu6tgkRTZmIc545kklZLk,1273
|
|
300
|
-
UncountablePythonSDK-0.0.
|
|
301
|
-
UncountablePythonSDK-0.0.
|
|
302
|
-
UncountablePythonSDK-0.0.
|
|
303
|
-
UncountablePythonSDK-0.0.
|
|
300
|
+
UncountablePythonSDK-0.0.101.dist-info/METADATA,sha256=-pw8jBfobcHpbWqeXQXzzHd-XWuHHbHlVsUleM2o07Q,2115
|
|
301
|
+
UncountablePythonSDK-0.0.101.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
302
|
+
UncountablePythonSDK-0.0.101.dist-info/top_level.txt,sha256=1UVGjAU-6hJY9qw2iJ7nCBeEwZ793AEN5ZfKX9A1uj4,31
|
|
303
|
+
UncountablePythonSDK-0.0.101.dist-info/RECORD,,
|
|
@@ -9,6 +9,7 @@ import datetime # noqa: F401
|
|
|
9
9
|
from decimal import Decimal # noqa: F401
|
|
10
10
|
import uncountable.types.api.equipment.associate_equipment_input as associate_equipment_input_t
|
|
11
11
|
import uncountable.types.api.recipes.associate_recipe_as_input as associate_recipe_as_input_t
|
|
12
|
+
import uncountable.types.api.recipes.associate_recipe_as_lot as associate_recipe_as_lot_t
|
|
12
13
|
from uncountable.types import async_batch_t
|
|
13
14
|
from uncountable.types import base_t
|
|
14
15
|
import uncountable.types.api.recipes.clear_recipe_outputs as clear_recipe_outputs_t
|
|
@@ -113,6 +114,41 @@ class AsyncBatchProcessorBase(ABC):
|
|
|
113
114
|
batch_reference=req.batch_reference,
|
|
114
115
|
)
|
|
115
116
|
|
|
117
|
+
def associate_recipe_as_lot(
|
|
118
|
+
self,
|
|
119
|
+
*,
|
|
120
|
+
recipe_key: identifier_t.IdentifierKey,
|
|
121
|
+
ingredient_key: identifier_t.IdentifierKey,
|
|
122
|
+
depends_on: list[str] | None = None,
|
|
123
|
+
) -> async_batch_t.QueuedAsyncBatchRequest:
|
|
124
|
+
"""Create a new lot association for the provided recipe with the provided ingredient
|
|
125
|
+
|
|
126
|
+
:param recipe_key: Identifier for the recipe
|
|
127
|
+
:param ingredient_key: Identifier for the ingredient
|
|
128
|
+
:param depends_on: A list of batch reference keys to process before processing this request
|
|
129
|
+
"""
|
|
130
|
+
args = associate_recipe_as_lot_t.Arguments(
|
|
131
|
+
recipe_key=recipe_key,
|
|
132
|
+
ingredient_key=ingredient_key,
|
|
133
|
+
)
|
|
134
|
+
json_data = serialize_for_api(args)
|
|
135
|
+
|
|
136
|
+
batch_reference = str(uuid.uuid4())
|
|
137
|
+
|
|
138
|
+
req = async_batch_t.AsyncBatchRequest(
|
|
139
|
+
path=async_batch_t.AsyncBatchRequestPath.ASSOCIATE_RECIPE_AS_LOT,
|
|
140
|
+
data=json_data,
|
|
141
|
+
depends_on=depends_on,
|
|
142
|
+
batch_reference=batch_reference,
|
|
143
|
+
)
|
|
144
|
+
|
|
145
|
+
self._enqueue(req)
|
|
146
|
+
|
|
147
|
+
return async_batch_t.QueuedAsyncBatchRequest(
|
|
148
|
+
path=req.path,
|
|
149
|
+
batch_reference=req.batch_reference,
|
|
150
|
+
)
|
|
151
|
+
|
|
116
152
|
def clear_recipe_outputs(
|
|
117
153
|
self,
|
|
118
154
|
*,
|
|
@@ -37,6 +37,7 @@ class AsyncBatchRequestPath(StrEnum):
|
|
|
37
37
|
CLEAR_RECIPE_OUTPUTS = "recipes/clear_recipe_outputs"
|
|
38
38
|
GRANT_ENTITY_PERMISSIONS = "entity/grant_entity_permissions"
|
|
39
39
|
SET_ENTITY_FIELD_VALUES = "entity/set_entity_field_values"
|
|
40
|
+
ASSOCIATE_RECIPE_AS_LOT = "recipes/associate_recipe_as_lot"
|
|
40
41
|
CREATE_OR_UPDATE_ENTITY = "entity/create_or_update_entity"
|
|
41
42
|
|
|
42
43
|
|
|
File without changes
|
{UncountablePythonSDK-0.0.100.dist-info → UncountablePythonSDK-0.0.101.dist-info}/top_level.txt
RENAMED
|
File without changes
|