osbot-utils 1.40.0__py3-none-any.whl → 1.41.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 +2 -1
- osbot_utils/version +1 -1
- {osbot_utils-1.40.0.dist-info → osbot_utils-1.41.0.dist-info}/METADATA +2 -2
- {osbot_utils-1.40.0.dist-info → osbot_utils-1.41.0.dist-info}/RECORD +6 -6
- {osbot_utils-1.40.0.dist-info → osbot_utils-1.41.0.dist-info}/LICENSE +0 -0
- {osbot_utils-1.40.0.dist-info → osbot_utils-1.41.0.dist-info}/WHEEL +0 -0
@@ -299,7 +299,8 @@ def serialize_to_dict(obj):
|
|
299
299
|
elif hasattr(obj, "__dict__"):
|
300
300
|
data = {} # todo: look at a more advanced version which saved the type of the object, for example with {'__type__': type(obj).__name__}
|
301
301
|
for key, value in obj.__dict__.items():
|
302
|
-
|
302
|
+
if key.startswith('__') is False: # don't process internal variables (for example the ones set by @cache_on_self)
|
303
|
+
data[key] = serialize_to_dict(value) # Recursive call for complex types
|
303
304
|
return data
|
304
305
|
else:
|
305
306
|
raise TypeError(f"Type {type(obj)} not serializable")
|
osbot_utils/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
v1.
|
1
|
+
v1.41.0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: osbot_utils
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.41.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,7 +2,7 @@ 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=8uOxl1e12vf25MoBBW-hcbqfEpo1ih_Is_9BmlhV4-k,17739
|
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
|
@@ -288,8 +288,8 @@ osbot_utils/utils/Toml.py,sha256=dqiegndCJF7V1YT1Tc-b0-Bl6QWyL5q30urmQwMXfMQ,140
|
|
288
288
|
osbot_utils/utils/Version.py,sha256=Ww6ChwTxqp1QAcxOnztkTicShlcx6fbNsWX5xausHrg,422
|
289
289
|
osbot_utils/utils/Zip.py,sha256=Gt4K7Q9LlYeRxOVv8aYpaBLKxrYriCAEUa_R6YWEbMg,13903
|
290
290
|
osbot_utils/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
291
|
-
osbot_utils/version,sha256=
|
292
|
-
osbot_utils-1.
|
293
|
-
osbot_utils-1.
|
294
|
-
osbot_utils-1.
|
295
|
-
osbot_utils-1.
|
291
|
+
osbot_utils/version,sha256=yjQ1Y3Y8Is1y8OCYYIKbpD5nxgESlUaT8Bw1tHNnaM8,8
|
292
|
+
osbot_utils-1.41.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
293
|
+
osbot_utils-1.41.0.dist-info/METADATA,sha256=azUxA2mC1p3Q2Kb4IHSdOzXc4PpOYW6BUk1kxEwifb0,1266
|
294
|
+
osbot_utils-1.41.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
295
|
+
osbot_utils-1.41.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|