{"id":32139059,"url":"https://github.com/techtonik/python-patch","last_synced_at":"2025-10-21T05:16:33.357Z","repository":{"id":30604244,"uuid":"34159484","full_name":"techtonik/python-patch","owner":"techtonik","description":"Library to parse and apply unified diffs","archived":false,"fork":false,"pushed_at":"2022-01-25T16:40:32.000Z","size":760,"stargazers_count":122,"open_issues_count":39,"forks_count":67,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-10-11T08:40:05.134Z","etag":null,"topics":["diff","parse","patch","python","unified-diffs"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/patch","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techtonik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-18T09:05:07.000Z","updated_at":"2025-10-05T00:42:41.000Z","dependencies_parsed_at":"2022-09-26T17:31:26.135Z","dependency_job_id":null,"html_url":"https://github.com/techtonik/python-patch","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/techtonik/python-patch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techtonik%2Fpython-patch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techtonik%2Fpython-patch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techtonik%2Fpython-patch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techtonik%2Fpython-patch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techtonik","download_url":"https://codeload.github.com/techtonik/python-patch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techtonik%2Fpython-patch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279975970,"owners_count":26253645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-19T02:00:07.647Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["diff","parse","patch","python","unified-diffs"],"created_at":"2025-10-21T05:16:32.654Z","updated_at":"2025-10-21T05:16:33.352Z","avatar_url":"https://github.com/techtonik.png","language":"Python","readme":"Library to parse and apply unified diffs.\n\n[![Build Status](https://img.shields.io/travis/techtonik/python-patch/master)](https://travis-ci.org/techtonik/python-patch/branches) [![PyPI](https://img.shields.io/pypi/v/patch)](https://pypi.python.org/pypi/patch)\n\n### Features\n\n * Python 2 and 3 compatible\n * Automatic correction of\n   * Linefeeds according to patched file\n   * Diffs broken by stripping trailing whitespace\n   * a/ and b/ prefixes\n * Single file, which is a command line tool and a library\n * No dependencies outside Python stdlib\n * Patch format detection (SVN, HG, GIT)\n * Nice diffstat histogram\n * Linux / Windows / OS X\n * Test coverage\n\nThings that don't work out of the box:\n\n * File renaming, creation and removal\n * Directory tree operations\n * Version control specific properties\n * Non-unified diff formats\n\n\n### Usage\n\nDownload **patch.py** and run it with Python. It is a self-contained\nmodule without external dependencies.\n\n    patch.py diff.patch\n\nYou can also run the .zip file.\n    \n    python patch-1.16.zip diff.patch\n\n### Installation\n\n**patch.py** is self sufficient. You can copy it into your repository\nand use it from here. This setup will always be repeatable. But if\nyou need to add `patch` module as a dependency, make sure to use strict\nspecifiers to avoid hitting an API break when version 2 is released:\n\n    pip install \"patch==1.*\"\n\n\n### Other stuff\n\n* [CHANGES](doc/CHANGES.md)\n* [LICENSE](doc/LICENSE)\n* [CREDITS](doc/CREDITS)\n\n* [test coverage](http://techtonik.github.io/python-patch/tests/coverage/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechtonik%2Fpython-patch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechtonik%2Fpython-patch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechtonik%2Fpython-patch/lists"}