xtn-tools-pro 1.0.0.2.5__tar.gz → 1.0.0.2.6__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.5/xtn_tools_pro.egg-info → xtn-tools-pro-1.0.0.2.6}/PKG-INFO +1 -1
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/setup.py +1 -1
- xtn-tools-pro-1.0.0.2.6/xtn_tools_pro/task_pro/go_fun.py +43 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6/xtn_tools_pro.egg-info}/PKG-INFO +1 -1
- xtn-tools-pro-1.0.0.2.5/xtn_tools_pro/task_pro/go_fun.py +0 -24
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/LICENSE +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/README.md +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/setup.cfg +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/db/MongoDB.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/db/MysqlDB.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/db/RedisDB.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/db/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/proxy/XiaoXiangProxy.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/proxy/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/proxy/proxy.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/task_pro/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/tools.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/utils/__init__.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/utils/crypto.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/utils/file_utils.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/utils/helpers.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/utils/log.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/utils/retry.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/utils/sql.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro/utils/time_utils.py +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro.egg-info/SOURCES.txt +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro.egg-info/dependency_links.txt +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro.egg-info/requires.txt +0 -0
- {xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro.egg-info/top_level.txt +0 -0
@@ -0,0 +1,43 @@
|
|
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
|
+
import configparser
|
13
|
+
from xtn_tools_pro.utils.file_utils import check_file_exists
|
14
|
+
|
15
|
+
|
16
|
+
class GoFun:
|
17
|
+
def __init__(self, ini_file=""):
|
18
|
+
if not ini_file:
|
19
|
+
ini_current_dir = os.getcwd()
|
20
|
+
ini_file = os.path.join(ini_current_dir, "st.ini")
|
21
|
+
if not check_file_exists(ini_file):
|
22
|
+
raise Exception("st.ini 配置文件不存在,请在当前文件夹中新建该配置文件")
|
23
|
+
|
24
|
+
# 读取配置信息
|
25
|
+
config = configparser.ConfigParser()
|
26
|
+
config.read(ini_file)
|
27
|
+
server_host = config.get('server', 'host')
|
28
|
+
server_port = config.get('server', 'port')
|
29
|
+
server_task = config.get('server', 'task')
|
30
|
+
server_auto = config.get('server', 'auto')
|
31
|
+
|
32
|
+
print(server_host, server_port, server_task)
|
33
|
+
if server_port:
|
34
|
+
task_host = f"http://{server_host}:{server_port}"
|
35
|
+
else:
|
36
|
+
task_host = f"http://{server_host}"
|
37
|
+
|
38
|
+
download_url = task_host + "/filter_server/phone/get"
|
39
|
+
upload_url = task_host + "/filter_server/phone/update"
|
40
|
+
|
41
|
+
print(server_auto)
|
42
|
+
print(download_url)
|
43
|
+
print(upload_url)
|
@@ -1,24 +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
|
-
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}")
|
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
|
{xtn-tools-pro-1.0.0.2.5 → xtn-tools-pro-1.0.0.2.6}/xtn_tools_pro.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|