malevich-coretools 0.3.63__py3-none-any.whl → 0.3.64__py3-none-any.whl

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.

Potentially problematic release.


This version of malevich-coretools might be problematic. Click here for more details.

@@ -1,3 +1,4 @@
1
+ import json
1
2
  from enum import IntEnum
2
3
  from typing import Dict, List, Optional, Union
3
4
 
@@ -80,7 +81,7 @@ class AlternativeArgument(BaseArgument):
80
81
 
81
82
 
82
83
  class AppEntity(BaseModel):
83
- cfg: Optional[str] = None # local cfg for processor/condition
84
+ cfg: Optional[Union[Alias.Json, Dict]] = None # local cfg for processor/condition
84
85
  arguments: Dict[str, AlternativeArgument] = {} # TODO or List[Argument]?
85
86
  conditions: Optional[Union[Dict[str, bool], List[Dict[str, bool]]]] = None # condition bindId to it result (list - any variant of them)
86
87
  conditionsStructure: Optional[Union[Not, And, Or, InternalNot, InternalAnd, InternalOr, Value]] = None # set BoolOp, it transform to internal before send
@@ -105,6 +106,8 @@ class AppEntity(BaseModel):
105
106
  self.loopConditions = [self.loopConditions]
106
107
  if isinstance(self.loopConditionsStructure, BoolOp):
107
108
  self.loopConditionsStructure = self.loopConditionsStructure.internal()
109
+ if isinstance(self.cfg, Dict):
110
+ self.cfg = json.dumps(self.cfg)
108
111
 
109
112
  def simplify(self) -> None:
110
113
  if isinstance(self.conditionsStructure, InternalBoolOp):
@@ -156,7 +159,7 @@ class MainPipelineCfg(BaseModel):
156
159
  conditions: Dict[str, Condition]
157
160
  results: Dict[str, List[Result]]
158
161
  pullCollectionPolicy: PullCollectionPolicy
159
- cfg: str
162
+ cfg: Alias.Json
160
163
  infoUrl: Optional[str] = None
161
164
  debugMode: bool
162
165
  coreManage: bool
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: malevich-coretools
3
- Version: 0.3.63
3
+ Version: 0.3.64
4
4
  Author: Andrew Pogrebnoj
5
5
  Author-email: andrew@onjulius.co
6
6
  License-File: LICENSE
@@ -3,7 +3,7 @@ malevich_coretools/utils.py,sha256=nc88BxU6gbq5ANiYt3XgRp6YzMFJpFrOWnCtdWnYUBY,2
3
3
  malevich_coretools/abstract/__init__.py,sha256=6vQ08c8HPYyT_pPkKlc-EwQKE8xG3HTEo2p_GiI5rik,142
4
4
  malevich_coretools/abstract/abstract.py,sha256=QJMMzW98agH8pYWNjLPvshXC5jK3zAEyqJ0oK4ZfZ34,17695
5
5
  malevich_coretools/abstract/operations.py,sha256=cWlo2xzW-rzkTInzpDjBYeL68KfLYqSpZJRzCQ4OzjA,3070
6
- malevich_coretools/abstract/pipeline.py,sha256=HwhYp5G9yaZYaeDypChfpNd2W-kmJQfM9I54uek0B9k,7914
6
+ malevich_coretools/abstract/pipeline.py,sha256=DScnLqMSeF2k29RqblZBm5eRWquQDSkTSYUqwjkO-S0,8016
7
7
  malevich_coretools/abstract/statuses.py,sha256=9ISSw_evsylBshLXoU44TCoFOrZm4bXIxyAFFDqdUWc,333
8
8
  malevich_coretools/admin/__init__.py,sha256=zdIcHs3T_NZ8HYWts-O7OpBEWHIu779QDZMGF5HRCLg,35
9
9
  malevich_coretools/admin/utils.py,sha256=mGu-zge5FHW2Z2TDhE3YOhOlw2x8NA2CV_XKsY-g4nE,10378
@@ -21,8 +21,8 @@ malevich_coretools/secondary/kafka_utils.py,sha256=SIUnBFyfwsquN6MAUrEkKCw-1l797
21
21
  malevich_coretools/tools/__init__.py,sha256=jDxlCa5Dr6Y43qlI7JwsRAlBkKmFeTHTEnjNUvu-0iw,46
22
22
  malevich_coretools/tools/abstract.py,sha256=B1RW1FeNHrQ6r1k-cQZ4k4noCRXkIGt-JUwVoXEDkAg,4466
23
23
  malevich_coretools/tools/vast.py,sha256=63tvy70qQV9vnK0eWytlgjBGSnfA7l3kSIDgACBbMMs,12893
24
- malevich_coretools-0.3.63.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
25
- malevich_coretools-0.3.63.dist-info/METADATA,sha256=Rt7pUx-lQIsB7zjU8FuDZQcW6shGqijbdtaWPWIo-Co,347
26
- malevich_coretools-0.3.63.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
- malevich_coretools-0.3.63.dist-info/top_level.txt,sha256=wDX3s1Tso0otBPNrFRfXqyNpm48W4Bp5v6JfbITO2Z8,19
28
- malevich_coretools-0.3.63.dist-info/RECORD,,
24
+ malevich_coretools-0.3.64.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
25
+ malevich_coretools-0.3.64.dist-info/METADATA,sha256=E54P2VaEKpu-Pay1Zop_isqgr7V4XfprTRR10NWA86s,347
26
+ malevich_coretools-0.3.64.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
+ malevich_coretools-0.3.64.dist-info/top_level.txt,sha256=wDX3s1Tso0otBPNrFRfXqyNpm48W4Bp5v6JfbITO2Z8,19
28
+ malevich_coretools-0.3.64.dist-info/RECORD,,