GroupDocs.Comparison for Python via .NET

groupdocs comparison python logo PyPI package PyPI downloads

Release notes Download from PyPI Online app

GroupDocs.Comparison for Python via .NET is a Python version of the GroupDocs.Comparison API. It detects differences between source and target files at paragraph, word, and character levels — including style and formatting changes. The API supports 50+ document types including Microsoft Office, OpenOffice, AutoCAD, Visio, images, source code, PDFs, and more.

Quick example

from groupdocs.comparison import Comparer

# Compare two DOCX revisions and write a tracked-changes result
with Comparer("source.docx") as comparer:
    comparer.add("target.docx")
    comparer.compare("result.docx")

Key features

  • Wide format support: 50+ document types including DOCX, PDF, XLSX, PPTX, ODT, HTML, images, CAD, and source code.
  • Granular change detection: paragraph, word, and character-level diffs, including style and formatting changes.
  • Accept / reject workflows: review individual detected changes and re-emit the document honouring per-change decisions.
  • Multi-source comparison: diff one source against multiple targets in a single pass, or compare entire folders.

Supported document formats

GroupDocs.Comparison supports a wide range of file formats. For a complete list, see the full list of supported formats.

  • Microsoft Office (Word, Excel, PowerPoint, Visio)
  • PDF (Standard PDFs)
  • OpenDocument (ODT, ODS, ODP)
  • Images (JPEG, PNG, BMP, TIFF)
  • Text/Markdown (TXT, MD)
  • HTML/Web (HTML, MHTML)
  • AutoCAD (DWG, DXF)
  • Source code (CS, JAVA, JS, PY, and more)

Close
Loading

Analyzing your prompt, please hold on...

An error occurred while retrieving the results. Please refresh the page and try again.