mns-common 1.3.4.2__py3-none-any.whl → 1.3.4.4__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/__init__.py CHANGED
@@ -5,3 +5,9 @@ file_path = os.path.abspath(__file__)
5
5
  end = file_path.index('mns') + 14
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
+
9
+ import warnings
10
+ import pandas as pd
11
+
12
+ # 禁用 SettingWithCopyWarning
13
+ warnings.filterwarnings('ignore', category=pd.errors.SettingWithCopyWarning)
@@ -5,3 +5,8 @@ file_path = os.path.abspath(__file__)
5
5
  end = file_path.index('mns') + 14
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
+ import warnings
9
+ import pandas as pd
10
+
11
+ # 禁用 SettingWithCopyWarning
12
+ warnings.filterwarnings('ignore', category=pd.errors.SettingWithCopyWarning)
@@ -4,4 +4,10 @@ import os
4
4
  file_path = os.path.abspath(__file__)
5
5
  end = file_path.index('mns') + 14
6
6
  project_path = file_path[0:end]
7
- sys.path.append(project_path)
7
+ sys.path.append(project_path)
8
+
9
+ import warnings
10
+ import pandas as pd
11
+
12
+ # 禁用 SettingWithCopyWarning
13
+ warnings.filterwarnings('ignore', category=pd.errors.SettingWithCopyWarning)
@@ -5,3 +5,8 @@ file_path = os.path.abspath(__file__)
5
5
  end = file_path.index('mns') + 14
6
6
  project_path = file_path[0:end]
7
7
  sys.path.append(project_path)
8
+ import warnings
9
+ import pandas as pd
10
+
11
+ # 禁用 SettingWithCopyWarning
12
+ warnings.filterwarnings('ignore', category=pd.errors.SettingWithCopyWarning)
@@ -11,8 +11,7 @@ from mns_common.utils.async_fun import async_fun
11
11
  from loguru import logger
12
12
  import mns_common.utils.ip_util as ip_util
13
13
  import warnings
14
-
15
- warnings.filterwarnings("ignore")
14
+ warnings.filterwarnings("ignore", category=DeprecationWarning)
16
15
 
17
16
 
18
17
  class MongodbUtil:
@@ -10,8 +10,7 @@ import pymongo
10
10
  from mns_common.utils.async_fun import async_fun
11
11
  from loguru import logger
12
12
  import warnings
13
-
14
- warnings.filterwarnings("ignore")
13
+ warnings.filterwarnings("ignore", category=DeprecationWarning)
15
14
 
16
15
 
17
16
  class MongodbUtilLocal:
@@ -11,8 +11,7 @@ from mns_common.utils.async_fun import async_fun
11
11
  from loguru import logger
12
12
  import mns_common.utils.ip_util as ip_util
13
13
  import warnings
14
-
15
- warnings.filterwarnings("ignore")
14
+ warnings.filterwarnings("ignore", category=DeprecationWarning)
16
15
 
17
16
 
18
17
  class MongodbUtilV2:
@@ -272,7 +271,6 @@ from io import StringIO
272
271
  import re
273
272
 
274
273
  if __name__ == '__main__':
275
- mongodb_util = MongodbUtil('27017')
276
274
  #
277
275
  # kpl_best_choose_index_df = mongodb_util.find_page_skip_data('kpl_best_choose_index', {"index_class": "sub_index"},
278
276
  # 1, 100, 'create_time', True)
@@ -0,0 +1,4 @@
1
+ Metadata-Version: 2.1
2
+ Name: mns-common
3
+ Version: 1.3.4.4
4
+
@@ -1,5 +1,5 @@
1
- mns_common/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
2
- mns_common/api/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
1
+ mns_common/__init__.py,sha256=ZQmo83Xgfj7Y4LgNlBr3pwmtgAKZpunU18A9-wvYoPI,316
2
+ mns_common/api/__init__.py,sha256=JcWMR8u8uXDKQQ_rm1sKVFMz1_Wd-Na2Hxxhz6MaTsk,314
3
3
  mns_common/api/akshare/__init__.py,sha256=xu36nA6MJTauswUWPfKIKH0E-lpOAHTw2TL5QI_6TeY,165
4
4
  mns_common/api/akshare/k_line_api.py,sha256=Kl0KIjqQ7GWD2624M18KiU8YkeAt5_udODIGpuvPBFU,6138
5
5
  mns_common/api/akshare/stock_bid_ask_api.py,sha256=lDDTKWRyL5yc3HrxhW_cBW8y7yhFFBqyuOZjhyJUP5k,8170
@@ -65,7 +65,7 @@ mns_common/api/ths/zt/ths_stock_zt_pool_api.py,sha256=GIYdc5J7ZrV25Elbf0n3bBZOc7
65
65
  mns_common/api/ths/zt/ths_stock_zt_pool_v2_api.py,sha256=ohkeXyUSvxie2YqFPxqy9eLAHyFKQ5nx9U0JcR5LKeQ,16349
66
66
  mns_common/api/us/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
67
67
  mns_common/api/us/ths_us_company_info_api.py,sha256=qQjv4F-ovQ2uuu-FlBAnxjvVA7qj9y_x5WZtUoyoEW4,241
68
- mns_common/component/__init__.py,sha256=8b2PuXJM5fLoq71cWPXp695czQuaRtyR6OVHajGjDPc,161
68
+ mns_common/component/__init__.py,sha256=ZQmo83Xgfj7Y4LgNlBr3pwmtgAKZpunU18A9-wvYoPI,316
69
69
  mns_common/component/common_service_fun_api.py,sha256=3wlD3FlZ8W5X6indKZIX-ol48xNZX_UmeLnDxP10vvA,5221
