Skip to main content

python-redlines

Generate tracked-change "redline" .docx documents by comparing two Word files.

python-redlines is the pure-Python core. The comparison engines themselves are compiled .NET binaries shipped in separate, optional companion packages — install the one(s) you need as extras:

pip install python-redlines[docxodus]          # Docxodus engine
pip install python-redlines[ooxmlpowertools]    # Open-XML-PowerTools engine
pip install python-redlines[all]                # both

Binaries are prebuilt for each platform and embedded in the companion package's wheel — no .NET SDK and no local compilation are needed to install or use it.

Usage

from python_redlines import DocxodusEngine

engine = DocxodusEngine()
redline_bytes, stdout, stderr = engine.run_redline(
    "Author Name",
    original=open("original.docx", "rb").read(),
    modified=open("modified.docx", "rb").read(),
)

DocxodusEngine accepts engine="wmlcomparer" (default) or engine="docxdiff" to select the comparison algorithm. See the project README.

If an engine's companion package is not installed, instantiating the engine raises EngineNotInstalledError with the pip install command to fix it.

See the project repository for 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_redlines-1.0.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

python_redlines-1.0.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file python_redlines-1.0.0.tar.gz.

File metadata

  • Download URL: python_redlines-1.0.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for python_redlines-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0e5dc47c63bf38d744704e4afd318ca14e437438382d681e7a55af52b403bd44
MD5 2b9a558cf17cab958d2e8daeaf2400d1
BLAKE2b-256 c6756cea0f80329afabf9a3b168137f5e21a78c3ca35e88c5e740b2f02edd6ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_redlines-1.0.0.tar.gz:

Publisher: python-publish.yml on JSv4/Python-Redlines

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_redlines-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_redlines-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dee02d3bf686840e3baf472a98771b1b2cc76a7099a80b12d7cbc8132fb20a2d
MD5 99063cc76ebb990d53a13178971065b0
BLAKE2b-256 77b75c32488f0d65a7566b8e22446196ad3d8958173c8ad29fcdd1138e531eff

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_redlines-1.0.0-py3-none-any.whl:

Publisher: python-publish.yml on JSv4/Python-Redlines

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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 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