mdbq 3.7.13__py3-none-any.whl → 3.7.15__py3-none-any.whl
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.
mdbq/redis/getredis.py
CHANGED
@@ -18,22 +18,14 @@ import platform
|
|
18
18
|
from decimal import Decimal
|
19
19
|
import orjson
|
20
20
|
|
21
|
-
if platform.system() == 'Windows':
|
22
|
-
D_PATH = os.path.join(f'C:\\Users\\{getpass.getuser()}\\Downloads')
|
23
|
-
else:
|
24
|
-
D_PATH = os.path.join(os.path.realpath(os.path.dirname(sys.argv[0])), 'Downloads')
|
25
|
-
if not os.path.exists(D_PATH):
|
26
|
-
os.makedirs(D_PATH)
|
27
|
-
|
28
21
|
m_engine, username, password, host, port = default.get_mysql_engine(platform='Windows', hostname='xigua_lx', sql='mysql', local='remoto', config_file=None)
|
29
22
|
|
30
23
|
# 获取当前模块的日志记录器
|
31
24
|
logger = logging.getLogger(__name__)
|
32
25
|
|
33
26
|
# 创建一个文件处理器,用于将日志写入文件
|
34
|
-
|
35
|
-
|
36
|
-
log_file = os.path.join(D_PATH, 'logfile', 'redis.log')
|
27
|
+
dir_path = os.path.realpath(os.path.dirname(sys.argv[0]))
|
28
|
+
log_file = os.path.join(dir_path, 'logfile', 'redis.log')
|
37
29
|
file_handler = RotatingFileHandler(log_file, maxBytes=3 * 1024 * 1024, backupCount=10, encoding='utf-8') # 保留10个备份文件
|
38
30
|
file_handler.setLevel(logging.INFO) # 设置文件处理器的日志级别
|
39
31
|
|
@@ -31,10 +31,10 @@ mdbq/pbix/pbix_refresh.py,sha256=JUjKW3bNEyoMVfVfo77UhguvS5AWkixvVhDbw4_MHco,239
|
|
31
31
|
mdbq/pbix/refresh_all.py,sha256=OBT9EewSZ0aRS9vL_FflVn74d4l2G00wzHiikCC4TC0,5926
|
32
32
|
mdbq/pbix/refresh_all_old.py,sha256=_pq3WSQ728GPtEG5pfsZI2uTJhU8D6ra-htIk1JXYzw,7192
|
33
33
|
mdbq/redis/__init__.py,sha256=YtgBlVSMDphtpwYX248wGge1x-Ex_mMufz4-8W0XRmA,12
|
34
|
-
mdbq/redis/getredis.py,sha256=
|
34
|
+
mdbq/redis/getredis.py,sha256=vEEoAfev4RxVso1cc_776bUoaiApsgfeKTHztm0bF5s,25417
|
35
35
|
mdbq/spider/__init__.py,sha256=RBMFXGy_jd1HXZhngB2T2XTvJqki8P_Fr-pBcwijnew,18
|
36
36
|
mdbq/spider/aikucun.py,sha256=HK6x0MnpUN1jUSWnLQ_UEH2QSYcLFBGhhUBD3FVwrzY,21840
|
37
|
-
mdbq-3.7.
|
38
|
-
mdbq-3.7.
|
39
|
-
mdbq-3.7.
|
40
|
-
mdbq-3.7.
|
37
|
+
mdbq-3.7.15.dist-info/METADATA,sha256=9wgxH4T1ZRrLdj4JqhvAuGLnK3vJ6VWZ8tSd2GCTW3g,244
|
38
|
+
mdbq-3.7.15.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
|
39
|
+
mdbq-3.7.15.dist-info/top_level.txt,sha256=2FQ-uLnCSB-OwFiWntzmwosW3X2Xqsg0ewh1axsaylA,5
|
40
|
+
mdbq-3.7.15.dist-info/RECORD,,
|
File without changes
|
File without changes
|