Skip to main content

reddocx

PyPI version Python versions License Status

Lightweight track-changes engine for Microsoft Word (.docx) files using direct XML manipulation.

reddocx provides a minimal and fast way to programmatically add tracked revisions (insertions and deletions) to Word documents without requiring Microsoft Word or heavy document processing libraries.

Installation

  • Default Installation
pip install reddocx
  • UV installation
uv pip install reddocx

Usage

from reddocx.core.document import DocxDocument
doc = DocxDocument('sample.docx')
updated_report = doc.track_replace_words({'original_word':'replaced_word'})
updated_doc = doc.save()

Demo

Before → Original document

After → Track changes applied by reddocx

Features

  • Word-style tracked changes (insert / delete revisions)
  • Paragraph-level word replacement tracking
  • Pure XML processing using lxml
  • No Microsoft Word dependency
  • Lightweight and fast
  • Supports file path, bytes, or memory streams

Release files for reddocx 0.0.4

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

Source distribution (sdist)

Source distribution for reddocx 0.0.4
File Size Uploaded
reddocx-0.0.4.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for reddocx 0.0.4
File Interpreter ABI Platform
reddocx-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / reddocx-0.0.4.tar.gz

Download URL reddocx-0.0.4.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d68f41221e04da7a135b946f03aa4afcc87eb518b4527e28d9fdeeca8003a685
BLAKE2b-256 checksum
How to use checksums
f6c2864fa86fc9d1e116030425fa064a483d105d2173d62c83f91ecb7183d5ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / reddocx-0.0.4-py3-none-any.whl

Download URL reddocx-0.0.4-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
039e17efd3e15e24142a7b98c7a24fa2c2c0b8e869921a36c3a5da83c1d64023
BLAKE2b-256 checksum
How to use checksums
575549d750898665cfd77f7cf43d24bcddc1d28bb16ec8afa72e215f57fa8775
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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