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.
Files changed (84) hide show
  1. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/PKG-INFO +1 -1
  2. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_async_value_hydrator.py +7 -4
  3. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_async_worker_dispatcher.py +1 -1
  4. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_value_hydrator.py +7 -4
  5. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_worker_dispatcher.py +13 -1
  6. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/pyproject.toml +1 -1
  7. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/LEGACY_NOTICES.md +0 -0
  8. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/LICENSE +0 -0
  9. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/README.md +0 -0
  10. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/__init__.py +0 -0
  11. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_attribute_reads.py +0 -0
  12. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_credential_transport.py +0 -0
  13. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_flow_definition_upload.py +0 -0
  14. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_flow_service_tls.py +0 -0
  15. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_grpc_errors.py +0 -0
  16. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_history_point_mapping.py +0 -0
  17. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_invocation_context.py +0 -0
  18. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_message_size.py +0 -0
  19. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_native.pyi +0 -0
  20. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_pull_slot_streams.py +0 -0
  21. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_pull_worker.py +0 -0
  22. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_server_protocol.py +0 -0
  23. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_stop_flow_mapping.py +0 -0
  24. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_task_queue_names.py +0 -0
  25. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_utils.py +0 -0
  26. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/_value_mapper.py +0 -0
  27. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/action.py +0 -0
  28. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/async_client.py +0 -0
  29. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/async_worker.py +0 -0
  30. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/attribute.py +0 -0
  31. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/attribute_match.py +0 -0
  32. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/attribute_values.py +0 -0
  33. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/blob_cache.py +0 -0
  34. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/channel.py +0 -0
  35. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/client.py +0 -0
  36. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/client_options.py +0 -0
  37. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/codec.py +0 -0
  38. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/condition.py +0 -0
  39. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/context.py +0 -0
  40. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/credential.py +0 -0
  41. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/dexpb/__init__.py +0 -0
  42. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/dexpb/dex_pb2.py +0 -0
  43. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/dexpb/dex_pb2.pyi +0 -0
  44. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/dexpb/dex_pb2_grpc.py +0 -0
  45. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/flow.py +0 -0
  46. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/flow_config.py +0 -0
  47. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/flow_definition.py +0 -0
  48. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/flow_info.py +0 -0
  49. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/flow_options.py +0 -0
  50. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/flow_result.py +0 -0
  51. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/flow_service_tls_options.py +0 -0
  52. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/flow_state.py +0 -0
  53. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/graceful_completion_context.py +0 -0
  54. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/join.py +0 -0
  55. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/pull_registration.py +0 -0
  56. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/py.typed +0 -0
  57. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/rpc_invoke_options.py +0 -0
  58. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/runtime_errors.py +0 -0
  59. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/step.py +0 -0
  60. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/step_execution.py +0 -0
  61. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/stream.py +0 -0
  62. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/subflow.py +0 -0
  63. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/timer.py +0 -0
  64. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/wait.py +0 -0
  65. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/wait_options.py +0 -0
  66. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/worker.py +0 -0
  67. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/dex/worker_options.py +0 -0
  68. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/Cargo.lock +0 -0
  69. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/Cargo.toml +0 -0
  70. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/Cargo.toml +0 -0
  71. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/LICENSE +0 -0
  72. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/README.md +0 -0
  73. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/src/config.rs +0 -0
  74. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/src/entry.rs +0 -0
  75. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/src/error.rs +0 -0
  76. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/src/format.rs +0 -0
  77. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/src/lib.rs +0 -0
  78. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/src/policy.rs +0 -0
  79. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache/src/store.rs +0 -0
  80. {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
  81. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache-python/Cargo.toml +0 -0
  82. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache-python/LICENSE +0 -0
  83. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache-python/README.md +0 -0
  84. {dex_python_sdk-1.45.7 → dex_python_sdk-1.45.8}/sdk-rust/crates/dex-blob-cache-python/src/lib.rs +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dex-python-sdk
3
- Version: 1.45.7
3
+ Version: 1.45.8
4
4
  Requires-Dist: grpcio>=1.83.0
5
5
  Requires-Dist: grpcio-status>=1.83.0
6
6
  Requires-Dist: protobuf>=7.35.1
@@ -177,16 +177,19 @@ class AsyncValueHydrator:
177
177
  ) -> pb.InvokeWorkerRPCRequest:
178
178
  result = pb.InvokeWorkerRPCRequest()
179
179
  result.CopyFrom(request)
180
- values = [request.input, *(entry.value for entry in request.attributes)]
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
- hydrated = await self.hydrate_all(request.context.flow_id, values)
188
- result.input.CopyFrom(hydrated[0])
189
- hydrated_entries = iter(hydrated[1:])
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._values.decode(request.input, rpc.input_codec))
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
- values = [request.input, *(entry.value for entry in request.attributes)]
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
- hydrated = self.hydrate_all(request.context.flow_id, values)
186
- result.input.CopyFrom(hydrated[0])
187
- hydrated_entries = iter(hydrated[1:])
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._values.decode(request.input, rpc.input_codec))
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.7"
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