reddocx
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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| reddocx-0.0.4.tar.gz | 6.0 kB | Without provenance | Details for reddocx-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reddocx-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for reddocx-0.0.4-py3-none-any.whl |
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
|
Security for reddocx 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.