trd-utils 0.0.12__py3-none-any.whl → 0.0.13__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.
Potentially problematic release.
This version of trd-utils might be problematic. Click here for more details.
- trd_utils/__init__.py +1 -1
- trd_utils/types_helper/base_model.py +11 -3
- {trd_utils-0.0.12.dist-info → trd_utils-0.0.13.dist-info}/METADATA +1 -1
- {trd_utils-0.0.12.dist-info → trd_utils-0.0.13.dist-info}/RECORD +6 -6
- {trd_utils-0.0.12.dist-info → trd_utils-0.0.13.dist-info}/LICENSE +0 -0
- {trd_utils-0.0.12.dist-info → trd_utils-0.0.13.dist-info}/WHEEL +0 -0
trd_utils/__init__.py
CHANGED
|
@@ -61,7 +61,12 @@ def value_to_normal_obj(value, omit_none: bool = False):
|
|
|
61
61
|
if isinstance(value, list):
|
|
62
62
|
results = []
|
|
63
63
|
for current in value:
|
|
64
|
-
results.append(
|
|
64
|
+
results.append(
|
|
65
|
+
value_to_normal_obj(
|
|
66
|
+
value=current,
|
|
67
|
+
omit_none=omit_none,
|
|
68
|
+
)
|
|
69
|
+
)
|
|
65
70
|
return results
|
|
66
71
|
|
|
67
72
|
if isinstance(value, (int, str)) or value is None:
|
|
@@ -73,7 +78,10 @@ def value_to_normal_obj(value, omit_none: bool = False):
|
|
|
73
78
|
if isinstance(value, dict):
|
|
74
79
|
result = {}
|
|
75
80
|
for inner_key, inner_value in value.items():
|
|
76
|
-
normalized_value = value_to_normal_obj(
|
|
81
|
+
normalized_value = value_to_normal_obj(
|
|
82
|
+
value=inner_value,
|
|
83
|
+
omit_none=omit_none,
|
|
84
|
+
)
|
|
77
85
|
if normalized_value is None and omit_none:
|
|
78
86
|
continue
|
|
79
87
|
|
|
@@ -263,7 +271,7 @@ class BaseModel:
|
|
|
263
271
|
|
|
264
272
|
def serialize(
|
|
265
273
|
self,
|
|
266
|
-
separators
|
|
274
|
+
separators=(",", ":"),
|
|
267
275
|
ensure_ascii: bool = True,
|
|
268
276
|
sort_keys: bool = True,
|
|
269
277
|
omit_none: bool = False,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
trd_utils/__init__.py,sha256=
|
|
1
|
+
trd_utils/__init__.py,sha256=ksSTwj4RO6vrwFfVs_ChoS8hAYDemQDbl8pB-dXIwV0,25
|
|
2
2
|
trd_utils/cipher/__init__.py,sha256=V05KNuzQwCic-ihMVHlC8sENaJGc3I8MCb4pg4849X8,1765
|
|
3
3
|
trd_utils/common_utils/float_utils.py,sha256=W-jv7nzjl88xwGB6gsEXmDDhF6DseOrrVT2qx7OvyCo,266
|
|
4
4
|
trd_utils/exchanges/__init__.py,sha256=SQJt5cIXh305miWuDumkOLZHzqDUyOqSmlhTT9Xc9RY,180
|
|
@@ -16,8 +16,8 @@ trd_utils/tradingview/__init__.py,sha256=H0QYb-O5qvy7qC3yswtlcSWLmeBnaS6oJ3Jtjvm
|
|
|
16
16
|
trd_utils/tradingview/tradingview_client.py,sha256=g_eWYaCRQAL8Kvd-r6AnAdbH7Jha6C_GAyCuxh-RQUU,3917
|
|
17
17
|
trd_utils/tradingview/tradingview_types.py,sha256=z21MXPVdWHAduEl3gSeMIRhxtBN9yK-jPYHfZSMIbSA,6144
|
|
18
18
|
trd_utils/types_helper/__init__.py,sha256=VlEXDzOyn6fYH-dE86EGJ6u_el08QvdyOtJkj-0EAVA,65
|
|
19
|
-
trd_utils/types_helper/base_model.py,sha256=
|
|
20
|
-
trd_utils-0.0.
|
|
21
|
-
trd_utils-0.0.
|
|
22
|
-
trd_utils-0.0.
|
|
23
|
-
trd_utils-0.0.
|
|
19
|
+
trd_utils/types_helper/base_model.py,sha256=YFaZFVgLe49YdDVEcF1ezvGeofei0rSWPLLkc-lHT0M,10144
|
|
20
|
+
trd_utils-0.0.13.dist-info/LICENSE,sha256=J1EP2xt87RjjmsTV1jTjHDQMLIM9FjdwEftTpw8hyv4,1067
|
|
21
|
+
trd_utils-0.0.13.dist-info/METADATA,sha256=tgfIzjF3WSJ7Yd1cnL5SEjT3Lhra5xlJiLP271Cmp3g,1095
|
|
22
|
+
trd_utils-0.0.13.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
23
|
+
trd_utils-0.0.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|