{"repo":"houfu/redlines","free":true,"listed":false,"github":"https://github.com/houfu/redlines","clone":"git clone https://github.com/houfu/redlines.git","description":"Show the differences between two strings/text as a compact text, in markdown/HTML, in the terminal and more.","language":"Python","stars":157,"topics":["diff","markdown","python","hacktoberfest"],"license":"MIT","category":"productivity","readme_excerpt":"Redlines Redlines compares two strings/text and produces structured output showing their differences. Changes are represented with strike-throughs and highlights, similar to Microsoft Word's track changes. The output includes detailed change information, positions, and statistics for programmatic use. Supports multiple output formats: JSON (default, with structured change data and statistics), Markdown , HTML , and rich (terminal display). Quick Start Supported: Python 3.10 - 3.14 (Python 3.8 and 3.9 support dropped) Optional dependencies: - pip install redlines[pdf] for PDF file comparison - pip install redlines[nupunkt] for advanced sentence boundary detection (Python 3.11+, handles abbreviations, citations, URLs) - pip install redlines[levenshtein] for additional statistics Usage Python API The library contains one class: Redlines , which is used to compare text. Basic comparison: Multiple comparisons with one source: JSON output with structured data: CLI Basic usage (outputs JSON by default): Output formats: Run redlines --help or redlines guide for the Agent Integration Guide. See also: redlines-textual. Advanced Features Custom Processors Use NupunktProcessor for sentence-level tokenization with intelligent boundary detection: Use NupunktProcessor for: Legal/technical documents with abbreviations, URLs, citations, decimals Use WholeDocumentProcessor (default) for: Simple documents, speed-critical tasks (5-6x faster), paragraph-level granularity See demo comparison for b","default_branch":null,"files":null,"tree":[],"storefront":"/r/houfu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/houfu/redlines/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}