Skip to main content

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

Project description

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(),
)

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.

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

python_redlines-0.2.0.tar.gz (6.7 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-0.2.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_redlines-0.2.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for python_redlines-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b22b303b8c053e3c14e502623c571f33ed4cc1b018a0d07179912ed87162e844
MD5 34e71825431fe21e3818b2e48cb5ff3e
BLAKE2b-256 2401e799ee2c83dd3bdda4ecd62d9f20efde42346cdd20391b6ea391b72b3405

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_redlines-0.2.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-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_redlines-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 967c3316e294c192bf1d8e521e06559bfbf68c77eb9c646ca984d627264a4981
MD5 ff5d908f4187cd50e9fcb6cdc2fcd04b
BLAKE2b-256 f6c3daf70fe51bb35ba917327b91f47ca8cf98dba631c7bd76518989eb00eafb

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_redlines-0.2.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.

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