{
 "kind": "tool",
 "slug": "python-docx",
 "path": "tools/python-docx/",
 "name": "python-docx",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Files, images and media",
   "tools/files-media/"
  ]
 ],
 "lead": "Python library for creating, reading and updating Microsoft Word .docx files.",
 "chips": [
  {
   "label": "Files, images and media",
   "path": "tools/files-media/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install python-docx"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/python-openxml/python-docx"
  },
  {
   "label": "Website",
   "href": "https://github.com/python-openxml/python-docx"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI classifier.",
   "src": "https://github.com/python-openxml/python-docx"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Aug 1, 2026",
   "note": "",
   "src": "https://github.com/python-openxml/python-docx"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "62 projects",
   "status": "info",
   "sub": "#14 of 281 in its category",
   "note": "Dependency in 62 public GitHub projects set up for AI coding agents that we scanned (1.0%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What python-docx does",
   "parts": [
    {
     "t": "prose",
     "text": "Python library for creating, reading and updating Microsoft Word .docx files."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "python-docx popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "73",
       "of": "/ 100",
       "l": "Gid Score, #283 overall"
      },
      {
       "n": "34.1M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "5,778",
       "l": "GitHub stars"
      },
      {
       "n": "62",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How python-docx is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "python-docx is a dependency in 62 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (3.8% of the 1,623 Python ones), #14 of 281 in files, images and media.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 633; those are left out of every share on this page.",
      "The most used alternative in our scan is openpyxl (86 projects).",
      "Projects that use it most often also use python-dotenv (67.7%), openpyxl (51.6%), Pydantic (48.4%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "40 projects, 1.2%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "24 projects, 0.8%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "24 projects, 1.0%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "7 projects, 2.1%",
       "v": "OpenClaw",
       "path": "agents/openclaw/"
      },
      {
       "l": "5 projects, 1.1%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 67.7% of its projects",
       "v": "python-dotenv",
       "path": "tools/python-dotenv/"
      },
      {
       "l": "In 51.6% of its projects",
       "v": "openpyxl",
       "path": "tools/openpyxl/"
      },
      {
       "l": "In 48.4% of its projects",
       "v": "Pydantic",
       "path": "tools/pydantic/"
      },
      {
       "l": "In 46.8% of its projects",
       "v": "FastAPI",
       "path": "tools/fastapi/"
      },
      {
       "l": "In 46.8% of its projects",
       "v": "Pillow",
       "path": "tools/pillow/"
      },
      {
       "l": "In 46.8% of its projects",
       "v": "Uvicorn",
       "path": "tools/uvicorn/"
      },
      {
       "l": "In 46.8% of its projects",
       "v": "PyYAML",
       "path": "tools/pyyaml/"
      },
      {
       "l": "In 45.2% of its projects",
       "v": "Model Context Protocol SDK (Python)",
       "path": "tools/mcp/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about python-docx",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Files, images and media",
       "path": "tools/files-media/",
       "items": [
        {
         "text": "Sharp",
         "path": "tools/sharp/"
        },
        {
         "text": "Pillow",
         "path": "tools/pillow/"
        },
        {
         "text": "Nodemailer",
         "path": "tools/nodemailer/"
        },
        {
         "text": "jsPDF",
         "path": "tools/jspdf/"
        },
        {
         "text": "SheetJS",
         "path": "tools/xlsx/"
        },
        {
         "text": "qrcode (JavaScript)",
         "path": "tools/qrcode-npm/"
        },
        {
         "text": "JSZip",
         "path": "tools/jszip/"
        },
        {
         "text": "PDF.js",
         "path": "tools/pdfjs-dist/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "python-docx",
       "me": true,
       "facts": [
        "MIT",
        "Gid 73",
        "34.1M/wk"
       ]
      },
      {
       "name": "openpyxl",
       "why": "Python library for reading and writing Excel 2010 XLSX/XLSM files.",
       "path": "tools/openpyxl/",
       "facts": [
        "MIT",
        "Gid 76",
        "89.4M/wk"
       ]
      },
      {
       "name": "PyPDF",
       "why": "Pure-Python library for reading, merging, splitting and transforming PDF files.",
       "path": "tools/pypdf/",
       "facts": [
        "BSD-3-Clause",
        "Gid 78",
        "52.8M/wk"
       ]
      },
      {
       "name": "python-pptx",
       "why": "Create, read, and modify PowerPoint presentations programmatically in Python.",
       "path": "tools/python-pptx/",
       "facts": [
        "MIT",
        "Gid 68",
        "26.1M/wk"
       ]
      }
     ],
     "more": "Compare python-docx with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install python-docx"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for python-docx yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi python-docx"
  ],
  [
   "Category",
   "Files, images and media"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "72.7"
  ],
  [
   "Rank in category",
   "#14 of 281"
  ],
  [
   "GitHub",
   "python-openxml/python-docx"
  ],
  [
   "Last change",
   "Aug 1, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/python-openxml.png"
}