mdbq 3.4.8__py3-none-any.whl → 3.4.9__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.
mdbq/aggregation/query_data.py
CHANGED
@@ -3850,7 +3850,8 @@ def main(days=150, months=3):
|
|
3850
3850
|
'市场数据3',
|
3851
3851
|
]
|
3852
3852
|
# 使用 ThreadPoolExecutor 来并行运行
|
3853
|
-
with concurrent.futures.ThreadPoolExecutor() as executor:
|
3853
|
+
# with concurrent.futures.ThreadPoolExecutor() as executor:
|
3854
|
+
with concurrent.futures.ProcessPoolExecutor() as executor:
|
3854
3855
|
for step in range(len(db_list)):
|
3855
3856
|
future_to_function = {
|
3856
3857
|
executor.submit(
|
@@ -3868,7 +3869,8 @@ def main(days=150, months=3):
|
|
3868
3869
|
# 2. 数据聚合
|
3869
3870
|
query_list = [query1, query2, query3]
|
3870
3871
|
# 使用 ThreadPoolExecutor 来并行运行
|
3871
|
-
with concurrent.futures.ThreadPoolExecutor() as executor:
|
3872
|
+
# with concurrent.futures.ThreadPoolExecutor() as executor:
|
3873
|
+
with concurrent.futures.ProcessPoolExecutor() as executor:
|
3872
3874
|
for func_query in query_list:
|
3873
3875
|
future_to_function = {
|
3874
3876
|
executor.submit(
|
@@ -3890,14 +3892,15 @@ def main(days=150, months=3):
|
|
3890
3892
|
|
3891
3893
|
|
3892
3894
|
if __name__ == '__main__':
|
3893
|
-
main(
|
3894
|
-
|
3895
|
-
|
3896
|
-
)
|
3895
|
+
# main(
|
3896
|
+
# days=3, # 清理聚合数据的日期长度
|
3897
|
+
# months=1 # 生成聚合数据的长度
|
3898
|
+
# )
|
3897
3899
|
|
3898
|
-
# query_list = [query1, query2]
|
3900
|
+
# query_list = [query1, query2, query3]
|
3899
3901
|
# # 使用 ThreadPoolExecutor 来并行运行
|
3900
|
-
# with concurrent.futures.ThreadPoolExecutor() as executor:
|
3902
|
+
# # with concurrent.futures.ThreadPoolExecutor() as executor:
|
3903
|
+
# with concurrent.futures.ProcessPoolExecutor() as executor:
|
3901
3904
|
# for func_query in query_list:
|
3902
3905
|
# future_to_function = {
|
3903
3906
|
# executor.submit(
|
@@ -3907,17 +3910,11 @@ if __name__ == '__main__':
|
|
3907
3910
|
# ),
|
3908
3911
|
# }
|
3909
3912
|
|
3910
|
-
|
3911
|
-
|
3912
|
-
|
3913
|
-
|
3914
|
-
|
3915
|
-
|
3916
|
-
# )
|
3913
|
+
optimize_data.op_data(
|
3914
|
+
db_name_lists=['聚合数据'],
|
3915
|
+
days=60, # 清理聚合数据的日期长度
|
3916
|
+
is_mongo=False,
|
3917
|
+
is_mysql=True,
|
3918
|
+
)
|
3917
3919
|
|
3918
|
-
# query3(months=2, less_dict=[])
|
3919
3920
|
|
3920
|
-
# sdq = MysqlDatasQuery() # 实例化数据处理类
|
3921
|
-
# sdq.months = 1 # 设置数据周期, 1 表示近 2 个月
|
3922
|
-
# sdq.update_service = True # 调试时加,true: 将数据写入 mysql 服务器
|
3923
|
-
# sdq.item_up()
|
@@ -4,7 +4,7 @@ mdbq/aggregation/__init__.py,sha256=EeDqX2Aml6SPx8363J-v1lz0EcZtgwIBYyCJV6CcEDU,
|
|
4
4
|
mdbq/aggregation/aggregation.py,sha256=-yzApnlqSN2L0E1YMu5ml-W827qpKQvWPCOI7jj2kzY,80264
|
5
5
|
mdbq/aggregation/datashow.py,sha256=1AYSIDkdUx-4as1Ax2rPj0cExM9d-qFMrFYLAaPHNuk,54962
|
6
6
|
mdbq/aggregation/optimize_data.py,sha256=RXIv7cACCgYyehAxMjUYi_S7rVyjIwXKWMaM3nduGtA,3068
|
7
|
-
mdbq/aggregation/query_data.py,sha256=
|
7
|
+
mdbq/aggregation/query_data.py,sha256=By7tPjrGuVyEuRwTmTdhkwU7s8U6-r_BoH3eXypRZ9I,178800
|
8
8
|
mdbq/bdup/__init__.py,sha256=AkhsGk81SkG1c8FqDH5tRq-8MZmFobVbN60DTyukYTY,28
|
9
9
|
mdbq/bdup/bdup.py,sha256=LAV0TgnQpc-LB-YuJthxb0U42_VkPidzQzAagan46lU,4234
|
10
10
|
mdbq/config/__init__.py,sha256=jso1oHcy6cJEfa7udS_9uO5X6kZLoPBF8l3wCYmr5dM,18
|
@@ -34,7 +34,7 @@ mdbq/pbix/refresh_all.py,sha256=OBT9EewSZ0aRS9vL_FflVn74d4l2G00wzHiikCC4TC0,5926
|
|
34
34
|
mdbq/pbix/refresh_all_old.py,sha256=_pq3WSQ728GPtEG5pfsZI2uTJhU8D6ra-htIk1JXYzw,7192
|
35
35
|
mdbq/spider/__init__.py,sha256=RBMFXGy_jd1HXZhngB2T2XTvJqki8P_Fr-pBcwijnew,18
|
36
36
|
mdbq/spider/aikucun.py,sha256=zOacjrJ3MvToyuugA68xB-oN6RKj8K3GxMKudnln9EA,22207
|
37
|
-
mdbq-3.4.
|
38
|
-
mdbq-3.4.
|
39
|
-
mdbq-3.4.
|
40
|
-
mdbq-3.4.
|
37
|
+
mdbq-3.4.9.dist-info/METADATA,sha256=duoMMqXV3SgW8V-H5OZezxNbrEznsg6U0_CZdcVIGUo,243
|
38
|
+
mdbq-3.4.9.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
39
|
+
mdbq-3.4.9.dist-info/top_level.txt,sha256=2FQ-uLnCSB-OwFiWntzmwosW3X2Xqsg0ewh1axsaylA,5
|
40
|
+
mdbq-3.4.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|