dotflow 0.8.0.dev2__tar.gz → 0.8.0.dev3__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.
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/PKG-INFO +1 -1
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/__init__.py +1 -1
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/execution.py +18 -7
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/pyproject.toml +2 -2
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/LICENSE +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/README.md +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/abc/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/abc/file.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/abc/http.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/abc/tcp.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/cli/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/cli/command.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/cli/commands/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/cli/commands/init.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/cli/commands/server.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/cli/commands/start.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/cli/setup.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/cli/validators/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/cli/validators/start.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/action.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/config.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/context.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/decorators/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/decorators/action.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/decorators/retry.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/decorators/time.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/dotflow.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/exception.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/models/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/models/execution.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/models/status.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/models/worflow.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/module.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/serializers/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/serializers/task.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/serializers/transport.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/serializers/workflow.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/task.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/utils/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/utils/basic_functions.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/utils/error_handler.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/utils/tools.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/core/workflow.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/log.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/main.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/providers/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/providers/zeromq.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev3}/dotflow/settings.py +0 -0
|
@@ -26,19 +26,30 @@ class Execution:
|
|
|
26
26
|
|
|
27
27
|
self._excution()
|
|
28
28
|
|
|
29
|
-
def _execution_with_class(self,
|
|
29
|
+
def _execution_with_class(self, class_instance: Callable):
|
|
30
30
|
context = Context(storage=[])
|
|
31
31
|
|
|
32
|
-
for func_name in dir(
|
|
33
|
-
additional_function = getattr(
|
|
32
|
+
for func_name in dir(class_instance):
|
|
33
|
+
additional_function = getattr(class_instance, func_name)
|
|
34
34
|
if isinstance(additional_function, Action):
|
|
35
35
|
try:
|
|
36
|
-
context.storage.append(
|
|
36
|
+
context.storage.append(
|
|
37
|
+
additional_function(
|
|
38
|
+
initial_context=self.task.initial_context,
|
|
39
|
+
previous_context=self.task.previous_context
|
|
40
|
+
)
|
|
41
|
+
)
|
|
37
42
|
except TypeError:
|
|
38
|
-
context.storage.append(
|
|
43
|
+
context.storage.append(
|
|
44
|
+
additional_function(
|
|
45
|
+
class_instance,
|
|
46
|
+
initial_context=self.task.initial_context,
|
|
47
|
+
previous_context=self.task.previous_context
|
|
48
|
+
)
|
|
49
|
+
)
|
|
39
50
|
|
|
40
51
|
if not context.storage:
|
|
41
|
-
return Context(storage=
|
|
52
|
+
return Context(storage=class_instance)
|
|
42
53
|
|
|
43
54
|
return context
|
|
44
55
|
|
|
@@ -52,7 +63,7 @@ class Execution:
|
|
|
52
63
|
|
|
53
64
|
if hasattr(current_context.storage.__init__, "__code__"):
|
|
54
65
|
current_context = self._execution_with_class(
|
|
55
|
-
|
|
66
|
+
class_instance=current_context.storage
|
|
56
67
|
)
|
|
57
68
|
|
|
58
69
|
self.task.status = TaskStatus.COMPLETED
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "dotflow"
|
|
3
|
-
version = "0.8.0.
|
|
3
|
+
version = "0.8.0.dev3"
|
|
4
4
|
authors = [
|
|
5
5
|
{ name="Fernando Celmer", email="email@fernandocelmer.com" },
|
|
6
6
|
]
|
|
@@ -31,7 +31,7 @@ Documentation = "https://github.com/dotflow-io/dotflow/blob/master/README.md"
|
|
|
31
31
|
|
|
32
32
|
[tool.poetry]
|
|
33
33
|
name = "dotflow"
|
|
34
|
-
version = "0.8.0.
|
|
34
|
+
version = "0.8.0.dev3"
|
|
35
35
|
description = "🎲 Dotflow turns an idea into flow!"
|
|
36
36
|
authors = ["Fernando Celmer <email@fernandocelmer.com>"]
|
|
37
37
|
readme = "README.md"
|
|
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
|