Functions-d 1.2.0__tar.gz → 1.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.
@@ -3,11 +3,9 @@ import datetime
3
3
  import inspect
4
4
  import json
5
5
  import logging
6
- import os
7
6
  import shutil
8
7
  import time
9
8
  import urllib.request
10
- import traceback
11
9
  import pandas as pd
12
10
  import WeComMsg
13
11
  import xlwings as xw
@@ -20,23 +18,17 @@ import HiveClient
20
18
  from PIL import ImageGrab, Image
21
19
  from bs4 import BeautifulSoup
22
20
  import re
23
- import xlsxwriter
24
21
  import numpy as np
25
22
  from pypinyin import lazy_pinyin
26
23
  from selenium import webdriver
27
- from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
28
24
  from selenium.webdriver.edge.service import Service
29
25
  from selenium.webdriver.edge.options import Options
30
26
  from webdriver_manager.microsoft import EdgeChromiumDriverManager
31
- import platform
32
27
  import requests
33
28
  import psutil
34
29
  import pythoncom
35
30
  from tenacity import retry, stop_after_attempt, wait_fixed
36
- # import re
37
31
  import os
38
- # import pandas as pd
39
- # from .HiveClient import HiveClient # 确保导入路径正确
40
32
 
41
33
 
42
34
  class DataProcessingAndMessaging:
@@ -61,7 +53,6 @@ class DataProcessingAndMessaging:
61
53
  console_handler.setFormatter(logging.Formatter('%(asctime)s - %(levelname)s - %(message)s'))
62
54
  self.logger.addHandler(console_handler)
63
55
 
64
- self.logger.info('\n' * 5)
65
56
  self.logger.info("初始化 DataProcessingAndMessaging 类")
66
57
 
67
58
  # -------------------------- 2. 主类核心参数初始化 --------------------------
@@ -154,7 +145,7 @@ class DataProcessingAndMessaging:
154
145
  elapsed_time = round(end_time - self.start_time, 0)
155
146
  print(f"运行时间:{elapsed_time} 秒")
156
147
  self.logger.info(f"运行时间:{elapsed_time} 秒")
157
- self.logger.info('\n' * 5)
148
+ self.logger.info('\n' * 10)
158
149
 
159
150
  # -------------------------- 企业微信消息发送 --------------------------
160
151
  def uxin_wx(self, name, message, mentioned_list=None):
@@ -404,8 +395,8 @@ class DataProcessingAndMessaging:
404
395
  self.logger.info(f"使用直接传入的SQL内容,长度:{len(sql)}字符")
405
396
  else:
406
397
  sql_file_path = os.path.join(path, sql_name)
407
- self.logger.info(f"准备执行SQL文件:{sql_file_path}")
408
- print(f"准备执行SQL文件:{sql_file_path}")
398
+ # self.logger.info(f"准备执行SQL文件:{sql_file_path}")
399
+ # print(f"准备执行SQL文件:{sql_file_path}")
409
400
 
410
401
  try:
411
402
  with open(sql_file_path, encoding='utf-8') as sql_file:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Functions_d
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: 包含数据处理、Hive交互、企业微信消息发送、Excel操作等功能的工具类库
5
5
  Author: DongYang
6
6
  Author-email: 649898871@qq.com
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Functions_d
3
- Version: 1.2.0
3
+ Version: 1.2.2
4
4
  Summary: 包含数据处理、Hive交互、企业微信消息发送、Excel操作等功能的工具类库
5
5
  Author: DongYang
6
6
  Author-email: 649898871@qq.com
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = Functions_d
3
- version = 1.2.0
3
+ version = 1.2.2
4
4
  author = DongYang
5
5
  author_email = 649898871@qq.com
6
6
  description = 包含数据处理、Hive交互、企业微信消息发送、Excel操作等功能的工具类库
File without changes
File without changes
File without changes