malevich-coretools 0.3.28__tar.gz → 0.3.29__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.

Potentially problematic release.


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

Files changed (37) hide show
  1. {malevich_coretools-0.3.28/malevich_coretools.egg-info → malevich_coretools-0.3.29}/PKG-INFO +1 -1
  2. malevich_coretools-0.3.29/VERSION +1 -0
  3. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/abstract/pipeline.py +20 -4
  4. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29/malevich_coretools.egg-info}/PKG-INFO +1 -1
  5. malevich_coretools-0.3.28/VERSION +0 -1
  6. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/LICENSE +0 -0
  7. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/MANIFEST.in +0 -0
  8. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/README.md +0 -0
  9. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/__init__.py +0 -0
  10. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/abstract/__init__.py +0 -0
  11. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/abstract/abstract.py +0 -0
  12. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/abstract/statuses.py +0 -0
  13. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/admin/__init__.py +0 -0
  14. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/admin/utils.py +0 -0
  15. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/batch/__init__.py +0 -0
  16. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/batch/utils.py +0 -0
  17. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/funcs/__init__.py +0 -0
  18. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/funcs/checks.py +0 -0
  19. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/funcs/funcs.py +0 -0
  20. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/funcs/helpers.py +0 -0
  21. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/secondary/__init__.py +0 -0
  22. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/secondary/config.py +0 -0
  23. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/secondary/const.py +0 -0
  24. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/secondary/helpers.py +0 -0
  25. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/secondary/kafka_utils.py +0 -0
  26. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/tools/__init__.py +0 -0
  27. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/tools/abstract.py +0 -0
  28. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/tools/vast.py +0 -0
  29. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools/utils.py +0 -0
  30. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools.egg-info/SOURCES.txt +0 -0
  31. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools.egg-info/dependency_links.txt +0 -0
  32. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools.egg-info/requires.txt +0 -0
  33. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/malevich_coretools.egg-info/top_level.txt +0 -0
  34. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/pyproject.toml +0 -0
  35. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/requirements.txt +0 -0
  36. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/setup.cfg +0 -0
  37. {malevich_coretools-0.3.28 → malevich_coretools-0.3.29}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: malevich-coretools
3
- Version: 0.3.28
3
+ Version: 0.3.29
4
4
  Author: Andrew Pogrebnoj
5
5
  Author-email: andrew@onjulius.co
6
6
  License-File: LICENSE
@@ -0,0 +1 @@
1
+ 0.3.29
@@ -33,7 +33,7 @@ class BaseArgument(BaseModel):
33
33
 
34
34
  class Argument(BaseArgument):
35
35
  group: Optional[List[BaseArgument]] = None # for constructed dfs, sink
36
- # conditions: Optional[Dict[str, bool]] = None # valid only for alternative, bindConditionId -> value, must be specified explicitly, then it will be derived from the pipeline structure
36
+ conditions: Optional[Dict[str, bool]] = None # valid only for alternative, bindConditionId -> value, must be specified explicitly, then it will be derived from the pipeline structure
37
37
 
38
38
  def validation(self) -> None:
39
39
  if self.group is not None:
@@ -44,9 +44,25 @@ class Argument(BaseArgument):
44
44
  assert (self.id is not None) + (self.collectionName is not None) + (self.collectionId is not None) == 1, "one way of constructing the argument must be chosen"
45
45
 
46
46
 
47
- class AlternativeArgument(Argument):
48
- # alternative: Optional[List[Argument]] = None # if set - should be only one valid argument with conditions
49
- pass
47
+ class AlternativeArgument(BaseArgument):
48
+ group: Optional[List[BaseArgument]] = None # for constructed dfs, sink
49
+ alternative: Optional[List[Argument]] = None # if set - should be only one valid argument with conditions
50
+
51
+ def validation(self) -> None:
52
+ if self.group is not None:
53
+ assert self.id is None and self.collectionName is None and self.collectionId is None, "one way of constructing the argument must be chosen"
54
+ for subarg in self.group:
55
+ subarg.validation()
56
+ elif self.alternative is not None:
57
+ for alt_arg in self.alternative:
58
+ if alt_arg.group is not None:
59
+ assert alt_arg.id is None and alt_arg.collectionName is None and alt_arg.collectionId is None, "one way of constructing the argument must be chosen"
60
+ for subarg in alt_arg.group:
61
+ subarg.validation()
62
+ else:
63
+ assert (self.id is not None) + (self.collectionName is not None) + (self.collectionId is not None) == 1, "one way of constructing the argument must be chosen"
64
+ else:
65
+ assert (self.id is not None) + (self.collectionName is not None) + (self.collectionId is not None) == 1, "one way of constructing the argument must be chosen"
50
66
 
51
67
 
52
68
  class AppEntity(BaseModel):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: malevich-coretools
3
- Version: 0.3.28
3
+ Version: 0.3.29
4
4
  Author: Andrew Pogrebnoj
5
5
  Author-email: andrew@onjulius.co
6
6
  License-File: LICENSE
@@ -1 +0,0 @@
1
- 0.3.28