dotflow 0.8.0.dev2__tar.gz → 0.8.0.dev4__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.dev4}/PKG-INFO +22 -21
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/README.md +21 -20
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/__init__.py +1 -1
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/execution.py +18 -7
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/pyproject.toml +2 -2
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/LICENSE +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/abc/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/abc/file.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/abc/http.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/abc/tcp.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/command.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/commands/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/commands/init.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/commands/server.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/commands/start.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/setup.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/validators/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/validators/start.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/action.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/config.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/context.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/decorators/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/decorators/action.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/decorators/retry.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/decorators/time.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/dotflow.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/exception.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/models/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/models/execution.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/models/status.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/models/worflow.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/module.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/serializers/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/serializers/task.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/serializers/transport.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/serializers/workflow.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/task.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/utils/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/utils/basic_functions.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/utils/error_handler.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/utils/tools.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/workflow.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/log.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/main.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/providers/__init__.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/providers/zeromq.py +0 -0
- {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/settings.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: dotflow
|
|
3
|
-
Version: 0.8.0.
|
|
3
|
+
Version: 0.8.0.dev4
|
|
4
4
|
Summary: 🎲 Dotflow turns an idea into flow!
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -161,26 +161,27 @@ workflow.start()
|
|
|
161
161
|
|--| ---------------------------------------------------------------------------------------------------------------------------------------- |
|
|
162
162
|
|01| [cli_with_callback](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_callback.py) |
|
|
163
163
|
|02| [cli_with_initial_context](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_initial_context.py) |
|
|
164
|
-
|03| [
|
|
165
|
-
|04| [
|
|
166
|
-
|05| [
|
|
167
|
-
|06| [
|
|
168
|
-
|07| [
|
|
169
|
-
|08| [
|
|
170
|
-
|09| [
|
|
171
|
-
|10| [
|
|
172
|
-
|11| [
|
|
173
|
-
|12| [
|
|
174
|
-
|13| [
|
|
175
|
-
|14| [
|
|
176
|
-
|15| [
|
|
177
|
-
|16| [
|
|
178
|
-
|17| [
|
|
179
|
-
|18| [
|
|
180
|
-
|19| [
|
|
181
|
-
|20| [
|
|
182
|
-
|21| [
|
|
183
|
-
|22| [
|
|
164
|
+
|03| [cli_with_mode](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_mode.py) |
|
|
165
|
+
|04| [cli_with_output_context](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_output_context.py) |
|
|
166
|
+
|05| [cli_with_path](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_path.py) |
|
|
167
|
+
|06| [cli](https://github.com/dotflow-io/dotflow/blob/master/examples/cli.py) |
|
|
168
|
+
|07| [simple_class_workflow](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_class_workflow.py) |
|
|
169
|
+
|08| [simple_function_workflow_with_error](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_function_workflow_with_error.py) |
|
|
170
|
+
|09| [simple_function_workflow](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_function_workflow.py) |
|
|
171
|
+
|10| [step_class_result_context](https://github.com/dotflow-io/dotflow/blob/master/examples/step_class_result_context.py) |
|
|
172
|
+
|11| [step_class_result_storage](https://github.com/dotflow-io/dotflow/blob/master/examples/step_class_result_storage.py) |
|
|
173
|
+
|12| [step_class_result_task](https://github.com/dotflow-io/dotflow/blob/master/examples/step_class_result_task.py) |
|
|
174
|
+
|13| [step_function_result_context](https://github.com/dotflow-io/dotflow/blob/master/examples/step_function_result_context.py) |
|
|
175
|
+
|14| [step_function_result_storage](https://github.com/dotflow-io/dotflow/blob/master/examples/step_function_result_storage.py) |
|
|
176
|
+
|15| [step_function_result_task](https://github.com/dotflow-io/dotflow/blob/master/examples/step_function_result_task.py) |
|
|
177
|
+
|16| [step_with_initial_context](https://github.com/dotflow-io/dotflow/blob/master/examples/step_with_initial_context.py) |
|
|
178
|
+
|17| [step_with_many_contexts](https://github.com/dotflow-io/dotflow/blob/master/examples/step_with_many_contexts.py) |
|
|
179
|
+
|18| [step_with_previous_context](https://github.com/dotflow-io/dotflow/blob/master/examples/step_with_previous_context.py) |
|
|
180
|
+
|19| [workflow_keep_going_true](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_keep_going_true.py) |
|
|
181
|
+
|20| [workflow_step_callback](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_step_callback.py) |
|
|
182
|
+
|21| [workflow_with_callback_failure](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_with_callback_failure.py) |
|
|
183
|
+
|22| [workflow_with_callback_success](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_with_callback_success.py) |
|
|
184
|
+
|23| [workflow_with_retry](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_with_retry.py) |
|
|
184
185
|
|
|
185
186
|
## Commit Style
|
|
186
187
|
|
|
@@ -117,26 +117,27 @@ workflow.start()
|
|
|
117
117
|
|--| ---------------------------------------------------------------------------------------------------------------------------------------- |
|
|
118
118
|
|01| [cli_with_callback](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_callback.py) |
|
|
119
119
|
|02| [cli_with_initial_context](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_initial_context.py) |
|
|
120
|
-
|03| [
|
|
121
|
-
|04| [
|
|
122
|
-
|05| [
|
|
123
|
-
|06| [
|
|
124
|
-
|07| [
|
|
125
|
-
|08| [
|
|
126
|
-
|09| [
|
|
127
|
-
|10| [
|
|
128
|
-
|11| [
|
|
129
|
-
|12| [
|
|
130
|
-
|13| [
|
|
131
|
-
|14| [
|
|
132
|
-
|15| [
|
|
133
|
-
|16| [
|
|
134
|
-
|17| [
|
|
135
|
-
|18| [
|
|
136
|
-
|19| [
|
|
137
|
-
|20| [
|
|
138
|
-
|21| [
|
|
139
|
-
|22| [
|
|
120
|
+
|03| [cli_with_mode](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_mode.py) |
|
|
121
|
+
|04| [cli_with_output_context](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_output_context.py) |
|
|
122
|
+
|05| [cli_with_path](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_path.py) |
|
|
123
|
+
|06| [cli](https://github.com/dotflow-io/dotflow/blob/master/examples/cli.py) |
|
|
124
|
+
|07| [simple_class_workflow](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_class_workflow.py) |
|
|
125
|
+
|08| [simple_function_workflow_with_error](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_function_workflow_with_error.py) |
|
|
126
|
+
|09| [simple_function_workflow](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_function_workflow.py) |
|
|
127
|
+
|10| [step_class_result_context](https://github.com/dotflow-io/dotflow/blob/master/examples/step_class_result_context.py) |
|
|
128
|
+
|11| [step_class_result_storage](https://github.com/dotflow-io/dotflow/blob/master/examples/step_class_result_storage.py) |
|
|
129
|
+
|12| [step_class_result_task](https://github.com/dotflow-io/dotflow/blob/master/examples/step_class_result_task.py) |
|
|
130
|
+
|13| [step_function_result_context](https://github.com/dotflow-io/dotflow/blob/master/examples/step_function_result_context.py) |
|
|
131
|
+
|14| [step_function_result_storage](https://github.com/dotflow-io/dotflow/blob/master/examples/step_function_result_storage.py) |
|
|
132
|
+
|15| [step_function_result_task](https://github.com/dotflow-io/dotflow/blob/master/examples/step_function_result_task.py) |
|
|
133
|
+
|16| [step_with_initial_context](https://github.com/dotflow-io/dotflow/blob/master/examples/step_with_initial_context.py) |
|
|
134
|
+
|17| [step_with_many_contexts](https://github.com/dotflow-io/dotflow/blob/master/examples/step_with_many_contexts.py) |
|
|
135
|
+
|18| [step_with_previous_context](https://github.com/dotflow-io/dotflow/blob/master/examples/step_with_previous_context.py) |
|
|
136
|
+
|19| [workflow_keep_going_true](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_keep_going_true.py) |
|
|
137
|
+
|20| [workflow_step_callback](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_step_callback.py) |
|
|
138
|
+
|21| [workflow_with_callback_failure](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_with_callback_failure.py) |
|
|
139
|
+
|22| [workflow_with_callback_success](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_with_callback_success.py) |
|
|
140
|
+
|23| [workflow_with_retry](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_with_retry.py) |
|
|
140
141
|
|
|
141
142
|
## Commit Style
|
|
142
143
|
|
|
@@ -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.dev4"
|
|
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.dev4"
|
|
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
|