dex-python-sdk 1.45.7__tar.gz → 1.45.8__tar.gz
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.
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/PKG-INFO +1 -1
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_async_value_hydrator.py +7 -4
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_async_worker_dispatcher.py +1 -1
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_value_hydrator.py +7 -4
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_worker_dispatcher.py +13 -1
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/pyproject.toml +1 -1
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/LEGACY_NOTICES.md +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/LICENSE +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/README.md +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/__init__.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_attribute_reads.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_credential_transport.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_flow_definition_upload.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_flow_service_tls.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_grpc_errors.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_history_point_mapping.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_invocation_context.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_message_size.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_native.pyi +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_pull_slot_streams.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_pull_worker.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_server_protocol.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_stop_flow_mapping.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_task_queue_names.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_utils.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_value_mapper.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/action.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/async_client.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/async_worker.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/attribute.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/attribute_match.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/attribute_values.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/blob_cache.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/channel.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/client.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/client_options.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/codec.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/condition.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/context.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/credential.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/dexpb/__init__.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/dexpb/dex_pb2.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/dexpb/dex_pb2.pyi +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/dexpb/dex_pb2_grpc.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/flow.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/flow_config.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/flow_definition.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/flow_info.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/flow_options.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/flow_result.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/flow_service_tls_options.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/flow_state.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/graceful_completion_context.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/join.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/pull_registration.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/py.typed +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/rpc_invoke_options.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/runtime_errors.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/step.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/step_execution.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/stream.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/subflow.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/timer.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/wait.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/wait_options.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/worker.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/worker_options.py +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/Cargo.lock +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/Cargo.toml +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/Cargo.toml +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/LICENSE +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/README.md +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/src/config.rs +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/src/entry.rs +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/src/error.rs +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/src/format.rs +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/src/lib.rs +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/src/policy.rs +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/src/store.rs +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/tests/blob_cache_integration.rs +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache-python/Cargo.toml +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache-python/LICENSE +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache-python/README.md +0 -0
- {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache-python/src/lib.rs +0 -0
|
@@ -177,16 +177,19 @@ class AsyncValueHydrator:
|
|
|
177
177
|
) -> pb.InvokeWorkerRPCRequest:
|
|
178
178
|
result = pb.InvokeWorkerRPCRequest()
|
|
179
179
|
result.CopyFrom(request)
|
|
180
|
-
|
|
180
|
+
# Released TypeScript Clients leave the input of an input-free RPC unset.
|
|
181
|
+
has_input = request.HasField("input")
|
|
182
|
+
values = [request.input] if has_input else []
|
|
183
|
+
values.extend(entry.value for entry in request.attributes)
|
|
181
184
|
channel_messages = [
|
|
182
185
|
message
|
|
183
186
|
for channel_values in request.loaded_channel_messages.values()
|
|
184
187
|
for message in channel_values.messages
|
|
185
188
|
]
|
|
186
189
|
values.extend(message.value for message in channel_messages)
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
+
hydrated_entries = iter(await self.hydrate_all(request.context.flow_id, values))
|
|
191
|
+
if has_input:
|
|
192
|
+
result.input.CopyFrom(next(hydrated_entries))
|
|
190
193
|
for entry in result.attributes:
|
|
191
194
|
entry.value.CopyFrom(next(hydrated_entries))
|
|
192
195
|
result_messages = [
|
|
@@ -386,7 +386,7 @@ class AsyncWorkerDispatcher(WorkerDispatcher):
|
|
|
386
386
|
)
|
|
387
387
|
arguments: list[object] = [context]
|
|
388
388
|
if rpc.input_codec is not None:
|
|
389
|
-
arguments.append(self.
|
|
389
|
+
arguments.append(self._decode_rpc_input(request, rpc.input_codec))
|
|
390
390
|
returned: Any = rpc.method(*arguments)
|
|
391
391
|
if isawaitable(returned):
|
|
392
392
|
returned = await returned
|
|
@@ -175,16 +175,19 @@ class ValueHydrator:
|
|
|
175
175
|
) -> pb.InvokeWorkerRPCRequest:
|
|
176
176
|
result = pb.InvokeWorkerRPCRequest()
|
|
177
177
|
result.CopyFrom(request)
|
|
178
|
-
|
|
178
|
+
# Released TypeScript Clients leave the input of an input-free RPC unset.
|
|
179
|
+
has_input = request.HasField("input")
|
|
180
|
+
values = [request.input] if has_input else []
|
|
181
|
+
values.extend(entry.value for entry in request.attributes)
|
|
179
182
|
channel_messages = [
|
|
180
183
|
message
|
|
181
184
|
for channel_values in request.loaded_channel_messages.values()
|
|
182
185
|
for message in channel_values.messages
|
|
183
186
|
]
|
|
184
187
|
values.extend(message.value for message in channel_messages)
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
+
hydrated_entries = iter(self.hydrate_all(request.context.flow_id, values))
|
|
189
|
+
if has_input:
|
|
190
|
+
result.input.CopyFrom(next(hydrated_entries))
|
|
188
191
|
for entry in result.attributes:
|
|
189
192
|
entry.value.CopyFrom(next(hydrated_entries))
|
|
190
193
|
result_messages = [
|
|
@@ -26,6 +26,7 @@ from dex.attribute import (
|
|
|
26
26
|
_require_matching_hard_delete_on_null,
|
|
27
27
|
)
|
|
28
28
|
from dex.channel import Channel, ChannelMap, ChannelMapLoad
|
|
29
|
+
from dex.codec import Codec
|
|
29
30
|
from dex.condition import (
|
|
30
31
|
ChannelCondition,
|
|
31
32
|
Condition,
|
|
@@ -301,7 +302,7 @@ class WorkerDispatcher:
|
|
|
301
302
|
)
|
|
302
303
|
arguments: list[object] = [context]
|
|
303
304
|
if rpc.input_codec is not None:
|
|
304
|
-
arguments.append(self.
|
|
305
|
+
arguments.append(self._decode_rpc_input(request, rpc.input_codec))
|
|
305
306
|
returned = rpc.method(*arguments)
|
|
306
307
|
if isawaitable(returned):
|
|
307
308
|
raise TypeError(
|
|
@@ -760,6 +761,17 @@ class WorkerDispatcher:
|
|
|
760
761
|
)
|
|
761
762
|
return mapped
|
|
762
763
|
|
|
764
|
+
def _decode_rpc_input(
|
|
765
|
+
self,
|
|
766
|
+
request: pb.InvokeWorkerRPCRequest,
|
|
767
|
+
input_codec: Codec[Any],
|
|
768
|
+
) -> object:
|
|
769
|
+
if not request.HasField("input"):
|
|
770
|
+
raise ValueMappingError(
|
|
771
|
+
"decode", f"RPC {request.rpc_name!r} request is missing its input"
|
|
772
|
+
)
|
|
773
|
+
return self._values.decode(request.input, input_codec)
|
|
774
|
+
|
|
763
775
|
def _result_attribute_writes(
|
|
764
776
|
self,
|
|
765
777
|
context: InvocationContext,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "dex-python-sdk"
|
|
3
3
|
# Publish uses tag sdk-python/v*; CI stamps this for release builds.
|
|
4
|
-
version = "1.45.
|
|
4
|
+
version = "1.45.8"
|
|
5
5
|
description = "Python SDK for the Dex workflow engine"
|
|
6
6
|
authors = [{name = "Super Durable"}]
|
|
7
7
|
readme = "README.md"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/src/config.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/src/format.rs
RENAMED
|
File without changes
|
|
File without changes
|
{dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/src/policy.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache-python/Cargo.toml
RENAMED
|
File without changes
|
{dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache-python/LICENSE
RENAMED
|
File without changes
|
{dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache-python/README.md
RENAMED
|
File without changes
|
{dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache-python/src/lib.rs
RENAMED
|
File without changes
|