dotflow 0.8.2.dev1__tar.gz → 0.8.2.dev2__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.2.dev1 → dotflow-0.8.2.dev2}/PKG-INFO +2 -2
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/README.md +1 -1
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/__init__.py +1 -1
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/cli/commands/start.py +1 -1
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/cli/setup.py +2 -2
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/action.py +2 -1
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/config.py +1 -1
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/execution.py +3 -3
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/task.py +2 -2
- dotflow-0.8.2.dev2/dotflow/core/types/__init__.py +10 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/workflow.py +2 -2
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/log.py +1 -1
- dotflow-0.8.2.dev2/dotflow/utils/__init__.py +15 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/pyproject.toml +2 -2
- dotflow-0.8.2.dev1/dotflow/core/models/__init__.py +0 -10
- dotflow-0.8.2.dev1/dotflow/core/utils/__init__.py +0 -15
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/LICENSE +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/abc/__init__.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/abc/file.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/abc/http.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/abc/tcp.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/cli/__init__.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/cli/command.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/cli/commands/__init__.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/cli/commands/init.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/cli/commands/server.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/cli/validators/__init__.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/cli/validators/start.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/__init__.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/context.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/decorators/__init__.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/decorators/action.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/decorators/retry.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/decorators/time.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/dotflow.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/exception.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/module.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/serializers/__init__.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/serializers/task.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/serializers/transport.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/core/serializers/workflow.py +0 -0
- {dotflow-0.8.2.dev1/dotflow/core/models → dotflow-0.8.2.dev2/dotflow/core/types}/execution.py +0 -0
- {dotflow-0.8.2.dev1/dotflow/core/models → dotflow-0.8.2.dev2/dotflow/core/types}/status.py +0 -0
- {dotflow-0.8.2.dev1/dotflow/core/models → dotflow-0.8.2.dev2/dotflow/core/types}/worflow.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/main.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/providers/__init__.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/providers/zeromq.py +0 -0
- {dotflow-0.8.2.dev1 → dotflow-0.8.2.dev2}/dotflow/settings.py +0 -0
- {dotflow-0.8.2.dev1/dotflow/core → dotflow-0.8.2.dev2/dotflow}/utils/basic_functions.py +0 -0
- {dotflow-0.8.2.dev1/dotflow/core → dotflow-0.8.2.dev2/dotflow}/utils/error_handler.py +0 -0
- {dotflow-0.8.2.dev1/dotflow/core → dotflow-0.8.2.dev2/dotflow}/utils/tools.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: dotflow
|
|
3
|
-
Version: 0.8.2.
|
|
3
|
+
Version: 0.8.2.dev2
|
|
4
4
|
Summary: 🎲 Dotflow turns an idea into flow!
|
|
5
5
|
License: MIT License
|
|
6
6
|
|
|
@@ -164,7 +164,7 @@ workflow.start()
|
|
|
164
164
|
|03| [cli_with_mode](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_mode.py) |
|
|
165
165
|
|04| [cli_with_output_context](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_output_context.py) |
|
|
166
166
|
|05| [cli_with_path](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_path.py) |
|
|
167
|
-
|06| [
|
|
167
|
+
|06| [simple_cli](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_cli.py) |
|
|
168
168
|
|07| [simple_class_workflow](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_class_workflow.py) |
|
|
169
169
|
|08| [simple_function_workflow_with_error](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_function_workflow_with_error.py) |
|
|
170
170
|
|09| [simple_function_workflow](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_function_workflow.py) |
|
|
@@ -120,7 +120,7 @@ workflow.start()
|
|
|
120
120
|
|03| [cli_with_mode](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_mode.py) |
|
|
121
121
|
|04| [cli_with_output_context](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_output_context.py) |
|
|
122
122
|
|05| [cli_with_path](https://github.com/dotflow-io/dotflow/blob/master/examples/cli_with_path.py) |
|
|
123
|
-
|06| [
|
|
123
|
+
|06| [simple_cli](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_cli.py) |
|
|
124
124
|
|07| [simple_class_workflow](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_class_workflow.py) |
|
|
125
125
|
|08| [simple_function_workflow_with_error](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_function_workflow_with_error.py) |
|
|
126
126
|
|09| [simple_function_workflow](https://github.com/dotflow-io/dotflow/blob/master/examples/simple_function_workflow.py) |
|
|
@@ -5,8 +5,8 @@ from rich import print # type: ignore
|
|
|
5
5
|
from dotflow import __version__, __description__
|
|
6
6
|
from dotflow.log import logger
|
|
7
7
|
from dotflow.settings import Settings as settings
|
|
8
|
-
from dotflow.
|
|
9
|
-
from dotflow.core.
|
|
8
|
+
from dotflow.utils.basic_functions import basic_callback
|
|
9
|
+
from dotflow.core.types.execution import TypeExecution
|
|
10
10
|
from dotflow.core.exception import (
|
|
11
11
|
MissingActionDecorator,
|
|
12
12
|
ExecutionModeNotExist,
|
|
@@ -56,7 +56,8 @@ class Action(object):
|
|
|
56
56
|
|
|
57
57
|
if type(self.func) is type:
|
|
58
58
|
if hasattr(self.func, "__init__"):
|
|
59
|
-
|
|
59
|
+
if hasattr(self.func.__init__, "__code__"):
|
|
60
|
+
self.params = [param for param in self.func.__init__.__code__.co_varnames]
|
|
60
61
|
|
|
61
62
|
def _get_context(self, kwargs: Dict):
|
|
62
63
|
context = {}
|
|
@@ -6,7 +6,7 @@ from typing import Callable
|
|
|
6
6
|
from dotflow.core.action import Action
|
|
7
7
|
from dotflow.core.context import Context
|
|
8
8
|
from dotflow.core.task import Task
|
|
9
|
-
from dotflow.core.
|
|
9
|
+
from dotflow.core.types import TaskStatus
|
|
10
10
|
|
|
11
11
|
from dotflow.core.decorators import time
|
|
12
12
|
|
|
@@ -63,12 +63,12 @@ class Execution:
|
|
|
63
63
|
previous_context=self.task.previous_context,
|
|
64
64
|
)
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
object_attributes = [
|
|
67
67
|
type(getattr(current_context.storage, param)) is Action
|
|
68
68
|
for param in dir(current_context.storage)
|
|
69
69
|
]
|
|
70
70
|
|
|
71
|
-
if True in
|
|
71
|
+
if True in object_attributes:
|
|
72
72
|
current_context = self._execution_with_class(
|
|
73
73
|
class_instance=current_context.storage
|
|
74
74
|
)
|
|
@@ -9,9 +9,9 @@ from dotflow.core.action import Action
|
|
|
9
9
|
from dotflow.core.context import Context
|
|
10
10
|
from dotflow.core.module import Module
|
|
11
11
|
from dotflow.core.exception import MissingActionDecorator
|
|
12
|
-
from dotflow.core.
|
|
12
|
+
from dotflow.core.types.status import TaskStatus
|
|
13
13
|
from dotflow.settings import Settings as settings
|
|
14
|
-
from dotflow.
|
|
14
|
+
from dotflow.utils import basic_callback, traceback_error, message_error, copy_file
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class TaskInstance:
|
|
@@ -9,9 +9,9 @@ from typing import Callable, List
|
|
|
9
9
|
from dotflow.core.context import Context
|
|
10
10
|
from dotflow.core.execution import Execution
|
|
11
11
|
from dotflow.core.exception import ExecutionModeNotExist
|
|
12
|
-
from dotflow.core.
|
|
12
|
+
from dotflow.core.types import TypeExecution, TaskStatus
|
|
13
13
|
from dotflow.core.task import Task
|
|
14
|
-
from dotflow.
|
|
14
|
+
from dotflow.utils import basic_callback
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class Workflow:
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Utils __init__ module."""
|
|
2
|
+
|
|
3
|
+
from dotflow.utils.error_handler import traceback_error, message_error
|
|
4
|
+
from dotflow.utils.basic_functions import basic_function, basic_callback
|
|
5
|
+
from dotflow.utils.tools import make_dir, copy_file
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"traceback_error",
|
|
10
|
+
"message_error",
|
|
11
|
+
"basic_function",
|
|
12
|
+
"basic_callback",
|
|
13
|
+
"make_dir",
|
|
14
|
+
"copy_file"
|
|
15
|
+
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "dotflow"
|
|
3
|
-
version = "0.8.2.
|
|
3
|
+
version = "0.8.2.dev2"
|
|
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.2.
|
|
34
|
+
version = "0.8.2.dev2"
|
|
35
35
|
description = "🎲 Dotflow turns an idea into flow!"
|
|
36
36
|
authors = ["Fernando Celmer <email@fernandocelmer.com>"]
|
|
37
37
|
readme = "README.md"
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"""Utils __init__ module."""
|
|
2
|
-
|
|
3
|
-
from dotflow.core.utils.error_handler import traceback_error, message_error
|
|
4
|
-
from dotflow.core.utils.basic_functions import basic_function, basic_callback
|
|
5
|
-
from dotflow.core.utils.tools import make_dir, copy_file
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
__all__ = [
|
|
9
|
-
"traceback_error",
|
|
10
|
-
"message_error",
|
|
11
|
-
"basic_function",
|
|
12
|
-
"basic_callback",
|
|
13
|
-
"make_dir",
|
|
14
|
-
"copy_file"
|
|
15
|
-
]
|
|
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
|
{dotflow-0.8.2.dev1/dotflow/core/models → dotflow-0.8.2.dev2/dotflow/core/types}/execution.py
RENAMED
|
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
|