{"categories":[{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools/2"}],"enrichment":{"capability":"Parses and applies unified diff patches to files, with automatic correction of linefeeds, whitespace issues, and diff format variations across SVN, HG, and GIT.","skillfed_tags":["diff-patching","abandoned"],"use_cases":["Apply code patches in build systems or deployment scripts without requiring external utilities.","Parse and validate unified diffs programmatically within Python tools or CI/CD pipelines.","Correct malformed patches by automatically fixing whitespace and linefeed issues before application.","Embed patch application logic in a single-file distribution without adding external dependencies.","Generate and display diffstat summaries for patch review or logging."],"what_it_does":"Patch is a lightweight library and command-line tool that reads unified diff files and applies them to source code. It handles common diff problems automatically\u2014correcting line endings to match the target file, fixing diffs broken by trailing whitespace stripping, and normalizing a/ and b/ path prefixes. It detects patch format from SVN, HG, or GIT sources and produces a diffstat histogram of changes applied.\n\nThe package is self-contained: a single Python file with no external dependencies beyond the standard library, designed to be copied into a repository or run directly as a zip archive. It works across Linux, Windows, and OS X. However, it does not support file renaming, creation, removal, directory tree operations, or version control\u2013specific properties; it also cannot parse non-unified diff formats.","worth_installing":"No. The package is abandoned (last release 2016-02-13, no active maintenance) and poses compatibility and support risk. While its zero-dependency design and permissive license are attractive, the stalled development means unaddressed bugs and uncertain Python 3 compatibility. For new projects, seek actively maintained alternatives; for legacy code already depending on it, pin the version strictly and test thoroughly."},"id":"patch","links":{"html":"https://skillfed.io/packages/patch","md":"https://skillfed.io/packages/patch.md","pypi":"https://pypi.org/project/patch/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2016-02-13","license_spdx":null,"license_treatment":"permissive","name":"patch","python_support":"unspecified","summary":"Library to parse and apply unified diffs"},"popularity":{"monthly_downloads":620187,"position":5726,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.16"}
