{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/14"}],"enrichment":{"capability":"Parses unified diff format into structured Python objects representing patches, files, hunks, and line-by-line changes, with methods to query file status and rebuild diff output.","skillfed_tags":["diff-parsing","version-control"],"use_cases":["Analyze git diffs programmatically in CI/CD pipelines to enforce code review policies or generate reports","Parse patch files to determine which files and functions were modified without applying the patch","Build tooling that needs to understand the structure of code changes (e.g., impact analysis, test selection)","Extract and display diff statistics in a custom format or dashboard"],"what_it_does":"unidiff2 is a Python library that parses unified diff format (the standard output of `git diff`, `patch` files, and similar tools) into a structured object model. It lets you programmatically inspect which files changed, how many lines were added or removed, access individual hunks and their line-by-line content, and regenerate diff output from the parsed structure.\n\nThe package is a maintained fork of the original unidiff library. It has no external runtime dependencies and supports Python 3.7 through 3.11. You can load diffs from files, file-like objects, or iterables, and optionally parse metadata-only for efficiency. It also provides a command-line tool to summarize diff statistics.","worth_installing":"Yes, if you need to parse unified diffs in Python and want a dependency-free solution. The low install friction and permissive license are advantages. However, the package is very new (first release October 2025) and aging maintenance status means you should verify that it meets your stability expectations and that the original unidiff project hasn't resumed active development before committing to it in production."},"id":"unidiff2","links":{"html":"https://skillfed.io/packages/unidiff2","md":"https://skillfed.io/packages/unidiff2.md","pypi":"https://pypi.org/project/unidiff2/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-10-30","license_spdx":null,"license_treatment":"permissive","name":"unidiff2","python_support":"supports_current","summary":"Unified diff parsing/metadata extraction library."},"popularity":{"monthly_downloads":196523,"position":9784,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.7.8"}
