osbot-utils 2.27.0__py3-none-any.whl → 2.28.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.
@@ -50,7 +50,10 @@ class Task(Type_Safe):
50
50
  return self.execute__after()
51
51
 
52
52
  def execute__before(self):
53
- self.task_flow = self.find_flow()
53
+ flow_from_stack = self.find_flow()
54
+ if flow_from_stack:
55
+ self.task_flow = flow_from_stack
56
+
54
57
  if self.task_flow is None:
55
58
  raise Exception("No Flow found for Task")
56
59
 
@@ -62,7 +62,7 @@ class Type_Safe:
62
62
  def json(self):
63
63
  return self.serialize_to_dict()
64
64
 
65
- def json__compress(self):
65
+ def json__compress(self): # todo: see if this is the best place to put these Type_Safe__Json_Compressor methods
66
66
  from osbot_utils.type_safe.shared.Type_Safe__Json_Compressor import Type_Safe__Json_Compressor
67
67
  return Type_Safe__Json_Compressor().compress(self)
68
68
 
@@ -97,7 +97,7 @@ class Type_Safe:
97
97
 
98
98
  return dict_to_obj(self.json())
99
99
 
100
- def serialize_to_dict(self): # todo: see if we need this method or if the .json() is enough
100
+ def serialize_to_dict(self): # todo: see if we need this method or if the .json() is enough
101
101
  return serialize_to_dict(self)
102
102
 
103
103
  def print(self):
@@ -110,4 +110,8 @@ class Type_Safe:
110
110
  from osbot_utils.type_safe.steps.Type_Safe__Step__From_Json import type_safe_step_from_json # circular dependency on Type_Safe
111
111
  return type_safe_step_from_json.from_json(cls, json_data, raise_on_not_found)
112
112
 
113
-
113
+ @classmethod
114
+ def from_json__compressed(cls, json_data): # todo: see if this is the best place to put these Type_Safe__Json_Compressor methods
115
+ from osbot_utils.type_safe.shared.Type_Safe__Json_Compressor import Type_Safe__Json_Compressor
116
+ json_data__decompressed = Type_Safe__Json_Compressor().decompress(json_data)
117
+ return cls.from_json(json_data__decompressed)
osbot_utils/version CHANGED
@@ -1 +1 @@
1
- v2.27.0
1
+ v2.28.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: osbot_utils
3
- Version: 2.27.0
3
+ Version: 2.28.0
4
4
  Summary: OWASP Security Bot - Utils
5
5
  License: MIT
6
6
  Author: Dinis Cruz
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
23
23
 
24
24
  Powerful Python util methods and classes that simplify common apis and tasks.
25
25
 
26
- ![Current Release](https://img.shields.io/badge/release-v2.27.0-blue)
26
+ ![Current Release](https://img.shields.io/badge/release-v2.28.0-blue)
27
27
  [![codecov](https://codecov.io/gh/owasp-sbot/OSBot-Utils/graph/badge.svg?token=GNVW0COX1N)](https://codecov.io/gh/owasp-sbot/OSBot-Utils)
28
28
 
29
29
 
@@ -137,7 +137,7 @@ osbot_utils/helpers/cache_requests/Cache__Requests__Table.py,sha256=BW7tXM0TFYma
137
137
  osbot_utils/helpers/cache_requests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
138
138
  osbot_utils/helpers/cache_requests/flows/flow__Cache__Requests.py,sha256=xgx_oExxkcvRwQN1UCobimECIMUKGoIX5oGdCmp8Nyw,243
139
139
  osbot_utils/helpers/flows/Flow.py,sha256=eSqv_pY7vDC1XmX65RyW4swnhQNtMwZXkXnc4De2oc0,13239
140
- osbot_utils/helpers/flows/Task.py,sha256=14f51WEaOWIIEiZlMhUtJ3YzK4PnJzvcGs8SivdOfBQ,6530
140
+ osbot_utils/helpers/flows/Task.py,sha256=AQ69b97woemCZxxBxluV5pqOlBU0KW4OpculC5Ix4nw,6605
141
141
  osbot_utils/helpers/flows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
142
142
  osbot_utils/helpers/flows/actions/Flow__Data.py,sha256=h9h5yVFIK0ZdXukNFgfRVV1XW0YQartVMcJTakwVqKY,5155
143
143
  osbot_utils/helpers/flows/actions/Flow__Events.py,sha256=g7KBafFeA7tV-v31v_m3MT__cZEX63gh8CehnZwRYU0,2840
@@ -294,7 +294,7 @@ osbot_utils/testing/performance/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
294
294
  osbot_utils/testing/performance/models/Model__Performance_Measure__Measurement.py,sha256=xT_uKzbSYo9AGiJgNmCHSt3ApneNNyKh8vsMVN6IJQ0,1127
295
295
  osbot_utils/testing/performance/models/Model__Performance_Measure__Result.py,sha256=k9HJYNLmW6sjRVsfpduSxHFiVANc1zmYtO_Oz9azpW8,755
296
296
  osbot_utils/testing/performance/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
297
- osbot_utils/type_safe/Type_Safe.py,sha256=tUz4rzghHSjyzIMuBYANJiTI87F9h9GZVkmvjh3hsQE,5707
297
+ osbot_utils/type_safe/Type_Safe.py,sha256=LOWRGOGpnRU2iTRLP47vUoyalK0vjFrWlnaghBIogWg,6267
298
298
  osbot_utils/type_safe/Type_Safe__Base.py,sha256=Bzrh8TxFglB0FEUAQTlgovlnFHnBN4lOX1Vu327r1Vc,5223
299
299
  osbot_utils/type_safe/Type_Safe__Dict.py,sha256=vE_Ut7MabBjOq5Hpr3vdFO5RNf-M-cL83S76CvxD-9g,2488
300
300
  osbot_utils/type_safe/Type_Safe__List.py,sha256=SzSIBkwSOAEpW_V2qh4-f0YHzmgB0T8PczBLbDgZGvg,1340
@@ -355,8 +355,8 @@ osbot_utils/utils/Toml.py,sha256=Rxl8gx7mni5CvBAK-Ai02EKw-GwtJdd3yeHT2kMloik,166
355
355
  osbot_utils/utils/Version.py,sha256=Ww6ChwTxqp1QAcxOnztkTicShlcx6fbNsWX5xausHrg,422
356
356
  osbot_utils/utils/Zip.py,sha256=pR6sKliUY0KZXmqNzKY2frfW-YVQEVbLKiyqQX_lc-8,14052
357
357
  osbot_utils/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
358
- osbot_utils/version,sha256=2yKGk7vQk8voS72-fsPKVRYwaYPim2jqyO2XPZKS4PU,8
359
- osbot_utils-2.27.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
360
- osbot_utils-2.27.0.dist-info/METADATA,sha256=sH6l_FyHwMRoGTxMYy2eJOdKAkc_pk7FegSFT_ejO0U,1329
361
- osbot_utils-2.27.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
362
- osbot_utils-2.27.0.dist-info/RECORD,,
358
+ osbot_utils/version,sha256=UbzDBZPY98UyBryCzA0kKO9CjEdrWfTme6oAH7T38yE,8
359
+ osbot_utils-2.28.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
360
+ osbot_utils-2.28.0.dist-info/METADATA,sha256=-RtnCiZmy4ROrr2I8Fvv2zBvHSLQd9xta4mSlXOb3ks,1329
361
+ osbot_utils-2.28.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
362
+ osbot_utils-2.28.0.dist-info/RECORD,,