oarepo-runtime 1.5.58__py3-none-any.whl → 1.5.59__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- oarepo_runtime/datastreams/asynchronous.py +1 -1
- oarepo_runtime/datastreams/datastreams.py +13 -4
- oarepo_runtime/datastreams/semi_asynchronous.py +1 -1
- {oarepo_runtime-1.5.58.dist-info → oarepo_runtime-1.5.59.dist-info}/METADATA +1 -1
- {oarepo_runtime-1.5.58.dist-info → oarepo_runtime-1.5.59.dist-info}/RECORD +9 -9
- {oarepo_runtime-1.5.58.dist-info → oarepo_runtime-1.5.59.dist-info}/LICENSE +0 -0
- {oarepo_runtime-1.5.58.dist-info → oarepo_runtime-1.5.59.dist-info}/WHEEL +0 -0
- {oarepo_runtime-1.5.58.dist-info → oarepo_runtime-1.5.59.dist-info}/entry_points.txt +0 -0
- {oarepo_runtime-1.5.58.dist-info → oarepo_runtime-1.5.59.dist-info}/top_level.txt +0 -0
@@ -178,7 +178,7 @@ def run_datastream_processor(batch: Dict, *, processor: JSONObject, identity, ca
|
|
178
178
|
{
|
179
179
|
"batch": deserialized_batch.json,
|
180
180
|
"identity": serialize_identity(identity),
|
181
|
-
"callback": f"{processor_signature.kind}_error",
|
181
|
+
"callback": f"{processor_signature.kind.value}_error",
|
182
182
|
"exception": err.json,
|
183
183
|
},
|
184
184
|
)
|
@@ -25,11 +25,20 @@ class DataStreamChain(abc.ABC):
|
|
25
25
|
def finish(self, callback: Union[DataStreamCallback, Any]):
|
26
26
|
pass
|
27
27
|
|
28
|
+
try:
|
29
|
+
from enum import StrEnum
|
28
30
|
|
29
|
-
class SignatureKind(
|
30
|
-
|
31
|
-
|
32
|
-
|
31
|
+
class SignatureKind(StrEnum):
|
32
|
+
READER = "reader"
|
33
|
+
TRANSFORMER = "transformer"
|
34
|
+
WRITER = "writer"
|
35
|
+
|
36
|
+
except ImportError:
|
37
|
+
|
38
|
+
class SignatureKind(str, Enum):
|
39
|
+
READER = "reader"
|
40
|
+
TRANSFORMER = "transformer"
|
41
|
+
WRITER = "writer"
|
33
42
|
|
34
43
|
|
35
44
|
@dataclasses.dataclass
|
@@ -14,14 +14,14 @@ oarepo_runtime/cli/fixtures.py,sha256=l6zHpz1adjotrbFy_wcN2TOL8x20i-1jbQmaoEEo-U
|
|
14
14
|
oarepo_runtime/cli/index.py,sha256=2dZvXtrph527YIgFTCQ8dIVsza-bZou9HBBzYRWAPTY,8243
|
15
15
|
oarepo_runtime/cli/validate.py,sha256=HpSvHQCGHlrdgdpKix9cIlzlBoJEiT1vACZdMnOUGEY,2827
|
16
16
|
oarepo_runtime/datastreams/__init__.py,sha256=_i52Ek9J8DMARST0ejZAZPzUKm55xrrlKlCSO7dl6y4,1008
|
17
|
-
oarepo_runtime/datastreams/asynchronous.py,sha256=
|
17
|
+
oarepo_runtime/datastreams/asynchronous.py,sha256=JwT-Hx6P7KwV0vSJlxX6kLSIX5vtsekVsA2p_hZpJ_U,7402
|
18
18
|
oarepo_runtime/datastreams/catalogue.py,sha256=D6leq-FPT3RP3SniEAXPm66v3q8ZdQnaUYJ5XM0dIFY,5021
|
19
|
-
oarepo_runtime/datastreams/datastreams.py,sha256=
|
19
|
+
oarepo_runtime/datastreams/datastreams.py,sha256=N9XXwIaBTADkPhE-XG6uotMwd-8Kn0vEZOoeV2BnMGI,4679
|
20
20
|
oarepo_runtime/datastreams/errors.py,sha256=WyZLU53EdFJTLv6K2ooM_M6ISjLS-U1dDw6B7guOLSc,1540
|
21
21
|
oarepo_runtime/datastreams/ext.py,sha256=ivugdVMCqwugK-5SeX14a-dMq6VaTt7DM2wFU357tR4,1406
|
22
22
|
oarepo_runtime/datastreams/fixtures.py,sha256=LTzRLoS3hkdP7a7wX3fCNWplaxh0DQQjxGto3p1_Luk,8691
|
23
23
|
oarepo_runtime/datastreams/json.py,sha256=OAiaH93eqpH5qNQSPKKc8K-hXKAn5lB0PUKwwZFqJSw,153
|
24
|
-
oarepo_runtime/datastreams/semi_asynchronous.py,sha256=
|
24
|
+
oarepo_runtime/datastreams/semi_asynchronous.py,sha256=kNc6BBnV6oFoY9kHgf5l8fd1wibRfI0dwyzLtu4fmUA,2940
|
25
25
|
oarepo_runtime/datastreams/synchronous.py,sha256=t5lfnMkLqy3jK5zMl-nIuA0HlMPiHGjwCqZ8XQP-3GM,2595
|
26
26
|
oarepo_runtime/datastreams/transformers.py,sha256=q5KzHPl2kJg7HP1BtKJ7F_UMqg_7L1ZGDX0O7s8D6UI,521
|
27
27
|
oarepo_runtime/datastreams/types.py,sha256=KZjblc3T_UFFW7LrMDmiR8lqVf86V484LAHj6yg05EI,9908
|
@@ -119,9 +119,9 @@ oarepo_runtime/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
119
119
|
oarepo_runtime/utils/functools.py,sha256=gKS9YZtlIYcDvdNA9cmYO00yjiXBYV1jg8VpcRUyQyg,1324
|
120
120
|
oarepo_runtime/utils/path.py,sha256=V1NVyk3m12_YLbj7QHYvUpE1wScO78bYsX1LOLeXDkI,3108
|
121
121
|
tests/pkg_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
122
|
-
oarepo_runtime-1.5.
|
123
|
-
oarepo_runtime-1.5.
|
124
|
-
oarepo_runtime-1.5.
|
125
|
-
oarepo_runtime-1.5.
|
126
|
-
oarepo_runtime-1.5.
|
127
|
-
oarepo_runtime-1.5.
|
122
|
+
oarepo_runtime-1.5.59.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
|
123
|
+
oarepo_runtime-1.5.59.dist-info/METADATA,sha256=GcU89QZPX8iUv8YGhG_VbIp-k0xvccf6WJ-WkfSrtJQ,4720
|
124
|
+
oarepo_runtime-1.5.59.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
125
|
+
oarepo_runtime-1.5.59.dist-info/entry_points.txt,sha256=QrlXAKuPDVBinaSh_v3yO9_Nb9ZNmJCJ0VFcCW-z0Jg,327
|
126
|
+
oarepo_runtime-1.5.59.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
|
127
|
+
oarepo_runtime-1.5.59.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|