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.1.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.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_redlines-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 bc1dd7d17205449b5dd6b1fa466d1b3b851d700024d9c9bef45bcaa80168c08d
MD5 b4fbf55ac727acd9b0a0001375ca6625
BLAKE2b-256 f90759d207e590e53085c2d67d78c3bf0f36ac565efa966cbf826acac5d2e296

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for python_redlines-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0df91342e3e7e23b858b8770c1c1e465fc27d62a98729c9b1d094b097b92b7eb
MD5 3845cda4e6dbdc99fdfbed7ce74582ec
BLAKE2b-256 29242184fb50824d95dd95df273304e92dba7c2858fc869b68ce6cb7e9228279

See more details on using hashes here.

Provenance

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