- 新增 DocReader,支持 markitdown 和 pypandoc-binary 解析器 - 新增 XlsReader,支持 unstructured、markitdown 和 pandas+xlrd 解析器 - 新增 PptReader,支持 markitdown 解析器 - 添加 olefile 依赖用于验证 OLE2 格式 - 更新 config.py 添加 doc/xls/ppt 依赖配置 - 更新 --advice 支持 doc/xls/ppt 格式 - 添加相应的测试用例 - 同步 specs 到主目录
28 lines
468 B
Python
28 lines
468 B
Python
"""Utils module for lyxy-document."""
|
|
|
|
from .file_detection import (
|
|
is_valid_docx,
|
|
is_valid_pptx,
|
|
is_valid_xlsx,
|
|
is_valid_pdf,
|
|
is_valid_doc,
|
|
is_valid_xls,
|
|
is_valid_ppt,
|
|
is_html_file,
|
|
is_url,
|
|
detect_file_type,
|
|
)
|
|
|
|
__all__ = [
|
|
"is_valid_docx",
|
|
"is_valid_pptx",
|
|
"is_valid_xlsx",
|
|
"is_valid_pdf",
|
|
"is_valid_doc",
|
|
"is_valid_xls",
|
|
"is_valid_ppt",
|
|
"is_html_file",
|
|
"is_url",
|
|
"detect_file_type",
|
|
]
|