Skip to main content

Create, read, and update Microsoft Word .docx files (maintained fork of python-docx).

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_docx_nnayda-1.2.1.tar.gz (5.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_docx_nnayda-1.2.1-py3-none-any.whl (269.1 kB view details)

Uploaded Python 3

File details

Details for the file python_docx_nnayda-1.2.1.tar.gz.

File metadata

  • Download URL: python_docx_nnayda-1.2.1.tar.gz
  • Upload date:
  • Size: 5.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for python_docx_nnayda-1.2.1.tar.gz
Algorithm Hash digest
SHA256 dd1ade5662009e1a6e66f2c16b60844c5c138c594cf01d9eaf77e6cff2379a0b
MD5 f7b039e3e089cd797e648df58985ca03
BLAKE2b-256 807989ca45867f589292141f072d526e7f3ceda31eacca02cffae9ee8ec13a56

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_docx_nnayda-1.2.1.tar.gz:

Publisher: release.yml on nnayda/python-docx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file python_docx_nnayda-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for python_docx_nnayda-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5aee9a6e2df16c86c7c96a4eda7509fe7b91696519b12f07c51a143cf3521307
MD5 4dba3fd97c6c872ad85fa03716c26022
BLAKE2b-256 e388fbc68cfe117dbb112783c9412deb5efa519d20fed3d3336f918c1bd29ba5

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_docx_nnayda-1.2.1-py3-none-any.whl:

Publisher: release.yml on nnayda/python-docx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page