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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc1dd7d17205449b5dd6b1fa466d1b3b851d700024d9c9bef45bcaa80168c08d
|
|
| MD5 |
b4fbf55ac727acd9b0a0001375ca6625
|
|
| BLAKE2b-256 |
f90759d207e590e53085c2d67d78c3bf0f36ac565efa966cbf826acac5d2e296
|
Provenance
The following attestation bundles were made for python_redlines-0.2.1.tar.gz:
Publisher:
python-publish.yml on JSv4/Python-Redlines
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_redlines-0.2.1.tar.gz -
Subject digest:
bc1dd7d17205449b5dd6b1fa466d1b3b851d700024d9c9bef45bcaa80168c08d - Sigstore transparency entry: 1611219066
- Sigstore integration time:
-
Permalink:
JSv4/Python-Redlines@ccdf3683ebaf14ea47dc2f82e976eed68309563b -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/JSv4
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@ccdf3683ebaf14ea47dc2f82e976eed68309563b -
Trigger Event:
release
-
Statement type:
File details
Details for the file python_redlines-0.2.1-py3-none-any.whl.
File metadata
- Download URL: python_redlines-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0df91342e3e7e23b858b8770c1c1e465fc27d62a98729c9b1d094b097b92b7eb
|
|
| MD5 |
3845cda4e6dbdc99fdfbed7ce74582ec
|
|
| BLAKE2b-256 |
29242184fb50824d95dd95df273304e92dba7c2858fc869b68ce6cb7e9228279
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_redlines-0.2.1-py3-none-any.whl -
Subject digest:
0df91342e3e7e23b858b8770c1c1e465fc27d62a98729c9b1d094b097b92b7eb - Sigstore transparency entry: 1611219353
- Sigstore integration time:
-
Permalink:
JSv4/Python-Redlines@ccdf3683ebaf14ea47dc2f82e976eed68309563b -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/JSv4
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@ccdf3683ebaf14ea47dc2f82e976eed68309563b -
Trigger Event:
release
-
Statement type: