← 返回
效率工具

Doc Handler - 文档处理

读取和编辑 Word、PDF、Excel 文档。使用 python-docx、pdfplumber、openpyxl
读取和编辑 Word、PDF、Excel 文档。使用 python-docx、pdfplumber、openpyxl
xaiohuangningde
效率工具 clawhub v1.0.0 1 版本 99397.4 Key: 无需
★ 0
Stars
📥 3,299
下载
💾 937
安装
1
版本
#doc#excel#latest#pdf#word

概述

doc-handler - 文档处理工具

功能

功能命令
------------
读取 Wordpython3 -m doc_handler read docx 文件
读取 PDFpython3 -m doc_handler read pdf 文件
读取 Excelpython3 -m doc_handler read xlsx 文件
写入 Wordpython3 -m doc_handler write docx 文件 "内容"

使用示例

# 读取 Word 文档
python3 -c "from docx import Document; d = Document('file.docx'); print('\\n'.join([p.text for p in d.paragraphs]))"

# 读取 PDF
python3 -c "import pdfplumber; with pdfplumber.open('file.pdf') as pdf: print(pdf.pages[0].extract_text())"

# 读取 Excel
python3 -c "import pandas; df = pandas.read_excel('file.xlsx'); print(df)"

依赖

  • python-docx
  • pdfplumber
  • openpyxl
  • pandas

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 05:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 274 📥 114,721
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 437 📥 147,170
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 444 📥 226,103