Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

python-docx

Python library for creating, reading and updating Microsoft Word .docx files.

Files, images and media PyPI MIT

Used in agent projects
58
0.5% of 12,697 public repos built with AI coding agents
Rank in files, images and media
#14 of 52
by use in those projects
Downloads
25M
PyPI, last 7 days, python-docx
GitHub stars
5,739
last push Aug 1, 2026

How python-docx is used

python-docx is a dependency in 58 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.5%), #14 of 52 in files, images and media. The most used alternative there is Sharp. Projects that use it most often also use python-dotenv (69.0%), Pydantic (55.2%), FastAPI (53.4%).

Often used with python-docx

python-dotenv69.0% of python-docx projects · 10.6× more than average
Pydantic55.2% of python-docx projects · 10.8× more than average
FastAPI53.4% of python-docx projects · 12.6× more than average
Uvicorn53.4% of python-docx projects · 12.5× more than average
openpyxl50.0% of python-docx projects · 72.1× more than average
NumPy46.6% of python-docx projects · 12.1× more than average
Pillow44.8% of python-docx projects · 19.5× more than average
Requests44.8% of python-docx projects · 8.4× more than average

By coding agent

Claude Code1.0% of projects set up for it
GitHub Copilot0.8% of projects set up for it
Cursor0.9% of projects set up for it
Gemini CLI1.1% of projects set up for it

Share of public repos configured for each agent that list python-docx as a dependency.

Install

Packagepip install python-docx
Main stacksPython (55), Next.js (3)
Example projectsdramaclaw/dramaclaw, owid/etl, sweetcornna/free-search-mcp, MDalamin5/End-to-End-Agentic-Ai-Automation-Lab, theWDY/office-editor-mcp

Alternatives to python-docx

All files, images and media

Tool Used in agent projectsDownloads / wk GitHub starsLicense
Sharp npm
High-speed image processing for resizing, converting JPEG, PNG, WebP, GIF formats.
390 (3.1%) 115M 32.7K Apache-2.0
Pillow pypi
Python imaging library for image processing, manipulation and conversion.
292 (2.3%) 138M 13.9K —
Nodemailer npm
Send emails from Node.js applications with support for multiple transport methods.
232 (1.8%) 25.2M 17.7K MIT-0
jsPDF npm
Generate PDF documents directly from JavaScript in browsers and Node.js.
184 (1.4%) 15.6M 31.3K MIT
qrcode (JavaScript) npm
Generate QR codes on server and client using canvas with Node.js and browser support.
163 (1.3%) 29.7M 8,178 MIT
SheetJS npm
Parse and generate spreadsheets (Excel, CSV) in Node.js and browsers.
146 (1.1%) 12.7M 36.3K Apache-2.0
html2canvas npm
JavaScript library for taking screenshots of web pages and rendering HTML to canvas.
115 (0.9%) 18.5M 31.9K MIT
JSZip npm
JavaScript library for creating, reading and editing ZIP archives in the browser.
96 (0.8%) 47.5M 10.4K (MIT OR GPL-3.0-or-later)
Is python-docx right for your project? Ask AgentGid →