{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing/3"}],"enrichment":{"capability":"Redlines compares two strings or text documents and produces structured output showing differences with strike-throughs and highlights, similar to Microsoft Word's track changes, in JSON, Markdown, HTML, or terminal-rich formats.","skillfed_tags":["diff-and-merge","document-comparison","cli-tool"],"use_cases":["Visualize edits in legal or technical documents where precise change tracking is required.","Generate structured JSON diffs for AI agents or automation systems to process and act on text modifications.","Display side-by-side or inline text changes in web applications or documentation tools using HTML or Markdown output.","Compare versions of configuration files, code comments, or documentation to audit what changed between revisions.","Integrate with ChatGPT or other LLM workflows to show users exactly what text transformations an AI made."],"what_it_does":"Redlines is a text-comparison library that identifies and visualizes differences between two strings or documents. It produces output formatted like Microsoft Word's track changes, making edits immediately visible with strike-throughs for deletions and highlights for additions. The library supports multiple output formats\u2014JSON (with structured change data and statistics), Markdown, HTML, and rich terminal display\u2014allowing both human-readable visualization and programmatic access to change metadata.\n\nThe package provides a single `Redlines` class for comparison work, available both as a Python API and a command-line tool. It includes optional advanced processors: `NupunktProcessor` for intelligent sentence-level tokenization (useful for documents with abbreviations, URLs, and citations) and support for additional statistics via the levenshtein dependency. The library targets Python 3.10 and later and depends on click and rich for CLI and terminal rendering.","worth_installing":"Yes. Redlines is actively maintained, has no known vulnerabilities, installs with low friction, and solves a specific problem (text comparison with Word-like track changes) that is not trivial to implement from scratch. The MIT license poses no restrictions. Install it if you need to compare text and display or process the differences programmatically."},"id":"redlines","links":{"html":"https://skillfed.io/packages/redlines","md":"https://skillfed.io/packages/redlines.md","pypi":"https://pypi.org/project/redlines/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-11-24","license_spdx":"MIT","license_treatment":"permissive","name":"redlines","python_support":"supports_current","summary":"Compare text, and produce human-readable differences or deltas which look like track changes in Microsoft Word."},"popularity":{"monthly_downloads":220534,"position":9298,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.6.1"}
