GroupDocs.Comparison for Python via .NET

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Comparison MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-comparison -- dnx GroupDocs.Comparison.Mcp --yes
Folders, licensing and more →
groupdocs-comparison-python-net-home 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)