755
/ 1000
快速安装
pip install python-docx
1. 治理
50/200
2. PEP 元数据
200/200
3. 安全性
150/200
4. 文档与 SEO
155/200
5. CI 工程
200/200
📣 分享审计报告:
以当前语言分享此报告和可视化卡片
PyPI 遥测数据
下载量与社区采用率
最近 30 天(不含镜像)
最近 7 天
33462277
最近 30 天
145219427
总计(180天)
669448669
健康与工程分析(5大支柱)
1. 治理与社区50 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✕ 0 pts
CONTRIBUTING.md✕ 0 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. PEP 元数据与打包200 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✓ 50 pts
3. 安全与供应链150 / 200 ▾
零 CVE 漏洞 (OSV)✓ 60 pts
Trusted Publishing (OIDC)✕ 0 pts
Snyk / Audit Link✓ 40 pts
HTTPS 代码仓库✓ 50 pts
4. 文档、SEO 与生态系统155 / 200 ▾
结构化 README✓ 60 pts
Read the Docs✓ 50 pts
Django Packages✕ 0 pts
网站 / 技术文章✓ 45 pts
5. 工程、CI 与代码质量200 / 200 ▾
自动化测试✓ 65 pts
GitHub Actions CI✓ 65 pts
CHANGELOG.md✓ 35 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✓ 35 pts
README & DOCS
PyPI Metadata v1.2.0
官方文档与使用指南 — python-docx
显示完整原始文档(英文 README) ▾
python-docx
python-docx is a Python library for reading, creating, and updating Microsoft Word 2007+ (.docx) files.
Installation
pip install python-docx
Example
>>> from docx import Document
>>> document = Document()
>>> document.add_paragraph("It was a dark and stormy night.")
<docx.text.paragraph.Paragraph object at 0x10f19e760>
>>> document.save("dark-and-stormy.docx")
>>> document = Document("dark-and-stormy.docx")
>>> document.paragraphs[0].text
'It was a dark and stormy night.'
More information is available in the python-docx documentation