70
70
  mns_common/component/cache/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
71
71
  mns_common/component/cache/cache_service.py,sha256=QX7tjR1iGsoCyGt6O41w8aRbZ-3xXQ-53Ps3nmUzAGQ,809
@@ -115,7 +115,7 @@ mns_common/component/trade_date/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1Qg
115
115
  mns_common/component/trade_date/trade_date_common_service_api.py,sha256=PHrcUjgLdNKbqyMGot0poKtiLBys_wRZoheMhPJE-U4,3032
116
116
  mns_common/component/zt/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
117
117
  mns_common/component/zt/zt_common_service_api.py,sha256=6pHRLLJjKcLLBA-xXkAU8SE6DZ5dgVFBRVjJmhkL0II,11945
118
- mns_common/constant/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
118
+ mns_common/constant/__init__.py,sha256=JcWMR8u8uXDKQQ_rm1sKVFMz1_Wd-Na2Hxxhz6MaTsk,314
119
119
  mns_common/constant/black_list_classify_enum.py,sha256=I8U_DcltzYvlWjgn-TFLImgVgPuO0lxMnEJAQJBljdo,3995
120
120
  mns_common/constant/db_name_constant.py,sha256=Hnj3ORT6wsDl2BOANtpg9kZi1rhS6c-osJ2jqZPyKUQ,4142
121
121
  mns_common/constant/east_money_stock_api.py,sha256=mW0b8sEgkf8WJtars2frOQYzsWgjIl4FDYEwcCcCSZY,7557
@@ -123,10 +123,10 @@ mns_common/constant/extra_income_db_name.py,sha256=AsIO1CtcVRq9k7TKtjFA1KzuL_jvA
123
123
  mns_common/constant/price_enum.py,sha256=nhcPxk0AFdQAp8IsNr5EP9xURLqqJuSl6ljIzTp7Wyo,1093
124
124
  mns_common/constant/redis_msg_constant.py,sha256=fMtI_WbJ2IkMX4qGwvR5MkMO0NqU8XgUUZqQzHIRscU,501
125
125
  mns_common/constant/self_choose_constant.py,sha256=Xnzp9cn5x5_UdqF4gozSDErkzafnbCYBjDH8YpTEU84,777
126
- mns_common/db/MongodbUtil.py,sha256=zefStY9z67HqkvzmshsSV6kG4RgZSVe3fnIp8m0zWYU,11706
127
- mns_common/db/MongodbUtilLocal.py,sha256=xLUTeeZ83BbqPtUEwy7QmPtkSfwPyNB_5ggkn-eMpBQ,7560
126
+ mns_common/db/MongodbUtil.py,sha256=qZJKu29h-1KhLi_L7lSH7P0FuWzQHakgMFuzjSzOJuU,11733
127
+ mns_common/db/MongodbUtilLocal.py,sha256=JpNQ2V2fgBtIDf1uvBmJsV2NewtZXkjTpZmT3wFXuYs,7587
128
128
  mns_common/db/__init__.py,sha256=2U9DiKslxsWwLLEcZKjS8UiQPN1QgALvnK3HiJNIZE0,163
129
- mns_common/db/v2/MongodbUtilV2.py,sha256=ChIUCV9vT-R8CY0uEwGULM5RInNA93UWSRohxFJG-tU,11781
129
+ mns_common/db/v2/MongodbUtilV2.py,sha256=XCZtPcQRoO6Rzm1urPHAS0If3_ua2OgjjLELfa0r-qI,11767
130
130
  mns_common/db/v2/__init__.py,sha256=wEg73KlZo-dU0yKGwpA1C2y6LZm4IBb94tNda1tqLeg,163
131
131
  mns_common/utils/__init__.py,sha256=xu36nA6MJTauswUWPfKIKH0E-lpOAHTw2TL5QI_6TeY,165
132
132
  mns_common/utils/async_fun.py,sha256=YTxjAtCmOz38OHNC8L_5thjM_uFBmh3arx0eJwILi_A,352
@@ -136,7 +136,7 @@ mns_common/utils/date_handle_util.py,sha256=XS-MyA8_7k35LOCFAYOHgVcVkMft_Kc4Wa9U
136
136
  mns_common/utils/db_util.py,sha256=hSmfNAN4vEeEaUva6_cicZEhb2jSnib-Gvk2reke1vc,2590
137
137
  mns_common/utils/file_util.py,sha256=egWu6PenGPRp_ixrNTHKarT4dAnOT6FETR82EHUZJnQ,1042
138
138
  mns_common/utils/ip_util.py,sha256=UTcYfz_uytB__6nlBf7T-izuI7hi4XdB6ET0sJgEel4,969
139
- mns_common-1.3.4.2.dist-info/METADATA,sha256=EYlfSKE_WgWMYWDf3Kx1Kj9YbkV5y5ljJUGEqzb1QCo,61
140
- mns_common-1.3.4.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
141
- mns_common-1.3.4.2.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
142
- mns_common-1.3.4.2.dist-info/RECORD,,
139
+ mns_common-1.3.4.4.dist-info/METADATA,sha256=lmBu7J6y2QdX-QK-2aLOOrR55bha_1GZ1qkHFeSurTQ,61
140
+ mns_common-1.3.4.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
141
+ mns_common-1.3.4.4.dist-info/top_level.txt,sha256=ZC58kAR-8Hvc6U2xhYNBNLAh3mb6sZazbdj5nZpvEkQ,11
142
+ mns_common-1.3.4.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: bdist_wheel (0.45.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,4 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: mns_common
3
- Version: 1.3.4.2
4
-