trd-utils 0.0.11__py3-none-any.whl → 0.0.12__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 CHANGED
@@ -1,3 +1,3 @@
1
1
 
2
- __version__ = "0.0.11"
2
+ __version__ = "0.0.12"
3
3
 
@@ -48,13 +48,15 @@ def is_any_type(target_type: type) -> bool:
48
48
 
49
49
 
50
50
  # TODO: add support for max_depth for this...
51
- def value_to_normal_obj(value, omit_none: bool = False,):
51
+ def value_to_normal_obj(value, omit_none: bool = False):
52
52
  """
53
53
  Converts a custom value, to a corresponding "normal object" which can be used
54
54
  in dict.
55
55
  """
56
56
  if isinstance(value, BaseModel):
57
- return value.to_dict()
57
+ return value.to_dict(
58
+ omit_none=omit_none,
59
+ )
58
60
 
59
61
  if isinstance(value, list):
60
62
  results = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: trd_utils
3
- Version: 0.0.11
3
+ Version: 0.0.12
4
4
  Summary: Common Basic Utils for Python3. By ALiwoto.
5
5
  Keywords: utils,trd_utils,basic-utils,common-utils
6
6
  Author: ALiwoto
@@ -1,4 +1,4 @@
1
- trd_utils/__init__.py,sha256=9ntzLV42hoSqtkXam4Z3MqVdLim09-ukOChlxB2Nyp0,25
1
+ trd_utils/__init__.py,sha256=EOSsYsW6FO2lBXmmVBpFxjU2O7egOsP5riPIP38t7gQ,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=6K9SBwhr0j_vAniF5wkBzTFm50tAddmZTPoTv1BtKn8,9915
20
- trd_utils-0.0.11.dist-info/LICENSE,sha256=J1EP2xt87RjjmsTV1jTjHDQMLIM9FjdwEftTpw8hyv4,1067
21
- trd_utils-0.0.11.dist-info/METADATA,sha256=y6Mk9wHs_8cnuMympYcfYCquYXkiSi0cMp-xzMAKnNs,1095
22
- trd_utils-0.0.11.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
23
- trd_utils-0.0.11.dist-info/RECORD,,
19
+ trd_utils/types_helper/base_model.py,sha256=uyZcck2BXJPHeItBLMnK82wRuzZV2hKiXtMNnSfgJig,9956
20
+ trd_utils-0.0.12.dist-info/LICENSE,sha256=J1EP2xt87RjjmsTV1jTjHDQMLIM9FjdwEftTpw8hyv4,1067
21
+ trd_utils-0.0.12.dist-info/METADATA,sha256=bX611l15OdQ0gjA_CbrKe-5dMDs0LmYc7Eou78dNHlM,1095
22
+ trd_utils-0.0.12.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
23
+ trd_utils-0.0.12.dist-info/RECORD,,