mdbq 2.2.1__tar.gz → 2.2.2__tar.gz

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.
Files changed (48) hide show
  1. {mdbq-2.2.1 → mdbq-2.2.2}/PKG-INFO +1 -1
  2. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/pbix/refresh_all.py +13 -7
  3. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq.egg-info/PKG-INFO +1 -1
  4. {mdbq-2.2.1 → mdbq-2.2.2}/setup.py +1 -1
  5. {mdbq-2.2.1 → mdbq-2.2.2}/README.txt +0 -0
  6. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/__init__.py +0 -0
  7. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/__version__.py +0 -0
  8. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/aggregation/__init__.py +0 -0
  9. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/aggregation/aggregation.py +0 -0
  10. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/aggregation/df_types.py +0 -0
  11. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/aggregation/mysql_types.py +0 -0
  12. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/aggregation/optimize_data.py +0 -0
  13. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/aggregation/query_data.py +0 -0
  14. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/bdup/__init__.py +0 -0
  15. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/bdup/bdup.py +0 -0
  16. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/clean/__init__.py +0 -0
  17. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/clean/data_clean.py +0 -0
  18. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/company/__init__.py +0 -0
  19. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/company/copysh.py +0 -0
  20. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/company/home_sh.py +0 -0
  21. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/config/__init__.py +0 -0
  22. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/config/get_myconf.py +0 -0
  23. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/config/products.py +0 -0
  24. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/config/set_support.py +0 -0
  25. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/config/update_conf.py +0 -0
  26. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/dataframe/__init__.py +0 -0
  27. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/dataframe/converter.py +0 -0
  28. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/log/__init__.py +0 -0
  29. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/log/mylogger.py +0 -0
  30. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/mongo/__init__.py +0 -0
  31. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/mongo/mongo.py +0 -0
  32. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/mysql/__init__.py +0 -0
  33. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/mysql/mysql.py +0 -0
  34. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/mysql/s_query.py +0 -0
  35. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/mysql/year_month_day.py +0 -0
  36. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/other/__init__.py +0 -0
  37. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/other/porxy.py +0 -0
  38. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/other/pov_city.py +0 -0
  39. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/other/sku_picture.py +0 -0
  40. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/other/ua_sj.py +0 -0
  41. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/pbix/__init__.py +0 -0
  42. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/pbix/pbix_refresh.py +0 -0
  43. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/pbix/refresh_all_old.py +0 -0
  44. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq/spider/__init__.py +0 -0
  45. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq.egg-info/SOURCES.txt +0 -0
  46. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq.egg-info/dependency_links.txt +0 -0
  47. {mdbq-2.2.1 → mdbq-2.2.2}/mdbq.egg-info/top_level.txt +0 -0
  48. {mdbq-2.2.1 → mdbq-2.2.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mdbq
3
- Version: 2.2.1
3
+ Version: 2.2.2
4
4
  Home-page: https://pypi.org/project/mdbsql
5
5
  Author: xigua,
6
6
  Author-email: 2587125111@qq.com
@@ -4,6 +4,7 @@ import win32com.client
4
4
  import time
5
5
  import psutil
6
6
  from pywinauto.application import Application
7
+ import datetime
7
8
  import warnings
8
9
  # from mdbq.config import set_support
9
10
 
@@ -21,7 +22,8 @@ class RefreshAll:
21
22
  def refresh_pbix(self, file):
22
23
  # 刷新 PBI
23
24
  if not os.path.isfile(file):
24
- print(f'{file} -> 文件不存在')
25
+ now = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S ')
26
+ print(f'{now}{file} -> 文件不存在')
25
27
  return
26
28
  # with open(self.pbix_path, 'r', encoding='utf-8') as f:
27
29
  # content = f.readlines()
@@ -37,18 +39,21 @@ class RefreshAll:
37
39
  """刷新程序"""
38
40
  for es in range(4):
39
41
  try:
40
- print(f'正在刷新 >>>{file}')
42
+ now = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S ')
43
+ print(f'{now}正在刷新 >>>{file}')
41
44
  self.pbi(path=file)
42
- print('文件已刷新!')
45
+ # print('文件已刷新!')
43
46
  break
44
47
  except Exception as e:
45
48
  print(e)
46
- print('报错的文件 >>>' + file + ' >> ' + str(es + 1))
49
+ now = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S ')
50
+ print(f'{now}报错的文件 >>>' + file + ' >> ' + str(es + 1))
47
51
 
48
52
  def refresh_excel(self, file):
49
53
  # 刷新 excel
50
54
  if not os.path.isfile(file):
51
- print(f'{file} -> 文件不存在')
55
+ now = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S ')
56
+ print(f'{now}{file} -> 文件不存在')
52
57
  return
53
58
  if not file.endswith('.xlsx') and not file.endswith('.xls'):
54
59
  return
@@ -61,7 +66,8 @@ class RefreshAll:
61
66
  # if not excel_list:
62
67
  # return
63
68
  try:
64
- print(f'正在刷新 >>>{file}')
69
+ now = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S ')
70
+ print(f'{now}正在刷新 >>>{file}')
65
71
  xlapp = win32com.client.Dispatch('Excel.Application') # 创建Excel程序App
66
72
  xlapp.Visible = False # 窗口是否可见
67
73
  xlapp.DisplayAlerts = False # 是否显示警告信息
@@ -78,7 +84,7 @@ class RefreshAll:
78
84
  wb.Save()
79
85
  wb.Close(SaveChanges=True)
80
86
  xlapp.Quit()
81
- print('文件已刷新!')
87
+ # print('文件已刷新!')
82
88
  except Exception as e:
83
89
  print(file, e)
84
90
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mdbq
3
- Version: 2.2.1
3
+ Version: 2.2.2
4
4
  Home-page: https://pypi.org/project/mdbsql
5
5
  Author: xigua,
6
6
  Author-email: 2587125111@qq.com
@@ -3,7 +3,7 @@
3
3
  from setuptools import setup, find_packages
4
4
 
5
5
  setup(name='mdbq',
6
- version='2.2.1',
6
+ version='2.2.2',
7
7
  author='xigua, ',
8
8
  author_email="2587125111@qq.com",
9
9
  url='https://pypi.org/project/mdbsql',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes