xtn-tools-pro 1.0.0.2.3__tar.gz → 1.0.0.2.5__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {xtn-tools-pro-1.0.0.2.3/xtn_tools_pro.egg-info → xtn-tools-pro-1.0.0.2.5}/PKG-INFO +1 -1
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/setup.py +1 -1
- xtn-tools-pro-1.0.0.2.5/xtn_tools_pro/task_pro/go_fun.py +24 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/utils/file_utils.py +13 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5/xtn_tools_pro.egg-info}/PKG-INFO +1 -1
- xtn-tools-pro-1.0.0.2.3/xtn_tools_pro/task_pro/go_fun.py +0 -14
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/LICENSE +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/README.md +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/setup.cfg +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/db/MongoDB.py +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/db/MysqlDB.py +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/db/RedisDB.py +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/db/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/proxy/XiaoXiangProxy.py +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/proxy/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/proxy/proxy.py +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/task_pro/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/tools.py +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/utils/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/utils/crypto.py +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/utils/helpers.py +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/utils/log.py +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/utils/retry.py +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/utils/sql.py +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro/utils/time_utils.py +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro.egg-info/SOURCES.txt +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro.egg-info/dependency_links.txt +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro.egg-info/requires.txt +0 -0
- {xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro.egg-info/top_level.txt +0 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/usr/bin/env python
|
2
|
+
# -*- coding: utf-8 -*-
|
3
|
+
|
4
|
+
# 说明:
|
5
|
+
# 程序说明xxxxxxxxxxxxxxxxxxx
|
6
|
+
# History:
|
7
|
+
# Date Author Version Modification
|
8
|
+
# --------------------------------------------------------------------------------------------------
|
9
|
+
# 2025/1/14 xiatn V00.01.000 新建
|
10
|
+
# --------------------------------------------------------------------------------------------------
|
11
|
+
import os
|
12
|
+
from xtn_tools_pro.utils.file_utils import check_file_exists
|
13
|
+
|
14
|
+
|
15
|
+
class GoFun:
|
16
|
+
def __init__(self, ini_file=""):
|
17
|
+
if not ini_file:
|
18
|
+
ini_current_dir = os.getcwd()
|
19
|
+
ini_file = os.path.join(ini_current_dir, "st.ini")
|
20
|
+
if not check_file_exists(ini_file):
|
21
|
+
raise Exception("st.ini 配置文件不存在,请在当前文件夹中新建该配置文件")
|
22
|
+
|
23
|
+
print(ini_file)
|
24
|
+
print(f"The current working directory is: {ini_current_dir}")
|
@@ -35,6 +35,7 @@ def get_file_check_filename(file_name):
|
|
35
35
|
sanitized_filename = sanitized_filename[:max_length]
|
36
36
|
return sanitized_filename
|
37
37
|
|
38
|
+
|
38
39
|
def mkdirs_dir(file_path):
|
39
40
|
"""
|
40
41
|
传入一个文件路径创建对应的文件夹,如果某一段不存在则一路创建下去
|
@@ -45,6 +46,18 @@ def mkdirs_dir(file_path):
|
|
45
46
|
if not os.path.exists(directory):
|
46
47
|
os.makedirs(directory)
|
47
48
|
|
49
|
+
|
50
|
+
def check_file_exists(file_path):
|
51
|
+
"""
|
52
|
+
传入一个文件路径,判断文件是否存在
|
53
|
+
:param file_path:
|
54
|
+
:return:
|
55
|
+
"""
|
56
|
+
if os.path.exists(file_path):
|
57
|
+
return True
|
58
|
+
return False
|
59
|
+
|
60
|
+
|
48
61
|
if __name__ == '__main__':
|
49
62
|
pass
|
50
63
|
print(get_file_extension('file/2024-04-19/BOSCH GEX 125-1A/125-1AE砂磨机操作说明书:[1]_jingyan.txt'))
|
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env python
|
2
|
-
# -*- coding: utf-8 -*-
|
3
|
-
|
4
|
-
# 说明:
|
5
|
-
# 程序说明xxxxxxxxxxxxxxxxxxx
|
6
|
-
# History:
|
7
|
-
# Date Author Version Modification
|
8
|
-
# --------------------------------------------------------------------------------------------------
|
9
|
-
# 2025/1/14 xiatn V00.01.000 新建
|
10
|
-
# --------------------------------------------------------------------------------------------------
|
11
|
-
|
12
|
-
class GoFun:
|
13
|
-
def __init__(self):
|
14
|
-
pass
|
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
|
{xtn-tools-pro-1.0.0.2.3 → xtn-tools-pro-1.0.0.2.5}/xtn_tools_pro.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|