{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/4"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/5"},{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing"},{"label":"Version Control","url":"https://skillfed.io/packages/category/software-development-version-control"}],"enrichment":{"capability":"Parses and applies patch files in multiple diff formats (unified, context, normal, ed, rcs) and from several source control systems (Git, SVN, CVS).","skillfed_tags":["diff-parsing","patch-application"],"use_cases":["Parse a patch file to inspect what changes it contains before applying it to your codebase.","Apply a Git, SVN, or CVS patch to text in memory without invoking external tools.","Build a tool that needs to understand or manipulate diffs programmatically.","Validate patch compatibility or extract metadata from patch files.","Reconstruct a modified version of a file by applying a stored patch to the original text."],"what_it_does":"What The Patch is a Python library for parsing patch files and applying them to text. It reads diffs in standard formats (unified, context, normal, ed, rcs) and from source control systems (Git, SVN, CVS), extracting the changes into structured data that describes which lines were added, removed, or kept unchanged. You can then apply those changes to a file's text to reconstruct the patched version.\n\nThe library has been stable since its 1.0 release and requires no external dependencies. It works by default without needing the system patch command, though you can opt to use it if available. The maintainer notes that while the functions are reliable, they are not ideally implemented and active development is minimal\u2014pull requests are welcome and will be merged and released, but reported issues may not be fixed.","worth_installing":"Yes. The library is stable, has no dependencies, and solves a clear problem\u2014parsing and applying patches\u2014with low friction. The permissive license and active repository maintenance make it safe to rely on. The caveat is that the maintainer does not actively fix reported issues, so verify that the documented formats cover your use case before adopting it."},"id":"whatthepatch","links":{"html":"https://skillfed.io/packages/whatthepatch","md":"https://skillfed.io/packages/whatthepatch.md","pypi":"https://pypi.org/project/whatthepatch/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-11-16","license_spdx":null,"license_treatment":"permissive","name":"whatthepatch","python_support":"supports_current","summary":"A patch parsing and application library."},"popularity":{"monthly_downloads":2648129,"position":2962,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.0.7"}
