mdbq 1.8.9__tar.gz → 1.9.0__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 (46) hide show
  1. {mdbq-1.8.9 → mdbq-1.9.0}/PKG-INFO +1 -1
  2. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/aggregation/aggregation.py +5 -0
  3. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/company/copysh.py +2 -2
  4. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/other/sku_picture.py +3 -1
  5. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq.egg-info/PKG-INFO +1 -1
  6. {mdbq-1.8.9 → mdbq-1.9.0}/setup.py +1 -1
  7. {mdbq-1.8.9 → mdbq-1.9.0}/README.txt +0 -0
  8. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/__init__.py +0 -0
  9. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/__version__.py +0 -0
  10. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/aggregation/__init__.py +0 -0
  11. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/aggregation/df_types.py +0 -0
  12. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/aggregation/mysql_types.py +0 -0
  13. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/aggregation/optimize_data.py +0 -0
  14. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/aggregation/query_data.py +0 -0
  15. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/bdup/__init__.py +0 -0
  16. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/bdup/bdup.py +0 -0
  17. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/clean/__init__.py +0 -0
  18. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/clean/data_clean.py +0 -0
  19. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/company/__init__.py +0 -0
  20. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/config/__init__.py +0 -0
  21. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/config/get_myconf.py +0 -0
  22. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/config/products.py +0 -0
  23. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/config/set_support.py +0 -0
  24. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/config/update_conf.py +0 -0
  25. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/dataframe/__init__.py +0 -0
  26. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/dataframe/converter.py +0 -0
  27. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/log/__init__.py +0 -0
  28. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/log/mylogger.py +0 -0
  29. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/mongo/__init__.py +0 -0
  30. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/mongo/mongo.py +0 -0
  31. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/mysql/__init__.py +0 -0
  32. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/mysql/mysql.py +0 -0
  33. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/mysql/s_query.py +0 -0
  34. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/mysql/year_month_day.py +0 -0
  35. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/other/__init__.py +0 -0
  36. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/other/porxy.py +0 -0
  37. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/other/pov_city.py +0 -0
  38. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/other/ua_sj.py +0 -0
  39. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/pbix/__init__.py +0 -0
  40. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/pbix/pbix_refresh.py +0 -0
  41. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/pbix/refresh_all.py +0 -0
  42. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq/spider/__init__.py +0 -0
  43. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq.egg-info/SOURCES.txt +0 -0
  44. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq.egg-info/dependency_links.txt +0 -0
  45. {mdbq-1.8.9 → mdbq-1.9.0}/mdbq.egg-info/top_level.txt +0 -0
  46. {mdbq-1.8.9 → mdbq-1.9.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mdbq
3
- Version: 1.8.9
3
+ Version: 1.9.0
4
4
  Home-page: https://pypi.org/project/mdbsql
5
5
  Author: xigua,
6
6
  Author-email: 2587125111@qq.com
@@ -379,6 +379,11 @@ class DatabaseUpdate:
379
379
  df.replace(to_replace=['--'], value='', regex=False, inplace=True)
380
380
  df = df[df['人群规模'] != '']
381
381
  if len(df) == 0:
382
+ if is_move:
383
+ try:
384
+ os.remove(os.path.join(root, name)) # 是否移除原文件
385
+ except Exception as e:
386
+ print(f'{name}, {e}')
382
387
  continue
383
388
  elif name.endswith('.csv') and '客户_客户概况_画像' in name:
384
389
  df = pd.read_csv(os.path.join(root, name), encoding='utf-8_sig', header=0, na_filter=False)
@@ -256,8 +256,8 @@ class TbFiles:
256
256
  r = refresh_all.RefreshAll()
257
257
  for file in files:
258
258
  if file.endswith('.xlsx'):
259
- now = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
260
- print(f'正在刷新 excel: {file}')
259
+ # now = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
260
+ # print(f'{now}正在刷新 excel: {file}')
261
261
  r.refresh_excel2(excel_file=os.path.join(excel_path, file))
262
262
  time.sleep(10)
263
263
 
@@ -434,6 +434,7 @@ class SkuPicture:
434
434
  '推荐卖点': desc,
435
435
  '是否新增': data['是否新增'],
436
436
  '类目': leimu,
437
+ '更新时间': datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
437
438
  }
438
439
  )
439
440
  except Exception as e:
@@ -454,7 +455,8 @@ class SkuPicture:
454
455
 
455
456
  if results:
456
457
  self.df = pd.concat(results)
457
- self.df = self.df[['sku图片链接'] != '0']
458
+ self.df.to_csv('C:\\Users\\Administrator\\Downloads\\商品id_编码_图片_临时文件.csv', encoding='utf-8_sig', index=False, header=True)
459
+ self.df = self.df[df['sku图片链接'] != '0']
458
460
 
459
461
  def read_df(self):
460
462
  path = os.path.join(self.path, self.filename)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mdbq
3
- Version: 1.8.9
3
+ Version: 1.9.0
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='1.8.9',
6
+ version='1.9.0',
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