技能潮 SkillTide 提交收录
官方说明开源项目3 天前
uvrt/docx-agent

uvrt/docx-agent

An AI-editable Word layer: inspect, edit (optionally as tracked changes) and re-render .docx documents…
在 GitHub 查看 ↗直链 · 无中转页
官方说明An AI-editable Word layer: inspect, edit (optionally as tracked changes) and re-render .docx documents losslessly, through a Python API, Markdown with ids or agent tool calls
★ 数取值
0 ★ · uvrt/docx-agent · 取自 GitHub 搜索 API · (2026-10-16 20:00:20 核对)
来源明细
从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
收录与活跃
收录于 2026-10-14 · 最近见到 2026-10-16 · 共见到 3 次 · 被 1 个来源列出
评分构成
综合分 103 · 1 个来源 · repo
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 uvrt/docx-agent;我们收录于 2026-10-14;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

docx-agent

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

An AI-editable Word (.docx) layer for Python: inspect a document, change it through a
semantic API (optionally as tracked changes), read and write it through Markdown that
carries stable ids, render the pages back, repeat. The counterpart of
pptx-agent for Word.
It builds on ooxml-edit (the lxml-based OPC
package, ordered insertion and undo, and its charts subpackage) and renders and lays out
through docx2svg.
To give a model the document as tool calls (Claude, or OpenAI's Responses and Chat
Completions APIs): using the tools with a model provider.
Install
Not on PyPI yet. Python 3.10+. The siblings install from git:
Fonts
Rendering and reflow feedback lay the document out with docx2svg, which measures every
glyph with the face Word uses. Install the document's faces where the layout runs:
- **Office installed:** nothing to do.
- **No Office:** install the open metric compatible substitutes (Debian/Ubuntu: sudo
apt-get install fonts-crosextra-carlito fonts-crosextra-caladea fonts-liberation;
macOS: brew install --cask font-carlito font-caladea font-liberation). With Carlito in place
of Calibri, and Liberation Sans, Serif and Mono in place of Arial, Times New Roman and
Courier New, lines and pages break where they do in Word. Symbol and Wingdings bullets are laid out from
metrics recorded from Word's copies.
- **Without a face and its substitute** (Aptos, Cambria, Calibri Light...), the layout
stops at the first paragraph in that face, and everything after it is unknown, never
guessed.
docx2svg reports every substitution, and never uses a substitute when the real face is
installed. Details and the fidelity to expect:
docx2svg's README.
check (with reflow), render and save_document return the layout's **coverage**,
so a check that passed is told apart from one that could not see everything. It holds:
- complete
- the pages laid out, with Word's saved page count when the layout stopped
- the blocks laid out, out of the total
- where the layout stopped, by block id
- header and footer stops
- the faces substituted or missing
In the library, doc.layout().coverage_facts() returns the same.
The user's regional settings -- the separator a decimal tab stop aligns on, a chart's
decimal and thousands separators, the language of new chart text in a document that states
none, a new document's language and number separators -- are Document.locale (or
Toolbox(locale=...)), an ooxml_common.locales.Locale; en-US unless given, never the
server's own.
Example
python
doc = Document.open("report.docx")
for address, record in doc.provenance().items():
print(address, record["source"], record.get("document")) # t:60D6847F d:checks budget.xlsx
More recipes -- find and replace, tracked changes, comments, revisions, Markdown in the
template's own styles, tables, pictures, charts, sections, rendering, templates,
validation -- each run as written by the tests: docs/common-tasks.md.
What is supported
- **Library:** phases E0 to E6 of ROADMAP.md, and charts and SmartArt: text
ranges and anchors, find and replace across runs, styles and direct formatting, lists,
来源
github · https://github.com/uvrt/docx-agent
按领域浏览
开源项目
收录于
昨天

更多开源项目

查看开源项目全部 731 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引