# mikemaccana/python-docx

Reads, queries and modifies Microsoft Word 2007/2008 docx files.

Repository: https://github.com/mikemaccana/python-docx
Canonical: https://ross.abutalabs.com/products/mikemaccana-python-docx
Language: Python
License: MIT
License Family: permissive
Archived: true
Last push: 2015-09-04T12:17:15+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 6093, "days_push": 4016, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1075, forks 344 (observed 2026-08-28T04:03:29.255657+00:00)

## What it is
A Python library for creating, reading, querying, and modifying Microsoft Word 2007/2008 .docx (Office Open XML) files, supporting paragraphs, tables, images, headings, and XPath-based document queries. This original repository has been archived and moved to the python-openxml/python-docx project, which continues development with Python 3 support.

## Use cases
- generate word documents from python
- extract text from docx files
- search and replace text in word documents
- fill in word document templates programmatically
- add tables and images to docx files
- run xpath queries against docx xml
- modify existing word documents without office automation

## When to choose
- you need to manipulate .docx files in Python without COM automation or Office installed
- you want to extract plain text or query document XML from Word files
- you need to generate Word documents with paragraphs, tables, lists, and images

## When to avoid
- you want an actively maintained library - use python-openxml/python-docx instead
- you need to read legacy .doc binary files rather than .docx
- you need Python 3 support, which this archived version lacks

## Facets
- artifact type: library
- maturity: abandoned
- function: parser, pdf, file-system
- domain: files, developer-tools
- platform: python, cross-platform
- tags: docx, microsoft-word, openxml, document-generation, document-parsing, lxml, archived, moved-to-python-openxml, automation

## Member repositories
- mikemaccana/python-docx (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:29.255657+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:53:27.419740+00:00, confidence not recorded.
  - readme: https://github.com/mikemaccana/python-docx (fetched 2026-08-28T04:03:29.255657+00:00, sha 11824118306a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
