osbot-utils 1.45.0__py3-none-any.whl → 1.46.0__py3-none-any.whl
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.
- osbot_utils/helpers/flows/Flow.py +2 -0
- osbot_utils/helpers/flows/decorators/flow.py +2 -2
- osbot_utils/version +1 -1
- {osbot_utils-1.45.0.dist-info → osbot_utils-1.46.0.dist-info}/METADATA +2 -2
- {osbot_utils-1.45.0.dist-info → osbot_utils-1.46.0.dist-info}/RECORD +7 -7
- {osbot_utils-1.45.0.dist-info → osbot_utils-1.46.0.dist-info}/LICENSE +0 -0
- {osbot_utils-1.45.0.dist-info → osbot_utils-1.46.0.dist-info}/WHEEL +0 -0
@@ -22,6 +22,7 @@ class Flow(Type_Safe):
|
|
22
22
|
flow_id : str
|
23
23
|
flow_name : str
|
24
24
|
flow_config : Flow__Config
|
25
|
+
flow_error : Exception = None
|
25
26
|
flow_target : callable
|
26
27
|
flow_args : tuple
|
27
28
|
flow_kwargs : dict
|
@@ -62,6 +63,7 @@ class Flow(Type_Safe):
|
|
62
63
|
with Stdout() as stdout:
|
63
64
|
self.flow_return_value = self.flow_target(*self.flow_args, **self.flow_kwargs) # todo, capture *args, **kwargs in logs
|
64
65
|
except Exception as error:
|
66
|
+
self.flow_error = error
|
65
67
|
self.logger.error(self.cformat.red(f"Error executing flow: {error}"))
|
66
68
|
|
67
69
|
self.log_captured_stdout (stdout)
|
@@ -3,8 +3,8 @@ from typing import TypeVar, Callable, Any
|
|
3
3
|
|
4
4
|
from osbot_utils.helpers.flows.Flow import Flow
|
5
5
|
|
6
|
-
# todo: find way to make the casting below work for the users of this decorator
|
7
|
-
|
6
|
+
# todo: BUG find way to make the casting below work for the users of this decorator
|
7
|
+
# since at the moment we need to use: flow = cast(Flow, _.create_flow()) where create_flow is the method with the @flow decorator
|
8
8
|
def flow(**flow_kwargs):
|
9
9
|
def decorator(function) -> Flow:
|
10
10
|
@wraps(function)
|
osbot_utils/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
v1.
|
1
|
+
v1.46.0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: osbot_utils
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.46.0
|
4
4
|
Summary: OWASP Security Bot - Utils
|
5
5
|
Home-page: https://github.com/owasp-sbot/OSBot-Utils
|
6
6
|
License: MIT
|
@@ -22,7 +22,7 @@ Description-Content-Type: text/markdown
|
|
22
22
|
|
23
23
|
Powerful Python util methods and classes that simplify common apis and tasks.
|
24
24
|
|
25
|
-

|
26
26
|
[](https://codecov.io/gh/owasp-sbot/OSBot-Utils)
|
27
27
|
|
28
28
|
|
@@ -154,12 +154,12 @@ osbot_utils/helpers/cache_requests/Cache__Requests__Row.py,sha256=h-yc7NkpScbHww
|
|
154
154
|
osbot_utils/helpers/cache_requests/Cache__Requests__Table.py,sha256=RgxAYhm-FIrXXteQRtD91pOLq8JXhSzxb51Jb6MTUdY,391
|
155
155
|
osbot_utils/helpers/cache_requests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
156
156
|
osbot_utils/helpers/cache_requests/flows/flow__Cache__Requests.py,sha256=xgx_oExxkcvRwQN1UCobimECIMUKGoIX5oGdCmp8Nyw,243
|
157
|
-
osbot_utils/helpers/flows/Flow.py,sha256=
|
157
|
+
osbot_utils/helpers/flows/Flow.py,sha256=hVIjIzotQyHc4Ms0K_Rh1Jtb5rg1zYWdfaUnBROLYxI,5747
|
158
158
|
osbot_utils/helpers/flows/Flow__Config.py,sha256=PE8hH8KXDHz1Ex93cPMuR9nkv8AoXzXQwVxleSDkU7k,341
|
159
159
|
osbot_utils/helpers/flows/Task.py,sha256=edbvtd78kzz5ghKp-awyOWop2QYxqDB0-aupcz0sjVM,3530
|
160
160
|
osbot_utils/helpers/flows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
161
161
|
osbot_utils/helpers/flows/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
162
|
-
osbot_utils/helpers/flows/decorators/flow.py,sha256=
|
162
|
+
osbot_utils/helpers/flows/decorators/flow.py,sha256=LUL7bHjZ_lC3QoTNh-KsDZHzjE2u4mU-5EpZnfsEGuc,738
|
163
163
|
osbot_utils/helpers/flows/decorators/task.py,sha256=2Eg8abx7ky8PVKVQijy6Oji60UKW31nXmtYftqBDB0k,394
|
164
164
|
osbot_utils/helpers/html/Dict_To_Css.py,sha256=u6B4Mx7PXr-gDrTrs1hgknnvsZVK4Fic5LqedKjo-lk,1097
|
165
165
|
osbot_utils/helpers/html/Dict_To_Html.py,sha256=OlRSaDGOeseBNTxRB2ho5whqEacMXeAXWOfeVSEYqC4,3355
|
@@ -297,8 +297,8 @@ osbot_utils/utils/Toml.py,sha256=dqiegndCJF7V1YT1Tc-b0-Bl6QWyL5q30urmQwMXfMQ,140
|
|
297
297
|
osbot_utils/utils/Version.py,sha256=Ww6ChwTxqp1QAcxOnztkTicShlcx6fbNsWX5xausHrg,422
|
298
298
|
osbot_utils/utils/Zip.py,sha256=G6Hk_hDcm9yvWzhTKzhT0R_6f0NBIAchHqMxGb3kfh4,14037
|
299
299
|
osbot_utils/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
300
|
-
osbot_utils/version,sha256=
|
301
|
-
osbot_utils-1.
|
302
|
-
osbot_utils-1.
|
303
|
-
osbot_utils-1.
|
304
|
-
osbot_utils-1.
|
300
|
+
osbot_utils/version,sha256=2UVhPxE0DB52FVzBzTdqVU8YPmmHK5prh4BaymedynQ,8
|
301
|
+
osbot_utils-1.46.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
302
|
+
osbot_utils-1.46.0.dist-info/METADATA,sha256=QbqZVF7WvOz21zrolLt3nURWtjuMBHQY18RcXUkb01c,1266
|
303
|
+
osbot_utils-1.46.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
304
|
+
osbot_utils-1.46.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|