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
fromgroupdocs.comparisonimportComparer# Compare two DOCX revisions and write a tracked-changes resultwithComparer("source.docx")ascomparer: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.