Skip to main content

python-docx

python-docx is a Python library for reading, creating, and updating Microsoft Word 2007+ (.docx) files.

This repository exists as a fork of the official repo as I needed features and quality of life improvements.

Key differences at a glance:

  • Supporting multiple numbered lists within a document (1, 2)
  • Supporting TOC updates within the package without the need to open the document manually (1, 2)
  • Supporting floating images within documents (1)
  • Supporting the ability to transform word documents into PDF's (1)
  • Horizontal rules + paragraph bounding boxes / borders (1, 2)
  • External hyperlinks (1)
  • Internal hyperlinks (Linking to bookmarks) (1)
  • Creating bookmarks (1)
  • The ability to insert a customisable Table of Contents (ToC) (1)

Installation

pip install skelmis-docx

Example

>>> from skelmis.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 documentation

Metadata

Release files for skelmis-docx 2.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skelmis-docx 2.6.0
File Size Uploaded
skelmis_docx-2.6.0.tar.gz 207.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for skelmis-docx 2.6.0
File Interpreter ABI Platform
skelmis_docx-2.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 467.8 kB

Release files / skelmis_docx-2.6.0.tar.gz

Download URL skelmis_docx-2.6.0.tar.gz
Size 207.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0f160d36b7d66834152219d7584b79bd2c9eddb4b88edc45d0cca9603254b692
BLAKE2b-256 checksum
How to use checksums
99ec0db2a5187ee191877f1accc2136e5e481308acf0bea6b8446b61f9ab10e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / skelmis_docx-2.6.0-py3-none-any.whl

Download URL skelmis_docx-2.6.0-py3-none-any.whl
Size 260.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ad458607b1cec09c6ef2ef0491ad3a9ef4d073169cfbe977b94ccbe18121a10
BLAKE2b-256 checksum
How to use checksums
6e271ed736d2a08b5e52c4339c965d74c924a4f8f6da9a70b5f5dfeb4fc0f0c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

2.6.0 This release

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.2

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.6.2

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page