python-docx-nnayda is a maintained fork of python-docx — a Python library for reading, creating, and updating Microsoft Word 2007+ (.docx) files.
Fork note: this package installs as
python-docx-nnaydabut the import name is unchanged (import docx), so it remains a drop-in replacement. It adds fork-specific features (footnotes, hyperlink creation, table styling) on top of upstream. Install only one ofpython-docxorpython-docx-nnaydainto an environment, not both.
pip install python-docx-nnayda
>>> 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.'Documentation for this fork is published at https://nnayda.github.io/python-docx/. The upstream documentation also remains a useful reference at https://python-docx.readthedocs.org/en/latest/.
See CONTRIBUTING.md and AGENTS.md for setup,
conventions, and the development workflow. This fork uses
Conventional Commits for PR titles and
squash-merges to main.
MIT — see LICENSE. This fork preserves the upstream license and authorship.