mdbq 2.1.8__tar.gz → 2.1.9__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 (47) hide show
  1. {mdbq-2.1.8 → mdbq-2.1.9}/PKG-INFO +1 -1
  2. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/aggregation/query_data.py +4 -1
  3. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/company/copysh.py +4 -2
  4. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/mysql/s_query.py +1 -0
  5. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq.egg-info/PKG-INFO +1 -1
  6. {mdbq-2.1.8 → mdbq-2.1.9}/setup.py +1 -1
  7. {mdbq-2.1.8 → mdbq-2.1.9}/README.txt +0 -0
  8. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/__init__.py +0 -0
  9. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/__version__.py +0 -0
  10. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/aggregation/__init__.py +0 -0
  11. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/aggregation/aggregation.py +0 -0
  12. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/aggregation/df_types.py +0 -0
  13. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/aggregation/mysql_types.py +0 -0
  14. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/aggregation/optimize_data.py +0 -0
  15. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/bdup/__init__.py +0 -0
  16. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/bdup/bdup.py +0 -0
  17. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/clean/__init__.py +0 -0
  18. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/clean/data_clean.py +0 -0
  19. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/company/__init__.py +0 -0
  20. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/company/home_sh.py +0 -0
  21. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/config/__init__.py +0 -0
  22. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/config/get_myconf.py +0 -0
  23. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/config/products.py +0 -0
  24. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/config/set_support.py +0 -0
  25. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/config/update_conf.py +0 -0
  26. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/dataframe/__init__.py +0 -0
  27. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/dataframe/converter.py +0 -0
  28. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/log/__init__.py +0 -0
  29. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/log/mylogger.py +0 -0
  30. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/mongo/__init__.py +0 -0
  31. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/mongo/mongo.py +0 -0
  32. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/mysql/__init__.py +0 -0
  33. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/mysql/mysql.py +0 -0
  34. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/mysql/year_month_day.py +0 -0
  35. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/other/__init__.py +0 -0
  36. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/other/porxy.py +0 -0
  37. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/other/pov_city.py +0 -0
  38. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/other/sku_picture.py +0 -0
  39. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/other/ua_sj.py +0 -0
  40. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/pbix/__init__.py +0 -0
  41. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/pbix/pbix_refresh.py +0 -0
  42. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/pbix/refresh_all.py +0 -0
  43. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq/spider/__init__.py +0 -0
  44. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq.egg-info/SOURCES.txt +0 -0
  45. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq.egg-info/dependency_links.txt +0 -0
  46. {mdbq-2.1.8 → mdbq-2.1.9}/mdbq.egg-info/top_level.txt +0 -0
  47. {mdbq-2.1.8 → mdbq-2.1.9}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mdbq
3
- Version: 2.1.8
3
+ Version: 2.1.9
4
4
  Home-page: https://pypi.org/project/mdbsql
5
5
  Author: xigua,
6
6
  Author-email: 2587125111@qq.com
@@ -557,11 +557,14 @@ class MysqlDatasQuery:
557
557
 
558
558
  df_tb = self.download.data_to_df(
559
559
  db_name='推广数据_淘宝店',
560
- table_name='账户报表',
560
+ table_name='营销场景报表',
561
561
  start_date=start_date,
562
562
  end_date=end_date,
563
563
  projection=projection,
564
564
  )
565
+ # print(df_tb)
566
+ # df_tm.to_csv('/Users/xigua/Downloads/test2.csv', index=False, header=True, encoding='utf-8_sig')
567
+ # df_tb.to_csv('/Users/xigua/Downloads/test.csv', index=False, header=True, encoding='utf-8_sig')
565
568
  df_tb.rename(columns={'场景名字': '营销场景'}, inplace=True)
566
569
  df_tb = df_tb.groupby(
567
570
  ['日期', '营销场景', '花费'],
@@ -257,13 +257,16 @@ class TbFiles:
257
257
  files = os.listdir(excel_path)
258
258
  r = refresh_all.RefreshAll()
259
259
  for file in files:
260
+ if '~' in file or 'DS_Store' in file or 'baidu' in file or 'xunlei' in name:
261
+ continue
260
262
  if file.endswith('.xlsx'):
261
263
  # now = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
262
264
  # print(f'{now}正在刷新 excel: {file}')
263
265
  r.refresh_excel2(excel_file=os.path.join(excel_path, file))
264
266
  time.sleep(10)
265
267
 
266
- excel_file = f'\\\\190.168.1.198\\时尚事业部\\01.运营部\\0-电商周报-每周五更新\\WLM 周报-模版V1.xlsx'
268
+ # 临时加的
269
+ excel_file = f'\\\\192.168.1.198\\时尚事业部\\01.运营部\\0-电商周报-每周五更新\\WLM 周报-模版V1.xlsx'
267
270
  r.refresh_excel2(excel_file=excel_file)
268
271
 
269
272
  self.before_max_time = self.check_change() # 重置值, 避免重复同步
@@ -403,4 +406,3 @@ if __name__ == '__main__':
403
406
  main()
404
407
  # # 聚合数据,并清理聚合数据
405
408
  # query_data.data_aggregation(service_databases=[{'company': 'mysql'}], months=1)
406
-
@@ -79,6 +79,7 @@ class QueryDatas:
79
79
  else: # 没有指定获取列,且数据表也没有日期列,则返回全部列的全部数据
80
80
  all_col = ', '.join([f"`{item}`" for item in cols_exist if item != 'id'])
81
81
  sql = f"SELECT %s FROM `%s`.`%s`" % (all_col, db_name, table_name)
82
+ # print(sql)
82
83
  cursor.execute(sql)
83
84
  rows = cursor.fetchall() # 获取查询结果
84
85
  columns = [desc[0] for desc in cursor.description]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mdbq
3
- Version: 2.1.8
3
+ Version: 2.1.9
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.1.8',
6
+ version='2.1.9',
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