dex-python-sdk 0.9.0__tar.gz → 0.11.0__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-0.9.0 → dex_python_sdk-0.11.0}/PKG-INFO +1 -1
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/async_client.py +9 -3
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/client.py +9 -4
- dex_python_sdk-0.11.0/dex/dexpb/dex_pb2.py +509 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/dexpb/dex_pb2.pyi +36 -10
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/pyproject.toml +1 -1
- dex_python_sdk-0.9.0/dex/dexpb/dex_pb2.py +0 -505
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/LEGACY_NOTICES.md +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/LICENSE +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/README.md +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/__init__.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/_async_value_hydrator.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/_async_worker_dispatcher.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/_async_worker_service.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/_grpc_errors.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/_invocation_context.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/_native.pyi +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/_server_protocol.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/_utils.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/_value_hydrator.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/_value_mapper.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/_worker_dispatcher.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/_worker_service.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/async_worker.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/attribute.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/attribute_match.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/blob_cache.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/channel.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/client_options.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/codec.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/condition.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/context.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/dexpb/__init__.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/dexpb/dex_pb2_grpc.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/flow.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/flow_config.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/flow_info.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/flow_options.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/flow_result.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/py.typed +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/runtime_errors.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/step.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/step_execution.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/stream.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/subflow.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/timer.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/wait.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/wait_options.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/worker.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/dex/worker_options.py +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/sdk-rust/Cargo.lock +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/sdk-rust/Cargo.toml +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/sdk-rust/crates/dex-blob-cache/Cargo.toml +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/sdk-rust/crates/dex-blob-cache/LICENSE +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/sdk-rust/crates/dex-blob-cache/src/config.rs +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/sdk-rust/crates/dex-blob-cache/src/entry.rs +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/sdk-rust/crates/dex-blob-cache/src/error.rs +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/sdk-rust/crates/dex-blob-cache/src/format.rs +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/sdk-rust/crates/dex-blob-cache/src/lib.rs +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/sdk-rust/crates/dex-blob-cache/src/policy.rs +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/sdk-rust/crates/dex-blob-cache/src/store.rs +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/sdk-rust/crates/dex-blob-cache/tests/blob_cache_integration.rs +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/sdk-rust/crates/dex-blob-cache-python/Cargo.toml +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/sdk-rust/crates/dex-blob-cache-python/LICENSE +0 -0
- {dex_python_sdk-0.9.0 → dex_python_sdk-0.11.0}/sdk-rust/crates/dex-blob-cache-python/src/lib.rs +0 -0
|
@@ -254,13 +254,18 @@ class AsyncClient:
|
|
|
254
254
|
"""Invoke a registered RPC and await its typed result.
|
|
255
255
|
|
|
256
256
|
Pass the bound method from the registered Flow instance. RPC timeout and
|
|
257
|
-
Attribute locks come from ``@rpc`` configuration.
|
|
257
|
+
Attribute locks come from ``@rpc`` configuration. A non-transactional RPC
|
|
258
|
+
without Attribute locks starts from a backend query. If the handler returns no
|
|
259
|
+
durable effects, a retained terminal execution can serve that query. Locks,
|
|
260
|
+
transactional execution, returned effects, or server policy can require an
|
|
261
|
+
active execution.
|
|
258
262
|
|
|
259
263
|
Args:
|
|
260
264
|
rpc_method: A bound method decorated with ``@rpc``.
|
|
261
265
|
flow_id: The non-empty target Flow ID.
|
|
262
266
|
input: The annotated input, or ``None`` for an input-free RPC.
|
|
263
|
-
run_id: Optional exact run
|
|
267
|
+
run_id: Optional exact run. With ``""``, the server resolves the current
|
|
268
|
+
execution.
|
|
264
269
|
|
|
265
270
|
Returns:
|
|
266
271
|
The decoded ``RPCResult.output``, or ``None`` for a no-output RPC.
|
|
@@ -270,7 +275,8 @@ class AsyncClient:
|
|
|
270
275
|
RpcLockConflictError: If Attribute locks cannot be acquired.
|
|
271
276
|
WorkerInvocationError: If the application handler fails.
|
|
272
277
|
ValueMappingError: If input or output mapping fails.
|
|
273
|
-
DexServiceError: If the
|
|
278
|
+
DexServiceError: If the selected path requires an active execution or the
|
|
279
|
+
service call otherwise fails.
|
|
274
280
|
"""
|
|
275
281
|
_, rpc = self.registry._rpc_for_method(rpc_method)
|
|
276
282
|
encoded_input = (
|
|
@@ -250,17 +250,21 @@ class Client:
|
|
|
250
250
|
*,
|
|
251
251
|
run_id: str = "",
|
|
252
252
|
) -> Any:
|
|
253
|
-
"""Synchronously invoke a registered RPC on
|
|
253
|
+
"""Synchronously invoke a registered RPC on a Flow execution.
|
|
254
254
|
|
|
255
255
|
Pass the bound method from the same registered Flow instance. RPC timeout and
|
|
256
256
|
Attribute locks come from its ``@rpc`` decorator. The call blocks until the
|
|
257
|
-
handler returns, fails, or times out.
|
|
257
|
+
handler returns, fails, or times out. A non-transactional RPC without Attribute
|
|
258
|
+
locks starts from a backend query. If the handler returns no durable effects, a
|
|
259
|
+
retained terminal execution can serve that query. Locks, transactional execution,
|
|
260
|
+
returned effects, or server policy can require an active execution.
|
|
258
261
|
|
|
259
262
|
Args:
|
|
260
263
|
rpc_method: A bound method decorated with ``@rpc``.
|
|
261
264
|
flow_id: The non-empty target Flow ID.
|
|
262
265
|
input: The annotated RPC input, or ``None`` for an input-free RPC.
|
|
263
|
-
run_id: Optional exact run
|
|
266
|
+
run_id: Optional exact run. With ``""``, the server resolves the current
|
|
267
|
+
execution.
|
|
264
268
|
|
|
265
269
|
Returns:
|
|
266
270
|
The decoded ``RPCResult.output``, or ``None`` for a no-output RPC.
|
|
@@ -270,7 +274,8 @@ class Client:
|
|
|
270
274
|
RpcLockConflictError: If requested Attribute locks cannot be acquired.
|
|
271
275
|
WorkerInvocationError: If the application handler fails.
|
|
272
276
|
ValueMappingError: If input or output mapping fails.
|
|
273
|
-
DexServiceError: If the
|
|
277
|
+
DexServiceError: If the selected path requires an active execution or the
|
|
278
|
+
service call otherwise fails.
|
|
274
279
|
"""
|
|
275
280
|
_, rpc = self.registry._rpc_for_method(rpc_method)
|
|
276
281
|
encoded_input = (
|