Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,115 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-docx-nnayda

CI Docs PyPI Python versions License: MIT

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-nnayda but 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 of python-docx or python-docx-nnayda into an environment, not both.

Installation

pip install python-docx-nnayda

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.'

Documentation

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/.

Contributing

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.

License

MIT — see LICENSE. This fork preserves the upstream license and authorship.

About

Create and modify Word documents with Python

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages