Skip to main content

Python library for programmatically creating Microsoft Word track-changes (insertions & deletions) via direct OOXML processing.

Project description

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

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

reddocx-0.0.4.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

reddocx-0.0.4-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file reddocx-0.0.4.tar.gz.

File metadata

  • Download URL: reddocx-0.0.4.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for reddocx-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d68f41221e04da7a135b946f03aa4afcc87eb518b4527e28d9fdeeca8003a685
MD5 030677e504252105d4d1d5a282e71592
BLAKE2b-256 f6c2864fa86fc9d1e116030425fa064a483d105d2173d62c83f91ecb7183d5ab

See more details on using hashes here.

File details

Details for the file reddocx-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: reddocx-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for reddocx-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 039e17efd3e15e24142a7b98c7a24fa2c2c0b8e869921a36c3a5da83c1d64023
MD5 dcc847467fc2f10b22fe6c2a54f57188
BLAKE2b-256 575549d750898665cfd77f7cf43d24bcddc1d28bb16ec8afa72e215f57fa8775

See more details on using hashes here.

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