mns-common 1.4.2.4__py3-none-any.whl → 1.4.2.5__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 mns-common might be problematic. Click here for more details.
- mns_common/component/common_service_fun_api.py +11 -0
- {mns_common-1.4.2.4.dist-info → mns_common-1.4.2.5.dist-info}/METADATA +1 -1
- {mns_common-1.4.2.4.dist-info → mns_common-1.4.2.5.dist-info}/RECORD +5 -5
- {mns_common-1.4.2.4.dist-info → mns_common-1.4.2.5.dist-info}/WHEEL +0 -0
- {mns_common-1.4.2.4.dist-info → mns_common-1.4.2.5.dist-info}/top_level.txt +0 -0
|
@@ -71,6 +71,9 @@ def classify_symbol_one(symbol):
|
|
|
71
71
|
# 添加前缀
|
|
72
72
|
def add_pre_prefix_one(symbol):
|
|
73
73
|
symbol_simple = symbol[0:6]
|
|
74
|
+
if bool(1 - is_valid_symbol(symbol_simple)):
|
|
75
|
+
return symbol
|
|
76
|
+
|
|
74
77
|
if symbol_simple.startswith('6'):
|
|
75
78
|
return 'SH' + symbol
|
|
76
79
|
elif symbol_simple.startswith('0') or symbol_simple.startswith('3'):
|
|
@@ -79,6 +82,14 @@ def add_pre_prefix_one(symbol):
|
|
|
79
82
|
return 'BJ' + symbol
|
|
80
83
|
|
|
81
84
|
|
|
85
|
+
def is_valid_symbol(symbol):
|
|
86
|
+
# 确保输入是字符串(避免数字或其他类型)
|
|
87
|
+
if not isinstance(symbol, str):
|
|
88
|
+
return False
|
|
89
|
+
# 检查长度是否为6且所有字符都是数字
|
|
90
|
+
return len(symbol) == 6 and symbol.isdigit()
|
|
91
|
+
|
|
92
|
+
|
|
82
93
|
# 添加后缀
|
|
83
94
|
def add_after_prefix_one(symbol):
|
|
84
95
|
symbol_simple = symbol[0:6]
|
|
@@ -73,7 +73,7 @@ mns_common/api/us/ths_us_company_info_api.py,sha256=qQjv4F-ovQ2uuu-FlBAnxjvVA7qj
|
|
|
73
73
|
mns_common/api/xueqiu/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
|
|
74
74
|
mns_common/api/xueqiu/xue_qiu_k_line_api.py,sha256=KN5JBjsAssy9xm5SB2PAtsk3D_4bEUwBwz9NSqvYnig,4919
|
|
75
75
|
mns_common/component/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
|
|
76
|
-
mns_common/component/common_service_fun_api.py,sha256=
|
|
76
|
+
mns_common/component/common_service_fun_api.py,sha256=cLOR5Xb34ixF_-os8v2MSaYk-HLndoOPyt9p0jiWS9c,7015
|
|
77
77
|
mns_common/component/cache/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
|
|
78
78
|
mns_common/component/cache/cache_service.py,sha256=QX7tjR1iGsoCyGt6O41w8aRbZ-3xXQ-53Ps3nmUzAGQ,809
|
|
79
79
|
mns_common/component/classify/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
|
|
@@ -154,7 +154,7 @@ mns_common/utils/date_handle_util.py,sha256=XS-MyA8_7k35LOCFAYOHgVcVkMft_Kc4Wa9U
|
|
|
154
154
|
mns_common/utils/db_util.py,sha256=hSmfNAN4vEeEaUva6_cicZEhb2jSnib-Gvk2reke1vc,2590
|
|
155
155
|
mns_common/utils/file_util.py,sha256=egWu6PenGPRp_ixrNTHKarT4dAnOT6FETR82EHUZJnQ,1042
|
|
156
156
|
mns_common/utils/ip_util.py,sha256=UTcYfz_uytB__6nlBf7T-izuI7hi4XdB6ET0sJgEel4,969
|
|
157
|
-
mns_common-1.4.2.
|
|
158
|
-
mns_common-1.4.2.
|
|
159
|
-
mns_common-1.4.2.
|
|
160
|
-
mns_common-1.4.2.
|
|
157
|
+
mns_common-1.4.2.5.dist-info/METADATA,sha256=S-8cgRqTOUePaX3vyQ0TxcpJeDtuecRADUMOWnhML4s,61
|
|
158
|
+
mns_common-1.4.2.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
159
|
+
mns_common-1.4.2.5.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
|
|
160
|
+
mns_common-1.4.2.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|