Functions-d 1.32__tar.gz → 1.34__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.
@@ -6,7 +6,6 @@ import logging
6
6
  import shutil
7
7
  import time
8
8
  import urllib.request
9
- import pandas as pd
10
9
  import WeComMsg
11
10
  import xlwings as xw
12
11
  import yagmail
@@ -24,11 +23,15 @@ from selenium import webdriver
24
23
  from selenium.webdriver.edge.service import Service
25
24
  from selenium.webdriver.edge.options import Options
26
25
  from webdriver_manager.microsoft import EdgeChromiumDriverManager
27
- import requests
28
26
  import psutil
29
27
  import pythoncom
30
28
  from tenacity import retry, stop_after_attempt, wait_fixed
29
+ import requests
30
+ import pandas as pd
31
31
  import os
32
+ from io import BytesIO
33
+ from requests.adapters import HTTPAdapter
34
+ from urllib3.util.retry import Retry
32
35
 
33
36
 
34
37
  class DataProcessingAndMessaging:
@@ -1694,14 +1697,6 @@ class DataProcessingAndMessaging:
1694
1697
  :param filename_in_server: 服务器上显示的文件名
1695
1698
  :return: 下载链接(失败返回None)
1696
1699
  """
1697
- import requests
1698
- import pandas as pd
1699
- import os
1700
- import datetime
1701
- from io import BytesIO
1702
- from requests.adapters import HTTPAdapter
1703
- from urllib3.util.retry import Retry
1704
-
1705
1700
  upload_url = "http://fs-cc.xin.com"
1706
1701
  self.logger.info(f"开始上传数据到内网服务器,服务器文件名:{filename_in_server}")
1707
1702
  print(f"📤 正在上传 → 服务器文件名:{filename_in_server}")
@@ -1768,7 +1763,7 @@ class DataProcessingAndMessaging:
1768
1763
  session = create_retry_session()
1769
1764
  files = {"file": (filename_in_server, file_obj, file_type)}
1770
1765
  # ====================== 【按要求修改:读超时改为5分钟(300秒)】 ======================
1771
- response = session.post(upload_url, files=files, timeout=(10, 300))
1766
+ response = session.post(upload_url, files=files, timeout=(10, 600))
1772
1767
  # ======================================================================
1773
1768
 
1774
1769
  # 关闭文件
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Functions_d
3
- Version: 1.32
3
+ Version: 1.34
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.32
3
+ Version: 1.34
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.32
3
+ version = 1.34
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