ygo 1.1.1__tar.gz → 1.1.2__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.

Potentially problematic release.


This version of ygo might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ygo
3
- Version: 1.1.1
3
+ Version: 1.1.2
4
4
  Summary: 一个轻量级 Python 工具包,支持 并发执行(带进度条)、延迟调用、链式绑定参数、函数信息获取、模块/函数动态加载。并结合 ylog 提供日志记录能力
5
5
  Project-URL: homepage, https://github.com/link-yundi/ygo
6
6
  Project-URL: repository, https://github.com/link-yundi/ygo
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ygo"
7
- version = "v1.1.1"
7
+ version = "v1.1.2"
8
8
  description = "一个轻量级 Python 工具包,支持 并发执行(带进度条)、延迟调用、链式绑定参数、函数信息获取、模块/函数动态加载。并结合 ylog 提供日志记录能力"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -20,7 +20,7 @@ from .utils import (
20
20
  fn_from_str,
21
21
  )
22
22
 
23
- __version__ = "v1.1.1"
23
+ __version__ = "v1.1.2"
24
24
 
25
25
  __all__ = [
26
26
  "FailTaskError",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ygo
3
- Version: 1.1.1
3
+ Version: 1.1.2
4
4
  Summary: 一个轻量级 Python 工具包,支持 并发执行(带进度条)、延迟调用、链式绑定参数、函数信息获取、模块/函数动态加载。并结合 ylog 提供日志记录能力
5
5
  Project-URL: homepage, https://github.com/link-yundi/ygo
6
6
  Project-URL: repository, https://github.com/link-yundi/ygo
@@ -9,7 +9,7 @@ Created on 2025/5/14 15:37
9
9
 
10
10
  from .core import trace, debug, info, warning, error, critical, update_config, get_logger
11
11
 
12
- __version__ = "v0.0.1"
12
+ __version__ = "v1.1.2"
13
13
 
14
14
  __all__ = [
15
15
  "trace",
@@ -22,8 +22,7 @@ class _Logger:
22
22
  1. 高性能:异步写入日志,避免阻塞主线程
23
23
  2. 易于管理:多级别日志分离存储,按日期和大小轮转
24
24
  3. 分级明确:支持 TRACE/DEBUG/INFO/WARNING/ERROR/CRITICAL 级别
25
- 4. 结构化日志:支持 JSON 格式日志输出
26
- 5. 全局异常捕获:自动记录未处理异常
25
+ 4. 全局异常捕获:自动记录未处理异常
27
26
  """
28
27
 
29
28
  def __new__(cls, *args, **kwargs):
@@ -109,11 +108,11 @@ class _Logger:
109
108
  }
110
109
 
111
110
  # 错误级别以上的日志
112
- error_levels = ("WARNING", "ERROR", "CRITICAL")
113
- _error_log_file = f"{self.app_name}_{{time:YYYY-MM-DD}}.err.log" if self.app_name is not None else f"{{time:YYYY-MM-DD}}.err.log"
111
+ error_levels = ("ERROR", "CRITICAL")
112
+ _error_log_file = f"{self.app_name}_{{time:YYYYMMDD}}.err.log" if self.app_name is not None else f"{{time:YYYYMMDD}}.err.log"
114
113
  error_log_file = self.log_dir / _error_log_file
115
- info_levels = ("INFO", "DEBUG", "TRACE")
116
- _info_log_file = f"{self.app_name}_{{time:YYYY-MM-DD}}.log" if self.app_name is not None else f"{{time:YYYY-MM-DD}}.log"
114
+ info_levels = ("INFO", "DEBUG", "TRACE", "WARNING")
115
+ _info_log_file = f"{self.app_name}_{{time:YYYYMMDD}}.log" if self.app_name is not None else f"{{time:YYYYMMDD}}.log"
117
116
  info_log_file = self.log_dir / _info_log_file
118
117
  # 错误级别以上的日志
119
118
  logger.add(
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