osbot-utils 1.24.0__py3-none-any.whl → 1.25.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/trace/Trace_Call.py +3 -2
- osbot_utils/helpers/trace/Trace_Call__Handler.py +1 -1
- osbot_utils/utils/Python_Logger.py +2 -1
- osbot_utils/version +1 -1
- {osbot_utils-1.24.0.dist-info → osbot_utils-1.25.0.dist-info}/METADATA +2 -2
- {osbot_utils-1.24.0.dist-info → osbot_utils-1.25.0.dist-info}/RECORD +8 -8
- {osbot_utils-1.24.0.dist-info → osbot_utils-1.25.0.dist-info}/LICENSE +0 -0
- {osbot_utils-1.24.0.dist-info → osbot_utils-1.25.0.dist-info}/WHEEL +0 -0
@@ -11,7 +11,7 @@ from osbot_utils.helpers.trace.Trace_Call__View_Model import Trace_Call__V
|
|
11
11
|
|
12
12
|
|
13
13
|
def trace_calls(title = None , print_traces = True , show_locals = False, source_code = False ,
|
14
|
-
ignore = None , include = None , show_path = False, duration_bigger_than = 0 ,
|
14
|
+
ignore = None , include = None , show_path = False, duration_bigger_than = 0 , trace_depth=0,
|
15
15
|
max_string = None , show_types = False, show_duration = False ,# show_caller = False , # todo: add back when show_caller is working again
|
16
16
|
show_class = False, contains = None , show_internals = False, enabled = True ,
|
17
17
|
extra_data = False, show_lines = False, print_lines = False, show_types_padding = None , duration_padding=None):
|
@@ -30,7 +30,8 @@ def trace_calls(title = None , print_traces = True , show_locals = Fa
|
|
30
30
|
capture_extra_data=extra_data,
|
31
31
|
print_padding_parent_info= show_types_padding, print_padding_duration=duration_padding,
|
32
32
|
print_lines_on_exit=print_lines, trace_enabled=enabled,
|
33
|
-
trace_capture_lines=show_lines or print_lines
|
33
|
+
trace_capture_lines=show_lines or print_lines,
|
34
|
+
trace_up_to_depth=trace_depth)
|
34
35
|
|
35
36
|
config = (Trace_Call__Config().update_from_kwargs (**config_kwargs))
|
36
37
|
|
@@ -168,7 +168,7 @@ class Trace_Call__Handler(Kwargs_To_Self):
|
|
168
168
|
capture = False
|
169
169
|
|
170
170
|
for item in self.config.trace_ignore_start_with: # Check if the module should be ignored
|
171
|
-
if module.startswith(item):
|
171
|
+
if module.startswith(item) or func_name.startswith(item):
|
172
172
|
capture = False
|
173
173
|
break
|
174
174
|
return capture
|
@@ -99,7 +99,8 @@ class Python_Logger(Type_Safe):
|
|
99
99
|
def setup(self, logger_name=None, log_level=None,add_console_logger=False, add_memory_logger=True):
|
100
100
|
if logger_name:
|
101
101
|
self.logger_name = logger_name
|
102
|
-
self.logger
|
102
|
+
if self.logger is None:
|
103
|
+
self.logger = logging.getLogger(self.logger_name)
|
103
104
|
self.setup_log_methods()
|
104
105
|
self.set_log_level(log_level)
|
105
106
|
if add_console_logger:
|
osbot_utils/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
v1.
|
1
|
+
v1.25.0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: osbot_utils
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.25.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
|
|
@@ -226,10 +226,10 @@ osbot_utils/helpers/ssh/SSH__Linux__Amazon.py,sha256=ZJFb7LFTvclAuhH5OoOtJ361NoX
|
|
226
226
|
osbot_utils/helpers/ssh/SSH__Python.py,sha256=O2DAwkbXzwkis8lffoqIL2NPSfYcN44Mr8i9Ey2iMKk,2066
|
227
227
|
osbot_utils/helpers/ssh/TestCase__SSH.py,sha256=rlhkiVr1OR_3uiwqK2dVZ-yBwZZpUhMq6BPT2p21H1s,1598
|
228
228
|
osbot_utils/helpers/ssh/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
229
|
-
osbot_utils/helpers/trace/Trace_Call.py,sha256=
|
229
|
+
osbot_utils/helpers/trace/Trace_Call.py,sha256=WXw1QyHxVrkKk24NlMbrsLQdbQTgN2ocwEFqkfB6n2E,6408
|
230
230
|
osbot_utils/helpers/trace/Trace_Call__Config.py,sha256=6nJplzrY1adz3WcwTIuwEhBCk1P0U0NbyWRzDyIox_Q,3250
|
231
231
|
osbot_utils/helpers/trace/Trace_Call__Graph.py,sha256=HCrXRKQI42DIQxxyFLcaosWiOcUyoITbeV17ICdXcXM,1156
|
232
|
-
osbot_utils/helpers/trace/Trace_Call__Handler.py,sha256=
|
232
|
+
osbot_utils/helpers/trace/Trace_Call__Handler.py,sha256=3gEX-DykEFixfBmD0jBdMhnTujxhNbXkjOhqxNTc9ac,11563
|
233
233
|
osbot_utils/helpers/trace/Trace_Call__Print_Lines.py,sha256=cy7zLv0_JNxdOIQPfZk6J9bv6AkIW6O643w0ykClXbw,4820
|
234
234
|
osbot_utils/helpers/trace/Trace_Call__Print_Traces.py,sha256=2LGeWMGP1uhSojGMmJmL3bH2B5LFIlfYEqEPNqoyKJw,8628
|
235
235
|
osbot_utils/helpers/trace/Trace_Call__Stack.py,sha256=pIvZ2yP4tymOQraUR2N5R-qlmg5QijyLxt85zmMajUs,7462
|
@@ -276,15 +276,15 @@ osbot_utils/utils/Misc.py,sha256=ljscBemI5wOhfkl1BVpsqshacTOCKkOisV4er9xPCWM,166
|
|
276
276
|
osbot_utils/utils/Objects.py,sha256=WFH3oeXR1CU03oyzXfcIlktcoXQuKw9cIJn8xTs02AE,14654
|
277
277
|
osbot_utils/utils/Png.py,sha256=V1juGp6wkpPigMJ8HcxrPDIP4bSwu51oNkLI8YqP76Y,1172
|
278
278
|
osbot_utils/utils/Process.py,sha256=lr3CTiEkN3EiBx3ZmzYmTKlQoPdkgZBRjPulMxG-zdo,2357
|
279
|
-
osbot_utils/utils/Python_Logger.py,sha256=
|
279
|
+
osbot_utils/utils/Python_Logger.py,sha256=tx8N6wRKL3RDHboDRKZn8SirSJdSAE9cACyJkxrThZ8,12792
|
280
280
|
osbot_utils/utils/Status.py,sha256=Yq4s0TelXgn0i2QjCP9V8mP30GabXp_UL-jjM6Iwiw4,4305
|
281
281
|
osbot_utils/utils/Str.py,sha256=kxdY8ROX4FdJtCaMTfOc8fK_xcDICprNkefHu2MMNU4,2585
|
282
282
|
osbot_utils/utils/Toml.py,sha256=dqiegndCJF7V1YT1Tc-b0-Bl6QWyL5q30urmQwMXfMQ,1402
|
283
283
|
osbot_utils/utils/Version.py,sha256=Ww6ChwTxqp1QAcxOnztkTicShlcx6fbNsWX5xausHrg,422
|
284
284
|
osbot_utils/utils/Zip.py,sha256=YFahdBguVK71mLdYy4m7mqVAQ5al-60QnTmYK-txCfY,6784
|
285
285
|
osbot_utils/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
286
|
-
osbot_utils/version,sha256=
|
287
|
-
osbot_utils-1.
|
288
|
-
osbot_utils-1.
|
289
|
-
osbot_utils-1.
|
290
|
-
osbot_utils-1.
|
286
|
+
osbot_utils/version,sha256=4glzNWA9PqrQvUoJNhQnXEPOFZ3gsxImb8puqSWd__8,8
|
287
|
+
osbot_utils-1.25.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
288
|
+
osbot_utils-1.25.0.dist-info/METADATA,sha256=ykoyKCr4PVmOI3FV-78_vEaV-MVD40qXF9RwcMtsIkg,1266
|
289
|
+
osbot_utils-1.25.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
290
|
+
osbot_utils-1.25.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|