osbot-utils 1.44.0__py3-none-any.whl → 1.45.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/base_classes/Type_Safe.py +4 -4
- osbot_utils/context_managers/capture_duration.py +1 -8
- osbot_utils/context_managers/disable_root_loggers.py +0 -4
- osbot_utils/context_managers/print_duration.py +9 -0
- osbot_utils/decorators/lists/filter_list.py +3 -3
- osbot_utils/decorators/methods/capture_exception.py +2 -2
- osbot_utils/helpers/Dependency_Manager.py +26 -0
- osbot_utils/helpers/flows/Flow.py +51 -33
- osbot_utils/helpers/flows/Flow__Config.py +11 -0
- osbot_utils/helpers/flows/Task.py +70 -5
- osbot_utils/helpers/flows/decorators/__init__.py +0 -0
- osbot_utils/helpers/flows/decorators/flow.py +18 -0
- osbot_utils/helpers/flows/decorators/task.py +11 -0
- osbot_utils/helpers/html/Dict_To_Tags.py +5 -6
- osbot_utils/utils/Call_Stack.py +3 -0
- osbot_utils/utils/Zip.py +5 -0
- osbot_utils/version +1 -1
- {osbot_utils-1.44.0.dist-info → osbot_utils-1.45.0.dist-info}/METADATA +2 -2
- {osbot_utils-1.44.0.dist-info → osbot_utils-1.45.0.dist-info}/RECORD +21 -15
- {osbot_utils-1.44.0.dist-info → osbot_utils-1.45.0.dist-info}/LICENSE +0 -0
- {osbot_utils-1.44.0.dist-info → osbot_utils-1.45.0.dist-info}/WHEEL +0 -0
@@ -10,17 +10,17 @@ from decimal import Decimal
|
|
10
10
|
from enum import Enum, EnumMeta
|
11
11
|
from typing import List
|
12
12
|
from osbot_utils.base_classes.Type_Safe__List import Type_Safe__List
|
13
|
-
from osbot_utils.helpers.Random_Guid
|
13
|
+
from osbot_utils.helpers.Random_Guid import Random_Guid
|
14
14
|
from osbot_utils.utils.Dev import pprint
|
15
15
|
from osbot_utils.utils.Json import json_parse
|
16
16
|
from osbot_utils.utils.Misc import list_set
|
17
|
-
from osbot_utils.utils.Objects
|
17
|
+
from osbot_utils.utils.Objects import default_value, value_type_matches_obj_annotation_for_attr, \
|
18
18
|
raise_exception_on_obj_type_annotation_mismatch, obj_is_attribute_annotation_of_type, enum_from_value, \
|
19
19
|
obj_is_type_union_compatible, value_type_matches_obj_annotation_for_union_attr, \
|
20
20
|
convert_dict_to_value_from_obj_annotation
|
21
21
|
|
22
22
|
# Backport implementations of get_origin and get_args for Python 3.7
|
23
|
-
if sys.version_info < (3, 8):
|
23
|
+
if sys.version_info < (3, 8): # pragma: no cover
|
24
24
|
def get_origin(tp):
|
25
25
|
if isinstance(tp, typing._GenericAlias):
|
26
26
|
return tp.__origin__
|
@@ -39,7 +39,7 @@ else:
|
|
39
39
|
|
40
40
|
if sys.version_info >= (3, 10):
|
41
41
|
NoneType = types.NoneType
|
42
|
-
else:
|
42
|
+
else: # pragma: no cover
|
43
43
|
NoneType = type(None)
|
44
44
|
|
45
45
|
immutable_types = (bool, int, float, complex, str, tuple, frozenset, bytes, NoneType, EnumMeta)
|
@@ -27,11 +27,4 @@ class capture_duration(Type_Safe):
|
|
27
27
|
if self.action_name:
|
28
28
|
print(f'action "{self.action_name}" took: {self.seconds} seconds')
|
29
29
|
else:
|
30
|
-
print(f'action took: {self.seconds} seconds')
|
31
|
-
|
32
|
-
class print_duration(capture_duration):
|
33
|
-
|
34
|
-
def __exit__(self, exc_type, exc_val, exc_tb):
|
35
|
-
result = super().__exit__(exc_type, exc_val, exc_tb)
|
36
|
-
self.print()
|
37
|
-
return result
|
30
|
+
print(f'action took: {self.seconds} seconds')
|
@@ -3,9 +3,9 @@ from functools import wraps
|
|
3
3
|
def filter_list(function):
|
4
4
|
@wraps(function)
|
5
5
|
def wrapper(*args, **kwargs):
|
6
|
-
only_show = kwargs.pop('only_show', None)
|
7
|
-
values = function(*args, **kwargs)
|
8
|
-
if only_show:
|
6
|
+
only_show = kwargs.pop('only_show', None) # Directly extract and remove 'only_show' from kwargs if present
|
7
|
+
values = function(*args, **kwargs) # Call the decorated function
|
8
|
+
if only_show: # Filter the list of dictionaries to only include specified keys
|
9
9
|
return [{key: item[key] for key in only_show if key in item} for item in values]
|
10
10
|
return values
|
11
11
|
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import inspect
|
2
|
+
|
3
|
+
|
4
|
+
class Dependency_Manager:
|
5
|
+
def __init__(self):
|
6
|
+
self._dependencies = {}
|
7
|
+
|
8
|
+
def add_dependency(self, name: str, instance): # Register a dependency by name.
|
9
|
+
self._dependencies[name] = instance
|
10
|
+
|
11
|
+
def get_dependency(self, name: str): # Retrieve a dependency by name.
|
12
|
+
return self._dependencies.get(name, None)
|
13
|
+
|
14
|
+
def resolve_dependencies(self, func, *args, **kwargs): # Automatically inject dependencies based on function's parameters.
|
15
|
+
sig = inspect.signature(func) # Get the function's signature and parameters
|
16
|
+
bound_arguments = sig.bind_partial(*args, **kwargs)
|
17
|
+
|
18
|
+
|
19
|
+
for param_name, param in sig.parameters.items(): # Check parameters to see if we need to inject a dependency
|
20
|
+
if param_name not in bound_arguments.arguments:
|
21
|
+
if param_name in self._dependencies: # Inject dependency if available
|
22
|
+
bound_arguments.arguments[param_name] = self._dependencies[param_name]
|
23
|
+
|
24
|
+
return bound_arguments.args, bound_arguments.kwargs
|
25
|
+
|
26
|
+
dependency_manager = Dependency_Manager()
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import logging
|
2
2
|
import typing
|
3
|
-
from functools import wraps
|
4
3
|
|
5
4
|
from osbot_utils.base_classes.Type_Safe import Type_Safe
|
6
|
-
from osbot_utils.helpers.CFormat import CFormat, f_dark_grey, f_magenta
|
5
|
+
from osbot_utils.helpers.CFormat import CFormat, f_dark_grey, f_magenta, f_bold
|
6
|
+
from osbot_utils.helpers.flows.Flow__Config import Flow__Config
|
7
7
|
from osbot_utils.testing.Stdout import Stdout
|
8
8
|
from osbot_utils.utils.Misc import random_id, lower
|
9
9
|
from osbot_utils.utils.Python_Logger import Python_Logger
|
@@ -14,40 +14,32 @@ FLOW__RANDOM_NAME__PREFIX = 'flow_name__'
|
|
14
14
|
FLOW__LOGGING__LOG_FORMAT = '%(asctime)s.%(msecs)03d | %(levelname)-8s | %(message)s'
|
15
15
|
FLOW__LOGGING__DATE_FORMAT = '%H:%M:%S'
|
16
16
|
|
17
|
-
def flow(**flow_kwargs):
|
18
|
-
|
19
|
-
def decorator(function):
|
20
|
-
@wraps(function)
|
21
|
-
def wrapper(*args, **kwargs):
|
22
|
-
with Flow(**flow_kwargs) as flow:
|
23
|
-
flow.set_flow_target(function)
|
24
|
-
flow.setup()
|
25
|
-
flow.create_flow()
|
26
|
-
flow.execute_flow(*args, **kwargs)
|
27
|
-
return flow.return_value
|
28
|
-
|
29
|
-
return wrapper
|
30
|
-
return decorator
|
31
17
|
|
32
18
|
|
33
19
|
class Flow(Type_Safe):
|
34
20
|
captured_exec_logs : list
|
21
|
+
data : dict # dict available to the tasks to add and collect data
|
35
22
|
flow_id : str
|
36
23
|
flow_name : str
|
24
|
+
flow_config : Flow__Config
|
37
25
|
flow_target : callable
|
26
|
+
flow_args : tuple
|
27
|
+
flow_kwargs : dict
|
28
|
+
flow_return_value : typing.Any
|
38
29
|
logger : Python_Logger
|
39
30
|
cformat : CFormat
|
40
|
-
log_to_console : bool = False
|
41
|
-
log_to_memory : bool = True
|
42
|
-
print_logs : bool = False
|
43
|
-
|
31
|
+
#log_to_console : bool = False
|
32
|
+
#log_to_memory : bool = True
|
33
|
+
#print_logs : bool = False
|
34
|
+
executed_tasks : typing.List
|
35
|
+
|
44
36
|
|
45
37
|
|
46
38
|
def config_logger(self):
|
47
39
|
with self.logger as _:
|
48
40
|
_.set_log_level(logging.DEBUG)
|
49
41
|
_.set_log_format(log_format=FLOW__LOGGING__LOG_FORMAT, date_format=FLOW__LOGGING__DATE_FORMAT)
|
50
|
-
if self.log_to_console:
|
42
|
+
if self.flow_config.log_to_console:
|
51
43
|
_.add_console_logger()
|
52
44
|
|
53
45
|
|
@@ -58,23 +50,28 @@ class Flow(Type_Safe):
|
|
58
50
|
self.set_flow_name()
|
59
51
|
self.debug(f"Created flow run '{self.f__flow_id()}' for flow '{self.f__flow_name()}'")
|
60
52
|
|
61
|
-
def
|
62
|
-
|
53
|
+
def execute(self):
|
54
|
+
return self.execute_flow()
|
55
|
+
|
56
|
+
def execute_flow(self):
|
57
|
+
if self.flow_config.log_to_memory:
|
63
58
|
self.logger.add_memory_logger() # todo: move to method that does pre-execute tasks
|
64
59
|
|
65
60
|
self.debug(f"Executing flow run '{self.f__flow_id()}''")
|
66
61
|
try:
|
67
62
|
with Stdout() as stdout:
|
68
|
-
self.
|
63
|
+
self.flow_return_value = self.flow_target(*self.flow_args, **self.flow_kwargs) # todo, capture *args, **kwargs in logs
|
69
64
|
except Exception as error:
|
70
65
|
self.logger.error(self.cformat.red(f"Error executing flow: {error}"))
|
71
|
-
self.log_captured_stdout(stdout)
|
72
|
-
self.debug(f"{f_dark_grey('return value')}: {self.return_value}")
|
73
|
-
self.debug(f"Finished flow run '{self.f__flow_id()}''")
|
74
66
|
|
75
|
-
|
67
|
+
self.log_captured_stdout (stdout)
|
68
|
+
self.print_flow_return_value ()
|
69
|
+
self.print_flow_finished_message()
|
70
|
+
|
71
|
+
if self.flow_config.log_to_memory:
|
76
72
|
self.captured_exec_logs = self.log_messages_with_colors()
|
77
|
-
self.logger.remove_memory_logger()
|
73
|
+
self.logger.remove_memory_logger() # todo: move to method that does post-execute tasks
|
74
|
+
return self
|
78
75
|
|
79
76
|
def f__flow_id(self):
|
80
77
|
return self.cformat.green(self.flow_id)
|
@@ -82,6 +79,9 @@ class Flow(Type_Safe):
|
|
82
79
|
def f__flow_name(self):
|
83
80
|
return self.cformat.blue(self.flow_name)
|
84
81
|
|
82
|
+
def captured_logs(self):
|
83
|
+
return ansis_to_texts(self.captured_exec_logs)
|
84
|
+
|
85
85
|
def info(self, message):
|
86
86
|
self.logger.info(message)
|
87
87
|
|
@@ -89,7 +89,7 @@ class Flow(Type_Safe):
|
|
89
89
|
for line in stdout.value().splitlines():
|
90
90
|
if line:
|
91
91
|
self.info(f_magenta(line))
|
92
|
-
if self.print_logs:
|
92
|
+
if self.flow_config.print_logs:
|
93
93
|
print()
|
94
94
|
print()
|
95
95
|
self.print_log_messages()
|
@@ -103,12 +103,28 @@ class Flow(Type_Safe):
|
|
103
103
|
|
104
104
|
def print_log_messages(self, use_colors=True):
|
105
105
|
if use_colors:
|
106
|
-
|
107
|
-
|
106
|
+
if self.captured_exec_logs:
|
107
|
+
for message in self.captured_exec_logs:
|
108
|
+
print(message)
|
109
|
+
else:
|
110
|
+
for message in self.logger.memory_handler_messages():
|
111
|
+
print(message)
|
108
112
|
else:
|
109
113
|
for message in self.log_messages():
|
110
114
|
print(message)
|
111
115
|
return self
|
116
|
+
|
117
|
+
def print_flow_finished_message(self):
|
118
|
+
if self.flow_config.print_finished_message:
|
119
|
+
self.debug(f"Finished flow run '{self.f__flow_id()}''")
|
120
|
+
|
121
|
+
def print_flow_return_value(self):
|
122
|
+
if self.flow_config.print_none_return_value is False and self.flow_return_value is None:
|
123
|
+
return
|
124
|
+
self.debug(f"{f_dark_grey('Flow return value')}: {f_bold(self.flow_return_value)}")
|
125
|
+
|
126
|
+
|
127
|
+
|
112
128
|
def random_flow_id(self):
|
113
129
|
return lower(random_id(prefix=FLOW__RANDOM_ID__PREFIX))
|
114
130
|
|
@@ -116,8 +132,10 @@ class Flow(Type_Safe):
|
|
116
132
|
return lower(random_id(prefix=FLOW__RANDOM_NAME__PREFIX))
|
117
133
|
|
118
134
|
|
119
|
-
def set_flow_target(self, target):
|
135
|
+
def set_flow_target(self, target, *args, **kwargs):
|
120
136
|
self.flow_target = target
|
137
|
+
self.flow_args = args
|
138
|
+
self.flow_kwargs = kwargs
|
121
139
|
return self
|
122
140
|
|
123
141
|
def set_flow_name(self, value=None):
|
@@ -0,0 +1,11 @@
|
|
1
|
+
from osbot_utils.base_classes.Type_Safe import Type_Safe
|
2
|
+
|
3
|
+
|
4
|
+
class Flow__Config(Type_Safe):
|
5
|
+
add_task_to_self : bool = True
|
6
|
+
log_to_console : bool = False
|
7
|
+
log_to_memory : bool = True
|
8
|
+
print_logs : bool = False
|
9
|
+
print_none_return_value: bool = False
|
10
|
+
print_finished_message : bool = False
|
11
|
+
|
@@ -1,12 +1,65 @@
|
|
1
1
|
import inspect
|
2
|
+
import typing
|
3
|
+
|
4
|
+
from osbot_utils.helpers.Dependency_Manager import Dependency_Manager
|
5
|
+
from osbot_utils.utils.Dev import pprint
|
6
|
+
|
7
|
+
from osbot_utils.testing.Stdout import Stdout
|
8
|
+
from osbot_utils.helpers.CFormat import CFormat, f_dark_grey, f_red, f_blue, f_bold
|
9
|
+
from osbot_utils.base_classes.Type_Safe import Type_Safe
|
10
|
+
from osbot_utils.helpers.flows.Flow import Flow
|
2
11
|
|
3
|
-
from osbot_utils.base_classes.Type_Safe import Type_Safe
|
4
|
-
from osbot_utils.helpers.flows.Flow import Flow
|
5
12
|
|
6
13
|
|
7
14
|
class Task(Type_Safe):
|
8
|
-
|
9
|
-
|
15
|
+
data : dict # dict available to the task to add and collect data
|
16
|
+
task_id : str # todo add a random Id value to this
|
17
|
+
task_name : str # make this the function mame
|
18
|
+
cformat : CFormat
|
19
|
+
task_target : callable # todo refactor this to to Task__Function class
|
20
|
+
task_args : tuple
|
21
|
+
task_kwargs : dict
|
22
|
+
task_flow : Flow
|
23
|
+
task_return_value : typing.Any
|
24
|
+
task_error : Exception = None
|
25
|
+
raise_on_error : bool = True
|
26
|
+
|
27
|
+
def execute(self):
|
28
|
+
self.task_flow = self.find_flow()
|
29
|
+
if self.task_flow is None:
|
30
|
+
raise Exception("No Flow found for Task")
|
31
|
+
|
32
|
+
if not self.task_name and self.task_target:
|
33
|
+
self.task_name = self.task_target.__name__
|
34
|
+
|
35
|
+
self.task_flow.executed_tasks.append(self)
|
36
|
+
self.task_flow.logger.debug(f"Executing task '{f_blue(self.task_name)}'")
|
37
|
+
|
38
|
+
try:
|
39
|
+
with Stdout() as stdout:
|
40
|
+
self.invoke_task_target()
|
41
|
+
except Exception as error:
|
42
|
+
self.task_error = error
|
43
|
+
|
44
|
+
self.task_flow.log_captured_stdout(stdout)
|
45
|
+
self.print_task_return_value()
|
46
|
+
|
47
|
+
if self.task_error:
|
48
|
+
self.task_flow.logger.error(f_red(f"Error executing '{self.task_name}' task: {self.task_error}"))
|
49
|
+
if self.raise_on_error:
|
50
|
+
raise Exception(f"'{self.task_name}' failed and task raise_on_error was set to True. Stopping flow execution")
|
51
|
+
|
52
|
+
self.print_task_finished_message()
|
53
|
+
return self.task_return_value
|
54
|
+
|
55
|
+
def invoke_task_target(self):
|
56
|
+
dependency_manager = Dependency_Manager()
|
57
|
+
dependency_manager.add_dependency('this_task', self )
|
58
|
+
dependency_manager.add_dependency('this_flow', self.task_flow )
|
59
|
+
dependency_manager.add_dependency('task_data', self.data )
|
60
|
+
dependency_manager.add_dependency('flow_data', self.task_flow.data)
|
61
|
+
resolved_args, resolved_kwargs = dependency_manager.resolve_dependencies(self.task_target, *self.task_args, **self.task_kwargs)
|
62
|
+
self.task_return_value = self.task_target(*resolved_args, **resolved_kwargs)
|
10
63
|
|
11
64
|
def find_flow(self):
|
12
65
|
stack = inspect.stack()
|
@@ -15,4 +68,16 @@ class Task(Type_Safe):
|
|
15
68
|
if 'self' in frame.f_locals:
|
16
69
|
instance = frame.f_locals['self']
|
17
70
|
if type(instance) is Flow:
|
18
|
-
return instance
|
71
|
+
return instance
|
72
|
+
|
73
|
+
def print_task_finished_message(self):
|
74
|
+
if self.task_flow.flow_config.print_finished_message:
|
75
|
+
self.task_flow.logger.debug(f"Finished task '{f_blue(self.task_name)}'")
|
76
|
+
|
77
|
+
def print_task_return_value(self):
|
78
|
+
flow_config = self.task_flow.flow_config
|
79
|
+
if flow_config.print_none_return_value is False and self.task_return_value is None:
|
80
|
+
return
|
81
|
+
self.task_flow.logger.debug(f"{f_dark_grey('Task return value')}: {f_bold(self.task_return_value)}")
|
82
|
+
|
83
|
+
|
File without changes
|
@@ -0,0 +1,18 @@
|
|
1
|
+
from functools import wraps
|
2
|
+
from typing import TypeVar, Callable, Any
|
3
|
+
|
4
|
+
from osbot_utils.helpers.flows.Flow import Flow
|
5
|
+
|
6
|
+
# todo: find way to make the casting below work for the users of this decorator
|
7
|
+
|
8
|
+
def flow(**flow_kwargs):
|
9
|
+
def decorator(function) -> Flow:
|
10
|
+
@wraps(function)
|
11
|
+
def wrapper(*args: Any, **kwargs: Any) -> Flow:
|
12
|
+
with Flow(**flow_kwargs) as _:
|
13
|
+
_.set_flow_target(function, *args, **kwargs)
|
14
|
+
_.setup()
|
15
|
+
_.create_flow()
|
16
|
+
return _
|
17
|
+
return wrapper
|
18
|
+
return decorator
|
@@ -0,0 +1,11 @@
|
|
1
|
+
from functools import wraps
|
2
|
+
from osbot_utils.helpers.flows.Task import Task
|
3
|
+
|
4
|
+
def task(**task_kwargs):
|
5
|
+
def decorator(function):
|
6
|
+
@wraps(function)
|
7
|
+
def wrapper(*args, **kwargs):
|
8
|
+
with Task(task_target=function, task_args=args, task_kwargs=kwargs, **task_kwargs) as _:
|
9
|
+
return _.execute()
|
10
|
+
return wrapper
|
11
|
+
return decorator
|
@@ -1,10 +1,9 @@
|
|
1
1
|
from osbot_utils.helpers.html.Dict_To_Html import HTML_SELF_CLOSING_TAGS
|
2
|
-
from osbot_utils.helpers.html.Tag__Base
|
3
|
-
from osbot_utils.helpers.html.Tag__Body
|
4
|
-
from osbot_utils.helpers.html.Tag__Head
|
5
|
-
from osbot_utils.helpers.html.Tag__Html
|
6
|
-
from osbot_utils.helpers.html.Tag__Link
|
7
|
-
from osbot_utils.utils.Dev import pprint
|
2
|
+
from osbot_utils.helpers.html.Tag__Base import Tag__Base
|
3
|
+
from osbot_utils.helpers.html.Tag__Body import Tag__Body
|
4
|
+
from osbot_utils.helpers.html.Tag__Head import Tag__Head
|
5
|
+
from osbot_utils.helpers.html.Tag__Html import Tag__Html
|
6
|
+
from osbot_utils.helpers.html.Tag__Link import Tag__Link
|
8
7
|
|
9
8
|
|
10
9
|
class Dict_To_Tags:
|
osbot_utils/utils/Call_Stack.py
CHANGED
osbot_utils/utils/Zip.py
CHANGED
@@ -6,6 +6,8 @@ import tarfile
|
|
6
6
|
import zipfile
|
7
7
|
from os.path import abspath
|
8
8
|
|
9
|
+
from osbot_utils.utils.Misc import list_set
|
10
|
+
|
9
11
|
from osbot_utils.utils.Files import temp_folder, folder_files, temp_file, is_file, file_copy, file_move, file_exists, \
|
10
12
|
file_contents_as_bytes
|
11
13
|
|
@@ -99,6 +101,9 @@ def zip_bytes__files(zip_bytes):
|
|
99
101
|
|
100
102
|
return files_dict # Return the dictionary with file contents
|
101
103
|
|
104
|
+
def zip_bytes__files_paths(zip_bytes):
|
105
|
+
return list_set(zip_bytes__files(zip_bytes))
|
106
|
+
|
102
107
|
def zip_bytes__file_list(zip_bytes):
|
103
108
|
zip_buffer_from_bytes = io.BytesIO(zip_bytes)
|
104
109
|
with zipfile.ZipFile(zip_buffer_from_bytes, 'r') as zf:
|
osbot_utils/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
v1.
|
1
|
+
v1.45.0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: osbot_utils
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.45.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
|
|
@@ -2,18 +2,19 @@ osbot_utils/__init__.py,sha256=DdJDmQc9zbQUlPVyTJOww6Ixrn9n4bD3ami5ItQfzJI,16
|
|
2
2
|
osbot_utils/base_classes/Cache_Pickle.py,sha256=kPCwrgUbf_dEdxUz7vW1GuvIPwlNXxuRhb-H3AbSpII,5884
|
3
3
|
osbot_utils/base_classes/Kwargs_To_Disk.py,sha256=HHoy05NC_w35WcT-OnSKoSIV_cLqaU9rdjH0_KNTM0E,1096
|
4
4
|
osbot_utils/base_classes/Kwargs_To_Self.py,sha256=weFNsBfBNV9W_qBkN-IdBD4yYcJV_zgTxBRO-ZlcPS4,141
|
5
|
-
osbot_utils/base_classes/Type_Safe.py,sha256=
|
5
|
+
osbot_utils/base_classes/Type_Safe.py,sha256=xG3peP_hyuUYYi84zR6LhzmgoFYYLBbYwoIQb9XAmpQ,17905
|
6
6
|
osbot_utils/base_classes/Type_Safe__List.py,sha256=-80C9OhsK6iDR2dAG8yNLAZV0qg5x3faqvSUigFCMJw,517
|
7
7
|
osbot_utils/base_classes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
8
|
osbot_utils/context_managers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
osbot_utils/context_managers/async_invoke.py,sha256=-ja3K8orLy8Of54CIYSK-zn443pOIDY2hnFBjVELrXc,829
|
10
|
-
osbot_utils/context_managers/capture_duration.py,sha256=
|
11
|
-
osbot_utils/context_managers/disable_root_loggers.py,sha256=
|
10
|
+
osbot_utils/context_managers/capture_duration.py,sha256=EhQUPHK_zjpm9dsnEhkJRrcd0fdngPgsM1QlNjquWwI,1147
|
11
|
+
osbot_utils/context_managers/disable_root_loggers.py,sha256=0-zQk11TBqwhTHCN4vNhDApojtJ4oR0oMPRcwclcXZA,960
|
12
|
+
osbot_utils/context_managers/print_duration.py,sha256=jleIYxmz-vbWbcZZPuTWMNavJgxYkATwrVk5H-2SHj4,272
|
12
13
|
osbot_utils/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
14
|
osbot_utils/decorators/classes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
14
15
|
osbot_utils/decorators/classes/singleton.py,sha256=ZBYw2W4Qmo0mlHQQqDJyScaXO6pmbftru9YBBdUowjY,332
|
15
16
|
osbot_utils/decorators/lists/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
|
-
osbot_utils/decorators/lists/filter_list.py,sha256=
|
17
|
+
osbot_utils/decorators/lists/filter_list.py,sha256=ME-Ojknb60yn13LQNkY2ixqrkl6MfXUtxlnLis9qw3Y,694
|
17
18
|
osbot_utils/decorators/lists/group_by.py,sha256=NUzc1l9SXezypfDuqxykFX4-kuD36m9w_nOsOGL70Ug,697
|
18
19
|
osbot_utils/decorators/lists/index_by.py,sha256=BEbfd13l11zROhXAb0vkB_aZi9P2Zt4pExLpvHwuCtQ,850
|
19
20
|
osbot_utils/decorators/methods/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -21,7 +22,7 @@ osbot_utils/decorators/methods/cache.py,sha256=IMmHBeR6qtaOfBNgZUeI1SVLoexQQy6vk
|
|
21
22
|
osbot_utils/decorators/methods/cache_on_function.py,sha256=sDebxWjJnusb_w4R26OTYcmTF6CCeWrpesn-dgzEu8g,2694
|
22
23
|
osbot_utils/decorators/methods/cache_on_self.py,sha256=bVSOBXcKVR-ITotq9sReUP1RY3TmnvROfl90564miJY,3681
|
23
24
|
osbot_utils/decorators/methods/cache_on_tmp.py,sha256=8wLnRAUUkHobu6-B2Q8aAE8jLeIu3b-CQuMtXcnIN9w,3102
|
24
|
-
osbot_utils/decorators/methods/capture_exception.py,sha256=
|
25
|
+
osbot_utils/decorators/methods/capture_exception.py,sha256=r6d1TPibAVLL7B4I0oXtnHQwFFdLBZbDnytYWO6PxS4,1174
|
25
26
|
osbot_utils/decorators/methods/capture_status.py,sha256=5xklG0usO3hGTjedhrmIucXtUjPd2pkuvA5jsty0a5E,659
|
26
27
|
osbot_utils/decorators/methods/catch.py,sha256=d3_wiwI1GVhDJmFuIN1gxI2WFJtX1blx5wgjHfSdFu8,545
|
27
28
|
osbot_utils/decorators/methods/context.py,sha256=oeHvVTAv6G2PTPkmzaez96hSDSYM4cLnKT_1KNbsIqM,291
|
@@ -57,6 +58,7 @@ osbot_utils/graphs/mgraph/MGraphs.py,sha256=W8GlTBQ-1nBb9Zj3nbZ3QetyaP1LlkhMBVOi
|
|
57
58
|
osbot_utils/graphs/mgraph/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
58
59
|
osbot_utils/helpers/CFormat.py,sha256=1_XvqGwgU6qC97MbzcKF0o7s9mCXpU5Kq9Yf-1ixUwY,6808
|
59
60
|
osbot_utils/helpers/CPrint.py,sha256=ztKPNmT8BGxeyPXSQKRs63PqqbgxKDz_BiZmzFMup9g,1413
|
61
|
+
osbot_utils/helpers/Dependency_Manager.py,sha256=79YRYnVfchewq8iSMJ5dzwW2D5u8chWcIqYE-G9YrSo,1337
|
60
62
|
osbot_utils/helpers/Dict_To_Attr.py,sha256=NdhXl5mJH7-NaBk213amzc5Nfy3tJgW-N_uYIRE4hoc,208
|
61
63
|
osbot_utils/helpers/Hashicorp_Secrets.py,sha256=zjXa_dQvfR9L1uoulWJ8nYYaDvznV6o_QPPS4zmb6mo,4235
|
62
64
|
osbot_utils/helpers/Local_Cache.py,sha256=0JZZX3fFImcwtbBvxAQl-EbBegSNJRhRMYF6ovTH6zY,3141
|
@@ -152,12 +154,16 @@ osbot_utils/helpers/cache_requests/Cache__Requests__Row.py,sha256=h-yc7NkpScbHww
|
|
152
154
|
osbot_utils/helpers/cache_requests/Cache__Requests__Table.py,sha256=RgxAYhm-FIrXXteQRtD91pOLq8JXhSzxb51Jb6MTUdY,391
|
153
155
|
osbot_utils/helpers/cache_requests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
154
156
|
osbot_utils/helpers/cache_requests/flows/flow__Cache__Requests.py,sha256=xgx_oExxkcvRwQN1UCobimECIMUKGoIX5oGdCmp8Nyw,243
|
155
|
-
osbot_utils/helpers/flows/Flow.py,sha256=
|
156
|
-
osbot_utils/helpers/flows/
|
157
|
+
osbot_utils/helpers/flows/Flow.py,sha256=_93-0FpH_bq7j--6DvKW7n2YC6hU_tINx8YMvMX4_uM,5659
|
158
|
+
osbot_utils/helpers/flows/Flow__Config.py,sha256=PE8hH8KXDHz1Ex93cPMuR9nkv8AoXzXQwVxleSDkU7k,341
|
159
|
+
osbot_utils/helpers/flows/Task.py,sha256=edbvtd78kzz5ghKp-awyOWop2QYxqDB0-aupcz0sjVM,3530
|
157
160
|
osbot_utils/helpers/flows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
161
|
+
osbot_utils/helpers/flows/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
162
|
+
osbot_utils/helpers/flows/decorators/flow.py,sha256=7H9NXR7416BCBC-2wgQz7KCA0_d8I0gZbxSyxcL4khQ,595
|
163
|
+
osbot_utils/helpers/flows/decorators/task.py,sha256=2Eg8abx7ky8PVKVQijy6Oji60UKW31nXmtYftqBDB0k,394
|
158
164
|
osbot_utils/helpers/html/Dict_To_Css.py,sha256=u6B4Mx7PXr-gDrTrs1hgknnvsZVK4Fic5LqedKjo-lk,1097
|
159
165
|
osbot_utils/helpers/html/Dict_To_Html.py,sha256=OlRSaDGOeseBNTxRB2ho5whqEacMXeAXWOfeVSEYqC4,3355
|
160
|
-
osbot_utils/helpers/html/Dict_To_Tags.py,sha256=
|
166
|
+
osbot_utils/helpers/html/Dict_To_Tags.py,sha256=L8O8c0RPzP92EfeACk3pjXJfnlz-Rg38o2Gf9tS2UfM,3745
|
161
167
|
osbot_utils/helpers/html/Html_To_Dict.py,sha256=6VvPp4RrXxRzPpCTn0HTa6Ywt_-4CBH4sj3aoPBZWIc,2623
|
162
168
|
osbot_utils/helpers/html/Html_To_Tag.py,sha256=WDdXF0Q9siVwN0OIgZluCu-dXJa8bDrL9-6TidlKUeQ,498
|
163
169
|
osbot_utils/helpers/html/Tag__Base.py,sha256=eAO4SdoKdHe9DRSzf9zpfBhDWDbvv-CGrxjekBHXm8k,3128
|
@@ -266,7 +272,7 @@ osbot_utils/testing/Unit_Test.py,sha256=MReR_wDGbbXFDPz7cmuGflcTxRB6TBnO9mYqRpSq
|
|
266
272
|
osbot_utils/testing/Unzip_File.py,sha256=V5H97XO9rlvG5EYOSzAH4kTtAH1ohZ8R8ImvJh46ZNg,1177
|
267
273
|
osbot_utils/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
268
274
|
osbot_utils/utils/Assert.py,sha256=u9XLgYn91QvNWZGyPi29SjPJSXRHlm9andIn3NJEVog,1745
|
269
|
-
osbot_utils/utils/Call_Stack.py,sha256=
|
275
|
+
osbot_utils/utils/Call_Stack.py,sha256=awhWstC2mJCrOjNqNheTe2B7at-JFP6XG7VkMPpPNOE,6647
|
270
276
|
osbot_utils/utils/Csv.py,sha256=oHLVpjRJqrLMz9lubMCNEoThXWju5rNTprcwHc1zq2c,1012
|
271
277
|
osbot_utils/utils/Dev.py,sha256=HibpQutYy_iG8gGV8g1GztxNN4l29E4Bi7UZaVL6-L8,1203
|
272
278
|
osbot_utils/utils/Env.py,sha256=XMwF5BrtpoPJdOraswAFPrcQ3tRTocjqvA8I61eOCJw,5741
|
@@ -289,10 +295,10 @@ osbot_utils/utils/Str.py,sha256=kxdY8ROX4FdJtCaMTfOc8fK_xcDICprNkefHu2MMNU4,2585
|
|
289
295
|
osbot_utils/utils/Threads.py,sha256=fgFrZZXY2G9yJmfQcOv76GB_8MhCrvoUdcbkAhYxDBI,909
|
290
296
|
osbot_utils/utils/Toml.py,sha256=dqiegndCJF7V1YT1Tc-b0-Bl6QWyL5q30urmQwMXfMQ,1402
|
291
297
|
osbot_utils/utils/Version.py,sha256=Ww6ChwTxqp1QAcxOnztkTicShlcx6fbNsWX5xausHrg,422
|
292
|
-
osbot_utils/utils/Zip.py,sha256=
|
298
|
+
osbot_utils/utils/Zip.py,sha256=G6Hk_hDcm9yvWzhTKzhT0R_6f0NBIAchHqMxGb3kfh4,14037
|
293
299
|
osbot_utils/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
294
|
-
osbot_utils/version,sha256=
|
295
|
-
osbot_utils-1.
|
296
|
-
osbot_utils-1.
|
297
|
-
osbot_utils-1.
|
298
|
-
osbot_utils-1.
|
300
|
+
osbot_utils/version,sha256=8XvA-W5tRj_AQS8FtlMP3PtCMBpTiglUjp-DGhdTGZY,8
|
301
|
+
osbot_utils-1.45.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
302
|
+
osbot_utils-1.45.0.dist-info/METADATA,sha256=CZxciwssi8uAl_O1N7wfuoPBMeg3x8e5G6qjieln_Ac,1266
|
303
|
+
osbot_utils-1.45.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
304
|
+
osbot_utils-1.45.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|