staran 1.0.5__py3-none-any.whl → 1.0.7__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.
staran/__init__.py CHANGED
@@ -27,7 +27,7 @@ Staran - 企业级多功能工具库
27
27
  2025年04月15日
28
28
  """
29
29
 
30
- __version__ = "1.0.5"
30
+ __version__ = "1.0.7"
31
31
  __author__ = "Staran Team"
32
32
  __email__ = "team@staran.dev"
33
33
  __license__ = "MIT"
staran/date/__init__.py CHANGED
@@ -8,12 +8,18 @@ Staran Date 模块
8
8
  提供企业级日期处理功能。
9
9
  """
10
10
 
11
- __version__ = "1.0.2"
11
+ __version__ = "1.0.7"
12
12
  __author__ = "Staran Team"
13
13
  __email__ = "team@staran.dev"
14
14
 
15
15
  # 导入核心类和功能
16
- from .core import Date, DateLogger
16
+ from .core import (
17
+ Date,
18
+ DateLogger,
19
+ DateError,
20
+ InvalidDateFormatError,
21
+ InvalidDateValueError
22
+ )
17
23
 
18
24
  # 导出便捷函数
19
25
  def today() -> Date:
@@ -31,7 +37,10 @@ def from_string(date_string: str) -> Date:
31
37
  # 定义公共API
32
38
  __all__ = [
33
39
  'Date',
34
- 'DateLogger',
40
+ 'DateLogger',
41
+ 'DateError',
42
+ 'InvalidDateFormatError',
43
+ 'InvalidDateValueError',
35
44
  'today',
36
45
  'from_string'
37
46
  ]