mns-common 1.2.7.4__py3-none-any.whl → 1.2.7.6__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.

@@ -26,6 +26,7 @@ def get_company_info_industry():
26
26
  "diff_days": 1,
27
27
  'em_industry': 1,
28
28
  'ths_concept_list_info': 1,
29
+ 'ths_concept_name_list_str':1,
29
30
  "kpl_plate_name": 1,
30
31
  "kpl_plate_list_info": 1,
31
32
  'operate_profit': 1,
@@ -47,6 +48,7 @@ def get_company_info_industry_list_date():
47
48
  "first_sw_industry": 1, "second_sw_industry": 1,
48
49
  "third_sw_industry": 1, "mv_circulation_ratio": 1,
49
50
  "list_date": 1, 'ths_concept_list_info': 1,
51
+ 'ths_concept_name_list_str': 1,
50
52
  "diff_days": 1, 'em_industry': 1,
51
53
  "kpl_plate_name": 1, "kpl_plate_list_info": 1,
52
54
  'operate_profit': 1,
@@ -63,6 +65,7 @@ def get_company_info_industry_mv():
63
65
  "first_sw_industry": 1, "second_sw_industry": 1,
64
66
  "third_sw_industry": 1, "mv_circulation_ratio": 1,
65
67
  "diff_days": 1, 'em_industry': 1, 'ths_concept_list_info': 1,
68
+ 'ths_concept_name_list_str': 1,
66
69
  "flow_mv_sp": 1, "total_mv_sp": 1,
67
70
  "kpl_plate_name": 1, "kpl_plate_list_info": 1,
68
71
  'operate_profit': 1,
@@ -45,6 +45,7 @@ def get_company_info_info():
45
45
  "list_date": 1,
46
46
  'em_industry': 1,
47
47
  'ths_concept_list_info': 1,
48
+ 'ths_concept_name_list_str': 1,
48
49
  "kpl_plate_name": 1,
49
50
  "kpl_plate_list_info": 1,
50
51
  'operate_profit': 1,
@@ -66,7 +67,7 @@ def amend_ths_industry(real_time_quotes_now_init):
66
67
  "ths_concept_sync_day": 1, 'sub_stock': 1,
67
68
  "first_sw_industry": 1, "second_sw_industry": 1,
68
69
  "third_sw_industry": 1, "mv_circulation_ratio": 1,
69
- "list_date": 1, 'ths_concept_list_info': 1,
70
+ "list_date": 1, 'ths_concept_list_info': 1, 'ths_concept_name_list_str': 1,
70
71
  "diff_days": 1, 'em_industry': 1,
71
72
  "kpl_plate_name": 1, "kpl_plate_list_info": 1,
72
73
  'operate_profit': 1,
@@ -64,6 +64,8 @@ def set_ths_concept(symbol, df):
64
64
 
65
65
  df['ths_concept_list_info'] = "-"
66
66
 
67
+ df['ths_concept_name_list_str'] = "-"
68
+
67
69
  if ths_stock_concept_detail.shape[0] == 0:
68
70
  return df
69
71
 
@@ -72,6 +74,10 @@ def set_ths_concept(symbol, df):
72
74
  ths_stock_concept_detail.dropna(subset=['concept_code'], axis=0, inplace=True)
73
75
 
74
76
  if data_frame_util.is_not_empty(ths_stock_concept_detail):
77
+ ths_stock_concept_detail['concept_name_str'] = ths_stock_concept_detail['concept_name']
78
+ df_unique = ths_stock_concept_detail['concept_name_str'].drop_duplicates()
79
+ concept_name_str = ','.join(df_unique['concept_name'])
80
+
75
81
  ths_stock_concept_detail = ths_stock_concept_detail[[
76
82
  'concept_code',
77
83
  'concept_name',
@@ -80,7 +86,9 @@ def set_ths_concept(symbol, df):
80
86
  'concept_create_day']]
81
87
  # 去除空格
82
88
  ths_stock_concept_detail['concept_name'] = ths_stock_concept_detail['concept_name'].str.replace(' ', '')
89
+
83
90
  df.loc[:, 'ths_concept_list_info'] = ths_stock_concept_detail.to_string(index=False)
91
+ df.loc[:, 'ths_concept_name_list_str'] = concept_name_str
84
92
 
