Pythie
CategoriesTrending
An open index of Python tools.Pythie’s IndexLegal noticePrivacyData: PyPI (package metadata; download statistics under CC BY 4.0, via ClickHouse), deps.dev (CC BY 4.0), GitHub, OSV.

python-docx

1.2.0MaintainedPythie’s Index: 15

Create, read, and update Microsoft Word .docx files.

Low maintenance activity. Last release 17 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.

File Formats & Parsing
$pip install python-docx
python-openxml/python-docxDocsPyPI

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

Popularity

Downloads / month
145.2M
GitHub stars
5.8K
Downloads, last 7 days
32.8M-3%
Stars, last 7 days
–
Direct dependents
2.4K
All dependents
3.5K

Pythie’s Index

How it works
15

Low activity

Maintenance, out of 100

  • Recent release

    last release 530 days ago

  • Commit activity

    0/26 weeks with commits

  • Release cadence

    0 releases in 12 months

  • Issues & PRs handled

    20% closed in the past year

  • Contributor spread

    2 authors in last 100 commits

  • OpenSSF Scorecard

    2.6/10

Commits, last 26 weeks0

Releases

Latest
1.2.0
Released
Jun 16, 2025
Releases, 12 months
0
First release
Jan 5, 2014

Compatibility

Requires Python
>=3.9
Tested on
3.7 · 3.8 · 3.9 · 3.10 · 3.11
License
MIT (Permissive)

Keywords

docxofficeopenxmlword

Alternatives

Use instead of python-docx: tools that do the same job, closest first.

Compare with python-docx-ml6 →Compare with docx →Compare with aspose-words →Compare all 4 →

  • python-docx-ml61.0.2StalePythie’s Index: 19

    Create, read, and update Microsoft Word .docx files. This is a fork from the original library that includes feature requests that have been provided by the open source community but have not yet been merged in the original package.

    File Formats & Parsing0149.2K/moReleased Nov 9, 2023
  • docx0.2.4ArchivedPythie’s Index: 4

    The docx module creates, reads and writes Microsoft Office Word 2007 docx files

    File Formats & ParsingUtilities & Language Tools1.1K464.3K/moReleased Feb 6, 2014
  • aspose-words26.11.0ActivePythie’s Index: 88

    Aspose.Words for Python is a Document Processing library that allows developers to work with documents in many popular formats without needing Office Automation.

    File Formats & ParsingImages & Computer Vision135791.9K/moReleased Nov 17, 2026
  • spire-doc14.9.1ActivePythie’s Index: 84

    A 100% standalone Word Python API for Processing Word Files

    File Formats & ParsingDocs & Templating–155.2K/moReleased Sep 29, 2026
  • superdoc-sdk2.33.0ActivePythie’s Index: 84

    Python SDK for SuperDoc, to read and edit .docx files from Python.

    File Formats & ParsingDocs & Templating–168.8K/moReleased Nov 27, 2026

Works well with

Use together with python-docx: extensions, drivers, servers and companion tools.

  • docxtplPythie’s Index: 32Python docx template engine5M downloads/mo
  • htmldocxPythie’s Index: 15Convert html to docx755.8K downloads/mo
  • html-for-docxPythie’s Index: 73Convert HTML to DOCX easily and quickly1.3M downloads/mo
  • pdf2docxPythie’s Index: 64Open source Python library converting pdf to docx.1.7M downloads/mo
  • mathml2ommlPythie’s Index: 10246.6K downloads/mo
  • docx-revisionsPythie’s Index: 46Track changes (revisions) support for python-docx: read, write and manipulate <w:ins> and <w:del> elements380.3K downloads/mo