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.
Files changed (49) hide show
  1. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/PKG-INFO +22 -21
  2. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/README.md +21 -20
  3. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/__init__.py +1 -1
  4. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/execution.py +18 -7
  5. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/pyproject.toml +2 -2
  6. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/LICENSE +0 -0
  7. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/abc/__init__.py +0 -0
  8. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/abc/file.py +0 -0
  9. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/abc/http.py +0 -0
  10. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/abc/tcp.py +0 -0
  11. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/__init__.py +0 -0
  12. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/command.py +0 -0
  13. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/commands/__init__.py +0 -0
  14. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/commands/init.py +0 -0
  15. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/commands/server.py +0 -0
  16. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/commands/start.py +0 -0
  17. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/setup.py +0 -0
  18. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/validators/__init__.py +0 -0
  19. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/cli/validators/start.py +0 -0
  20. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/__init__.py +0 -0
  21. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/action.py +0 -0
  22. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/config.py +0 -0
  23. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/context.py +0 -0
  24. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/decorators/__init__.py +0 -0
  25. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/decorators/action.py +0 -0
  26. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/decorators/retry.py +0 -0
  27. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/decorators/time.py +0 -0
  28. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/dotflow.py +0 -0
  29. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/exception.py +0 -0
  30. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/models/__init__.py +0 -0
  31. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/models/execution.py +0 -0
  32. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/models/status.py +0 -0
  33. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/models/worflow.py +0 -0
  34. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/module.py +0 -0
  35. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/serializers/__init__.py +0 -0
  36. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/serializers/task.py +0 -0
  37. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/serializers/transport.py +0 -0
  38. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/serializers/workflow.py +0 -0
  39. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/task.py +0 -0
  40. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/utils/__init__.py +0 -0
  41. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/utils/basic_functions.py +0 -0
  42. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/utils/error_handler.py +0 -0
  43. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/utils/tools.py +0 -0
  44. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/core/workflow.py +0 -0
  45. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/log.py +0 -0
  46. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/main.py +0 -0
  47. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/providers/__init__.py +0 -0
  48. {dotflow-0.8.0.dev2 → dotflow-0.8.0.dev4}/dotflow/providers/zeromq.py +0 -0
  49. {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.dev2
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| [cli_with_output](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_output.py) |
165
- |04| [cli_with_path](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_path.py) |
166
- |05| [cli](https://github.com/dotflow-io/dotflow/blob/master/examples/cli.py) |
167
- |06| [simple_class_workflow](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_class_workflow.py) |
168
- |07| [simple_function_workflow_with_error](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_function_workflow_with_error.py) |
169
- |08| [simple_function_workflow](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_function_workflow.py) |
170
- |09| [step_class_result_context](https://github.com/dotflow-io/dotflow/blob/master/examples/step_class_result_context.py) |
171
- |10| [step_class_result_storage](https://github.com/dotflow-io/dotflow/blob/master/examples/step_class_result_storage.py) |
172
- |11| [step_class_result_task](https://github.com/dotflow-io/dotflow/blob/master/examples/step_class_result_task.py) |
173
- |12| [step_function_result_context](https://github.com/dotflow-io/dotflow/blob/master/examples/step_function_result_context.py) |
174
- |13| [step_function_result_storage](https://github.com/dotflow-io/dotflow/blob/master/examples/step_function_result_storage.py) |
175
- |14| [step_function_result_task](https://github.com/dotflow-io/dotflow/blob/master/examples/step_function_result_task.py) |
176
- |15| [step_with_initial_context](https://github.com/dotflow-io/dotflow/blob/master/examples/step_with_initial_context.py) |
177
- |16| [step_with_many_contexts](https://github.com/dotflow-io/dotflow/blob/master/examples/step_with_many_contexts.py) |
178
- |17| [step_with_previous_context](https://github.com/dotflow-io/dotflow/blob/master/examples/step_with_previous_context.py) |
179
- |18| [workflow_keep_going_true](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_keep_going_true.py) |
180
- |19| [workflow_step_callback](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_step_callback.py) |
181
- |20| [workflow_with_callback_failure](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_with_callback_failure.py) |
182
- |21| [workflow_with_callback_success](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_with_callback_success.py) |
183
- |22| [workflow_with_retry](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_with_retry.py) |
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| [cli_with_output](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_output.py) |
121
- |04| [cli_with_path](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_path.py) |
122
- |05| [cli](https://github.com/dotflow-io/dotflow/blob/master/examples/cli.py) |
123
- |06| [simple_class_workflow](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_class_workflow.py) |
124
- |07| [simple_function_workflow_with_error](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_function_workflow_with_error.py) |
125
- |08| [simple_function_workflow](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_function_workflow.py) |
126
- |09| [step_class_result_context](https://github.com/dotflow-io/dotflow/blob/master/examples/step_class_result_context.py) |
127
- |10| [step_class_result_storage](https://github.com/dotflow-io/dotflow/blob/master/examples/step_class_result_storage.py) |
128
- |11| [step_class_result_task](https://github.com/dotflow-io/dotflow/blob/master/examples/step_class_result_task.py) |
129
- |12| [step_function_result_context](https://github.com/dotflow-io/dotflow/blob/master/examples/step_function_result_context.py) |
130
- |13| [step_function_result_storage](https://github.com/dotflow-io/dotflow/blob/master/examples/step_function_result_storage.py) |
131
- |14| [step_function_result_task](https://github.com/dotflow-io/dotflow/blob/master/examples/step_function_result_task.py) |
132
- |15| [step_with_initial_context](https://github.com/dotflow-io/dotflow/blob/master/examples/step_with_initial_context.py) |
133
- |16| [step_with_many_contexts](https://github.com/dotflow-io/dotflow/blob/master/examples/step_with_many_contexts.py) |
134
- |17| [step_with_previous_context](https://github.com/dotflow-io/dotflow/blob/master/examples/step_with_previous_context.py) |
135
- |18| [workflow_keep_going_true](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_keep_going_true.py) |
136
- |19| [workflow_step_callback](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_step_callback.py) |
137
- |20| [workflow_with_callback_failure](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_with_callback_failure.py) |
138
- |21| [workflow_with_callback_success](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_with_callback_success.py) |
139
- |22| [workflow_with_retry](https://github.com/dotflow-io/dotflow/blob/master/examples/workflow_with_retry.py) |
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
 
@@ -1,6 +1,6 @@
1
1
  """Dotflow __init__ module."""
2
2
 
3
- __version__ = "0.8.0.dev2"
3
+ __version__ = "0.8.0.dev4"
4
4
  __description__ = "🎲 Dotflow turns an idea into flow!"
5
5
 
6
6
  from .core.config import Config
@@ -26,19 +26,30 @@ class Execution:
26
26
 
27
27
  self._excution()
28
28
 
29
- def _execution_with_class(self, step_class: Callable):
29
+ def _execution_with_class(self, class_instance: Callable):
30
30
  context = Context(storage=[])
31
31
 
32
- for func_name in dir(step_class):
33
- additional_function = getattr(step_class, func_name)
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(additional_function())
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(additional_function(step_class))
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=step_class)
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
- step_class=current_context.storage
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.dev2"
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.dev2"
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