dex-python-sdk 1.4.0__tar.gz → 1.4.1__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.4.0 → dex_python_sdk-1.4.1}/PKG-INFO +1 -1
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/_invocation_context.py +5 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/context.py +13 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/pyproject.toml +1 -1
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/LEGACY_NOTICES.md +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/LICENSE +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/README.md +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/__init__.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/_async_value_hydrator.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/_async_worker_dispatcher.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/_async_worker_service.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/_grpc_errors.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/_native.pyi +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/_server_protocol.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/_utils.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/_value_hydrator.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/_value_mapper.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/_worker_dispatcher.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/_worker_service.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/async_client.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/async_worker.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/attribute.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/attribute_match.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/blob_cache.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/channel.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/client.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/client_options.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/codec.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/condition.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/dexpb/__init__.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/dexpb/dex_pb2.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/dexpb/dex_pb2.pyi +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/dexpb/dex_pb2_grpc.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/flow.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/flow_config.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/flow_info.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/flow_options.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/flow_result.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/py.typed +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/rpc_invoke_options.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/runtime_errors.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/step.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/step_execution.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/stream.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/subflow.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/timer.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/wait.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/wait_options.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/worker.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/dex/worker_options.py +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/sdk-rust/Cargo.lock +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/sdk-rust/Cargo.toml +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/sdk-rust/crates/dex-blob-cache/Cargo.toml +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/sdk-rust/crates/dex-blob-cache/LICENSE +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/sdk-rust/crates/dex-blob-cache/src/config.rs +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/sdk-rust/crates/dex-blob-cache/src/entry.rs +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/sdk-rust/crates/dex-blob-cache/src/error.rs +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/sdk-rust/crates/dex-blob-cache/src/format.rs +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/sdk-rust/crates/dex-blob-cache/src/lib.rs +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/sdk-rust/crates/dex-blob-cache/src/policy.rs +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/sdk-rust/crates/dex-blob-cache/src/store.rs +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/sdk-rust/crates/dex-blob-cache/tests/blob_cache_integration.rs +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/sdk-rust/crates/dex-blob-cache-python/Cargo.toml +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/sdk-rust/crates/dex-blob-cache-python/LICENSE +0 -0
- {dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/sdk-rust/crates/dex-blob-cache-python/src/lib.rs +0 -0
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
from __future__ import annotations
|
|
10
10
|
|
|
11
|
+
from datetime import UTC, datetime
|
|
11
12
|
from enum import Enum
|
|
12
13
|
from typing import Any, Callable, Protocol, Sequence, TypeVar, cast
|
|
13
14
|
from urllib.parse import unquote
|
|
@@ -126,6 +127,10 @@ class InvocationContext:
|
|
|
126
127
|
error_type=self._metadata.recovery_error.error_type,
|
|
127
128
|
)
|
|
128
129
|
|
|
130
|
+
@property
|
|
131
|
+
def first_attempt_at(self) -> datetime:
|
|
132
|
+
return datetime.fromtimestamp(self._metadata.first_attempt_timestamp, UTC)
|
|
133
|
+
|
|
129
134
|
@property
|
|
130
135
|
def attempt(self) -> int:
|
|
131
136
|
return self._metadata.attempt
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
from __future__ import annotations
|
|
12
12
|
|
|
13
13
|
from dataclasses import dataclass
|
|
14
|
+
from datetime import datetime
|
|
14
15
|
from typing import TYPE_CHECKING, Any, Protocol, Sequence, TypeVar
|
|
15
16
|
|
|
16
17
|
if TYPE_CHECKING:
|
|
@@ -95,6 +96,18 @@ class Context(Protocol):
|
|
|
95
96
|
"""
|
|
96
97
|
...
|
|
97
98
|
|
|
99
|
+
@property
|
|
100
|
+
def first_attempt_at(self) -> datetime:
|
|
101
|
+
"""Return when the first attempt of this handler invocation started.
|
|
102
|
+
|
|
103
|
+
The value is stable across retries of the same invocation, so a handler
|
|
104
|
+
can derive a deadline that a retry does not reset.
|
|
105
|
+
|
|
106
|
+
Returns:
|
|
107
|
+
A timezone-aware UTC time with one-second precision.
|
|
108
|
+
"""
|
|
109
|
+
...
|
|
110
|
+
|
|
98
111
|
@property
|
|
99
112
|
def attempt(self) -> int:
|
|
100
113
|
"""Return the one-based handler retry attempt.
|
|
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.4.0 → dex_python_sdk-1.4.1}/sdk-rust/crates/dex-blob-cache-python/Cargo.toml
RENAMED
|
File without changes
|
|
File without changes
|
{dex_python_sdk-1.4.0 → dex_python_sdk-1.4.1}/sdk-rust/crates/dex-blob-cache-python/src/lib.rs
RENAMED
|
File without changes
|