Skip to main content

简体中文 | 英文版

ChatWord

ChatWord 为 ChatArch 提供 Word/PDF 文档检查、纯文本抽取与自动化接口。

完整文档 · 快速开始 · CLI 树 · 能力地图

快速开始

pip install -e ".[dev,word,pdf]"
chatword --tree
chatword --tree-brief
chatword inspect ./example.docx
chatword extract ./example.pdf -o ./example.txt
python -m pytest -q
python -m build

Word/PDF 依赖

基础安装只包含 CLI 运行时;文档解析依赖按任务拆成 optional extras:

pip install "ChatWord[word]"   # python-docx, mammoth
pip install "ChatWord[pdf]"    # pypdf, pdfplumber
pip install "ChatWord[ocr]"    # pdf2image, pytesseract;还需要系统 OCR 工具
pip install "ChatWord[all]"    # 常见 Word/PDF/OCR 栈

任务导向 CLI

  • chatword inspect FILE [--json]:识别文档类型、大小、解析器可用性和轻量元数据。
  • chatword extract FILE [-o OUTPUT] [--force]:从 .docx.pdf 抽取纯文本;默认拒绝覆盖已有输出,且始终拒绝覆盖输入文档。
  • 完整命令面见 CLI 树,设计与 Python API 映射见 CLI 设计

CLI 规范

这个包依赖 chatstyle>=0.2.0,<0.3.0。当前没有 env/profile/config 行为,因此不声明 ChatEnv provider 或运行时依赖。CLI 使用:

  • CommandSchema / CommandField 描述输入。
  • add_interactive_option() 提供统一 -i/-I
  • resolve_command_inputs() 统一缺参补问、默认值、TTY 与校验。
  • add_tree_option() 从真实 Click 注册表提供 --tree--tree-brief

目录结构

  • src/:包源码
  • tests/:CLI、parser、错误契约和输出安全测试
  • docs/:按 .en.md 镜像维护的中英文 MkDocs 文档

开发说明

扩展脚手架前,先阅读 DEVELOP.mdAGENTS.md

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chatword-0.1.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chatword-0.1.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file chatword-0.1.2.tar.gz.

File metadata

  • Download URL: chatword-0.1.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for chatword-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9b5536b253a041cc54a8d09b8c74c9b3078f82cc2dc7802b46274b4bfc3440ea
MD5 700d9bc2a84ec4605f7a79f63bb02555
BLAKE2b-256 0e279b083acc3e84d85458224d03318684e75bfb6ceb3720e2887b995f229887

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatword-0.1.2.tar.gz:

Publisher: publish.yml on ChatArch/ChatWord

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chatword-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: chatword-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for chatword-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 38aa362e74345dadf326056d7c1268512372b95c0f76149b90680805798d1cf4
MD5 13edd5b07453cbeb89a457738d1ebea2
BLAKE2b-256 fbf9fc498ba5c1a856765ec63bba3ed7f54a01f29a18766f1ec82753385302bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatword-0.1.2-py3-none-any.whl:

Publisher: publish.yml on ChatArch/ChatWord

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page