python-openxml/python-docx

Create and modify Word documents with Python

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 54 minutes ago
Added to GitGenius on September 11th, 2026
Created on October 15th, 2013
Open Issues & Pull Requests: 521 (+0)
GitHub issues: Enabled
Number of forks: 1,309
Total Stargazers: 5,716 (+0)
Total Subscribers: 138 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 15.1 days
Mean response time: 504.0 days
90th percentile: 1909.8 days
Tracked items: 459

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "shortlist" is answered fastest, typically in about 10 hours, while "numbering" waits about 2 months. Only 1% of issues opened in the past year have been closed. Three people close 95% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 249
New in 7 days: 3
Closed in 7 days: 0
Avg open age: 2,153 days
Stale 30+ days: 242
Stale 90+ days: 226

Recent activity

Opened in 7 days: 3
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • table (30)
  • image (23)
  • numbering (22)
  • text (19)
  • font (16)
  • shortlist (16)
  • drawing (10)
  • heading (9)

Most active issues this week

Detailed Description

python-docx is a Python library for creating and modifying Word documents programmatically.

The library addresses the need to work with Microsoft Word documents (.docx files) from Python code without requiring Word itself to be installed. It operates by reading and writing the underlying XML structure of the Office Open XML format that Word uses, allowing developers to construct documents by adding paragraphs, tables, runs, and other document elements through a Python API rather than through manual file manipulation or external dependencies.

Developers should choose this tool when they need to generate Word documents as part of an automated workflow, such as report generation, mail merge operations, or document templating. It works well for projects that produce structured documents with text, tables, and basic formatting. The library is most suitable for scenarios where the output format must be a standard .docx file that can be opened in Microsoft Word or compatible applications, and where the complexity of the document structure remains manageable through programmatic construction.

The project maintains a steady stream of issue responses and pull request activity, with maintainers engaging regularly on reported problems and contributed code. Development follows a measured pace with periodic releases that address bug fixes and incremental feature additions. The codebase receives ongoing attention to compatibility concerns and edge cases discovered through real-world usage, though the rate of new major features remains conservative. The project demonstrates sustained commitment to supporting its user base through documentation updates and maintenance of the core functionality.