Diffplus is a Python library for computing incremental and contextual diffs between two indented configurations (e.g., YAML, INI, or any indented text). Version 1.4.0, last updated in 2025. Release cadence is irregular (major versions every few months). It supports Python >=3.8 and is designed to produce structured diff output highlighting additions, deletions, and context.
pip install diffplusNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: diff two indented text strings and print the result.
Preprocess inputs to replace tabs with spaces before calling diff_texts.
Explicitly set context_lines for your use case, e.g., diff_texts(..., context_lines=1).
Use 'from diffplus import diff_texts' instead of 'from diffplus import diff_indented'.
No dependency data recorded yet.