ezKit 1.12.52__py3-none-any.whl → 1.12.53__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.
ezKit/utils.py CHANGED
@@ -1368,3 +1368,16 @@ def convert_field_to_datetime(data: list[dict], field: str, fmt: str = "%Y-%m-%d
1368
1368
  except ValueError:
1369
1369
  pass
1370
1370
  return _data
1371
+
1372
+
1373
+ # --------------------------------------------------------------------------------------------------
1374
+
1375
+
1376
+ def debug_logger(message: str, *args, **kwargs):
1377
+
1378
+ try:
1379
+ # 从环境变量或配置文件中读取 DEBUG
1380
+ if os.getenv("DEBUG", "false").lower() in ("1", "true", "yes"):
1381
+ logger.debug(message, *args, **kwargs)
1382
+ except Exception as e:
1383
+ logger.exception(e)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ezKit
3
- Version: 1.12.52
3
+ Version: 1.12.53
4
4
  Summary: Easy Kit
5
5
  Author: septvean
6
6
  Author-email: septvean@gmail.com
@@ -15,11 +15,11 @@ ezKit/qywx.py,sha256=3SMm63xJw7Yrj67rvvHIH0ot5PbRHtohShqXLcH0BF0,10325
15
15
  ezKit/redis.py,sha256=leAre527XDBmA_FsjlqQ2_JT1eqwM9uvpYid1Ir1Va4,1972
16
16
  ezKit/sendemail.py,sha256=xqlFyRp96zggSN3eF3fCBXi0WMwGbOZxwDWkpQMCn9I,7412
17
17
  ezKit/token.py,sha256=Ac-i9xfq4TqpGyfCzakjrh4NYzxHiN2sCQrMk1tzVi8,1716
18
- ezKit/utils.py,sha256=U457ahFkxIXuB-qWvS3995xJs-LlkFIX5_ZWVgmL5cY,43130
18
+ ezKit/utils.py,sha256=8dcMDoUvShKzkRlOrnL2xCh5HMdHF0ifWip1tTApai0,43528
19
19
  ezKit/xftp.py,sha256=-XQXyhMqeigT63P6sXkSS7r4GROXyqqlkzKxITLWG-g,8278
20
20
  ezKit/zabbix.py,sha256=PkMnfu7mcuotwwIIsHaC9FsNg-gap6hD1xvm0AwSL1Y,33777
21
- ezkit-1.12.52.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
22
- ezkit-1.12.52.dist-info/METADATA,sha256=wcG4GpGqXpxL-h7Y3lWqQcZ3nfKJrwA5_j349LJkzck,317
23
- ezkit-1.12.52.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
- ezkit-1.12.52.dist-info/top_level.txt,sha256=aYLB_1WODsqNTsTFWcKP-BN0KCTKcV-HZJ4zlHkCFw8,6
25
- ezkit-1.12.52.dist-info/RECORD,,
21
+ ezkit-1.12.53.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
22
+ ezkit-1.12.53.dist-info/METADATA,sha256=Waj_DXj1R_qsIorRvqsqdN8AsVJN9cFoH9aa7adpuqU,317
23
+ ezkit-1.12.53.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
+ ezkit-1.12.53.dist-info/top_level.txt,sha256=aYLB_1WODsqNTsTFWcKP-BN0KCTKcV-HZJ4zlHkCFw8,6
25
+ ezkit-1.12.53.dist-info/RECORD,,