patch


Namepatch JSON
Version 1.16 PyPI version JSON
download
home_pagehttps://github.com/techtonik/python-patch/
SummaryLibrary to parse and apply unified diffs
upload_time2016-02-13 15:18:58
maintainer
docs_urlNone
authoranatoly techtonik
requires_pythonNone
licenseMIT License
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            Features
--------

 * Python 2 and 3 compatible
 * Automatic correction of
   * Linefeeds according to patched file
   * Diffs broken by stripping trailing whitespace
   * a/ and b/ prefixes
 * Single file, which is a command line tool and a library
 * No dependencies outside Python stdlib
 * Patch format detection (SVN, HG, GIT)
 * Nice diffstat histogram
 * Linux / Windows / OS X
 * Test coverage

Things that don't work out of the box:

 * File renaming, creation and removal
 * Directory tree operations
 * Version control specific properties
 * Non-unified diff formats


Usage
-----

Download **patch.py** and run it with Python. It is a self-contained
module without external dependencies::

    patch.py diff.patch

You can also run the .zip file::
    
    python patch-1.16.zip diff.patch

Installation
------------

**patch.py** is self sufficient. You can copy it into your repository
and use it from here. This setup will always be repeatable. But if
you need to add `patch` module as a dependency, make sure to use strict
specifiers to avoid hitting an API break when version 2 is released::

    pip install "patch==1.*"


Changes
-------
        
https://github.com/techtonik/python-patch/blob/master/doc/CHANGES.md
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/techtonik/python-patch/",
    "name": "patch",
    "maintainer": "",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": "",
    "keywords": "",
    "author": "anatoly techtonik",
    "author_email": "techtonik at gmail com",
    "download_url": "https://files.pythonhosted.org/packages/da/74/0815f03c82f4dc738e2bfc5f8966f682bebcc809f30c8e306e6cc7156a99/patch-1.16.zip",
    "platform": "",
    "description": "Features\r\n--------\r\n\r\n * Python 2 and 3 compatible\r\n * Automatic correction of\r\n   * Linefeeds according to patched file\r\n   * Diffs broken by stripping trailing whitespace\r\n   * a/ and b/ prefixes\r\n * Single file, which is a command line tool and a library\r\n * No dependencies outside Python stdlib\r\n * Patch format detection (SVN, HG, GIT)\r\n * Nice diffstat histogram\r\n * Linux / Windows / OS X\r\n * Test coverage\r\n\r\nThings that don't work out of the box:\r\n\r\n * File renaming, creation and removal\r\n * Directory tree operations\r\n * Version control specific properties\r\n * Non-unified diff formats\r\n\r\n\r\nUsage\r\n-----\r\n\r\nDownload **patch.py** and run it with Python. It is a self-contained\r\nmodule without external dependencies::\r\n\r\n    patch.py diff.patch\r\n\r\nYou can also run the .zip file::\r\n    \r\n    python patch-1.16.zip diff.patch\r\n\r\nInstallation\r\n------------\r\n\r\n**patch.py** is self sufficient. You can copy it into your repository\r\nand use it from here. This setup will always be repeatable. But if\r\nyou need to add `patch` module as a dependency, make sure to use strict\r\nspecifiers to avoid hitting an API break when version 2 is released::\r\n\r\n    pip install \"patch==1.*\"\r\n\r\n\r\nChanges\r\n-------\r\n        \r\nhttps://github.com/techtonik/python-patch/blob/master/doc/CHANGES.md",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Library to parse and apply unified diffs",
    "version": "1.16",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "dbcbbd4e45ddd8baeb02bddf663a3176",
                "sha256": "c62073f356cff054c8ac24496f1a3d7cfa137835c31e9af39a9f5292fd75bd9f"
            },
            "downloads": -1,
            "filename": "patch-1.16.zip",
            "has_sig": false,
            "md5_digest": "dbcbbd4e45ddd8baeb02bddf663a3176",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 12809,
            "upload_time": "2016-02-13T15:18:58",
            "upload_time_iso_8601": "2016-02-13T15:18:58.285721Z",
            "url": "https://files.pythonhosted.org/packages/da/74/0815f03c82f4dc738e2bfc5f8966f682bebcc809f30c8e306e6cc7156a99/patch-1.16.zip",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2016-02-13 15:18:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "techtonik",
    "github_project": "python-patch",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "patch"
}
        
Elapsed time: 0.05650s