osbot-utils 2.9.0__py3-none-any.whl → 2.10.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/utils/Objects.py +7 -3
- osbot_utils/version +1 -1
- {osbot_utils-2.9.0.dist-info → osbot_utils-2.10.0.dist-info}/METADATA +2 -2
- {osbot_utils-2.9.0.dist-info → osbot_utils-2.10.0.dist-info}/RECORD +6 -6
- {osbot_utils-2.9.0.dist-info → osbot_utils-2.10.0.dist-info}/LICENSE +0 -0
- {osbot_utils-2.9.0.dist-info → osbot_utils-2.10.0.dist-info}/WHEEL +0 -0
osbot_utils/utils/Objects.py
CHANGED
@@ -97,9 +97,13 @@ def class_name(target):
|
|
97
97
|
|
98
98
|
def class_full_name(target):
|
99
99
|
if target:
|
100
|
-
|
101
|
-
|
102
|
-
|
100
|
+
if isinstance(target, type): # Check if target is a type
|
101
|
+
type_module = target.__module__
|
102
|
+
type_name = target.__name__
|
103
|
+
else: # Handle instances
|
104
|
+
type_target = type(target)
|
105
|
+
type_module = type_target.__module__
|
106
|
+
type_name = type_target.__name__
|
103
107
|
return f'{type_module}.{type_name}'
|
104
108
|
|
105
109
|
def convert_dict_to_value_from_obj_annotation(target, attr_name, value): # todo: refactor this with code from convert_str_to_value_from_obj_annotation since it is mostly the same
|
osbot_utils/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
v2.
|
1
|
+
v2.10.0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: osbot_utils
|
3
|
-
Version: 2.
|
3
|
+
Version: 2.10.0
|
4
4
|
Summary: OWASP Security Bot - Utils
|
5
5
|
Home-page: https://github.com/owasp-sbot/OSBot-Utils
|
6
6
|
License: MIT
|
@@ -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
|
-

|
27
27
|
[](https://codecov.io/gh/owasp-sbot/OSBot-Utils)
|
28
28
|
|
29
29
|
|
@@ -307,7 +307,7 @@ osbot_utils/utils/Json.py,sha256=0t7Hwefx8bg4JiZVr-xIbWP3BAk6_ZsnY7iV5pnRLDQ,713
|
|
307
307
|
osbot_utils/utils/Json_Cache.py,sha256=mLPkkDZN-3ZVJiDvV1KBJXILtKkTZ4OepzOsDoBPhWg,2006
|
308
308
|
osbot_utils/utils/Lists.py,sha256=tPz5x5s3sRO97WZ_nsxREBPC5cwaHrhgaYBhsrffTT8,5599
|
309
309
|
osbot_utils/utils/Misc.py,sha256=H_xexJgiTxB3jDeDiW8efGQbO0Zuy8MM0iQ7qXC92JI,17363
|
310
|
-
osbot_utils/utils/Objects.py,sha256=
|
310
|
+
osbot_utils/utils/Objects.py,sha256=xKlfkI-eR3Cn4WabaWtYAdaNoA1axel8seuxGeVtcZE,23922
|
311
311
|
osbot_utils/utils/Png.py,sha256=V1juGp6wkpPigMJ8HcxrPDIP4bSwu51oNkLI8YqP76Y,1172
|
312
312
|
osbot_utils/utils/Process.py,sha256=lr3CTiEkN3EiBx3ZmzYmTKlQoPdkgZBRjPulMxG-zdo,2357
|
313
313
|
osbot_utils/utils/Python_Logger.py,sha256=M9Oi62LxfnRSlCN8GhaiwiBINvcSdGy39FCWjyDD-Xg,12792
|
@@ -319,8 +319,8 @@ osbot_utils/utils/Toml.py,sha256=Rxl8gx7mni5CvBAK-Ai02EKw-GwtJdd3yeHT2kMloik,166
|
|
319
319
|
osbot_utils/utils/Version.py,sha256=Ww6ChwTxqp1QAcxOnztkTicShlcx6fbNsWX5xausHrg,422
|
320
320
|
osbot_utils/utils/Zip.py,sha256=pR6sKliUY0KZXmqNzKY2frfW-YVQEVbLKiyqQX_lc-8,14052
|
321
321
|
osbot_utils/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
322
|
-
osbot_utils/version,sha256=
|
323
|
-
osbot_utils-2.
|
324
|
-
osbot_utils-2.
|
325
|
-
osbot_utils-2.
|
326
|
-
osbot_utils-2.
|
322
|
+
osbot_utils/version,sha256=Ig2saA_Dl-WLDWVJ1pUIVm-766x_oeaEUPDVaiPvL1E,8
|
323
|
+
osbot_utils-2.10.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
324
|
+
osbot_utils-2.10.0.dist-info/METADATA,sha256=wRx8uQb-akkXW9mMeB7vpFFk153AlGmRit1wykmyhHw,1317
|
325
|
+
osbot_utils-2.10.0.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
326
|
+
osbot_utils-2.10.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|