skip to navigation
skip to content

patchit 1.1

patching files with python

Patchit is an MIT Licensed unified diff parsing and merge tool written in Python for anyone who needs a finer grain of control over unified diff content and to merge the diff with an arbitrary stream of lines.


The motivation for this package arose from the

  • overwhelming complexity of other patching tools written in Python,
  • their absence from the PyPI,
  • their inability to inspect the unified diff content and
  • missing support to merge the patch with an arbitrary stream of lines.


To install patchit just run from the root of the project:

$ python install


Tests are located at the file. In order to test your new contribution to patchit just run from your shell

$ python test


Unfortunately, I wasn’t able to make it much better myself. Therefore I’m asking anyone who is interested in a patch functionality for Python to improve this package and hand in patches by mail or pull requests.

The preferred method of development is a test driven approach and following the nvie git flow branching model. Please be so kind to bear these things in mind when handing in improvements. Thank you very much.

File Type Py Version Uploaded on Size
patchit-1.1.tar.gz (md5) Source 2013-01-19 6KB