haujetzhao--capswriter-offline
30 行
777 B
Python
30 行
777 B
Python
# coding: utf-8
|
|
"""
|
|
工具模块
|
|
|
|
提供各种通用工具函数和类。
|
|
|
|
模块架构:
|
|
- asyncio_to_thread: asyncio.to_thread 的兼容实现
|
|
- chinese_itn: 中文数字转阿拉伯数字
|
|
- empty_working_set: Windows 内存管理
|
|
- format_tools: 文本格式化(中英文空格调整)
|
|
- my_status: Rich Status 扩展
|
|
- hot_sub_*: 热词替换工具
|
|
- srt_from_txt: SRT 字幕生成
|
|
- window_detector: 窗口检测
|
|
"""
|
|
|
|
from core.tools.asyncio_to_thread import to_thread
|
|
from core.tools.empty_working_set import empty_working_set, empty_current_working_set
|
|
from core.tools.format_tools import adjust_space
|
|
from core.tools.my_status import Status
|
|
|
|
__all__ = [
|
|
'to_thread',
|
|
'empty_working_set',
|
|
'empty_current_working_set',
|
|
'adjust_space',
|
|
'Status',
|
|
]
|