85
93
  ths_effective_concept_list = get_all_ths_effective_concept()
86
94
  ths_effective_concept_code_list = list(ths_effective_concept_list['symbol'])
@@ -223,7 +231,7 @@ def get_choose_effective_ths_concept_no_cache():
223
231
  if __name__ == '__main__':
224
232
  clear_effective_ths_concept_cache()
225
233
  while True:
226
- symbol = '885923'
227
- get_one_symbol_all_ths_concept(symbol)
228
- clear_one_concept_cache(symbol)
234
+ symbol_test = '885923'
235
+ get_one_symbol_all_ths_concept(symbol_test)
236
+ clear_one_concept_cache(symbol_test)
229
237
  print(1)
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mns_common
3
- Version: 1.2.7.4
3
+ Version: 1.2.7.6
4
4
 
@@ -65,11 +65,11 @@ mns_common/component/classify/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb
65
65
  mns_common/component/classify/symbol_classify_api.py,sha256=fwT2qM-F-eADOtUeRgyqbHopEpKjg1bhgM9Mjg37Cz0,8139
66
66
  mns_common/component/classify/symbol_classify_param.py,sha256=ZOXoZeZ2grVACrpRCQyTF6_NEI9fI-tspYj7jubnkmc,1356
67
67
  mns_common/component/company/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
68
- mns_common/component/company/company_common_service_api.py,sha256=HHnLkhMgaOk6ZZoOJ2-E_R7-WeX1q0HtLM2IPAk06WE,7992
69
- mns_common/component/company/company_common_service_new_api.py,sha256=FX3Uwk1dEztHOQnYizhtCHM8xf1tW7JlQ20GAAP-isg,4956
68
+ mns_common/component/company/company_common_service_api.py,sha256=pqb11v5y0uFWJtqA7K-AMf6hzyrFUq_OVpvr7uaWOow,8252
69
+ mns_common/component/company/company_common_service_new_api.py,sha256=dKh633fEsZm7KbUviUmqZFRUwjxyLTu-Y23ItTBsK60,5075
70
70
  mns_common/component/concept/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
71
71
  mns_common/component/concept/kpl_concept_common_service_api.py,sha256=Ruc3INOhVjB0X1LeMRX0zL3uhv9OLweG2hj6wkZffow,3235
72
- mns_common/component/concept/ths_concept_common_service_api.py,sha256=B0XQ9SeKkldQl3lDwMALPfT-5KDzJ6FMGoI666kIDJ0,9728
72
+ mns_common/component/concept/ths_concept_common_service_api.py,sha256=HOjqA5f4V_9C6Pt7gArmeBy4bX5X_PKY5GxWymX22hs,10104
73
73
  mns_common/component/cookie/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
74
74
  mns_common/component/cookie/cookie_info_service.py,sha256=IIFKj84dnBrUOt2Wl6kbCj-BDdFX_X9z8IIk4LxLNTc,754
75
75
  mns_common/component/data/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
@@ -124,7 +124,7 @@ mns_common/utils/date_handle_util.py,sha256=qkEyKLYiVq6qpKVp32MLKwRtGKVBK6AY5at2
124
124
  mns_common/utils/db_util.py,sha256=hSmfNAN4vEeEaUva6_cicZEhb2jSnib-Gvk2reke1vc,2590
125
125
  mns_common/utils/file_util.py,sha256=egWu6PenGPRp_ixrNTHKarT4dAnOT6FETR82EHUZJnQ,1042
126
126
  mns_common/utils/ip_util.py,sha256=UTcYfz_uytB__6nlBf7T-izuI7hi4XdB6ET0sJgEel4,969
127
- mns_common-1.2.7.4.dist-info/METADATA,sha256=aA3fyB3g3wuYuFy-4b3-MpRNw9RTzic92TVNSYdL75k,61
128
- mns_common-1.2.7.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
129
- mns_common-1.2.7.4.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
130
- mns_common-1.2.7.4.dist-info/RECORD,,
127
+ mns_common-1.2.7.6.dist-info/METADATA,sha256=KppvMyblaNICHLbppVNAnPB0igG51D_0sMnKLg4Cpl8,61
128
+ mns_common-1.2.7.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
129
+ mns_common-1.2.7.6.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
130
+ mns_common-1.2.7.6.dist-info/RECORD,,