Skip to content

mannewalis/python-patch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cross-platform patch utility to apply unified diffs.

How to use?

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

python patch.py diff.patch

You can also run the .zip file.

python patch-1.14.2.zip diff.patch

How to install?

It is better to just stuff patch.py into your repository and use it from here. This way your setup will always be repeatable. If you still want to install it, make sure to use strict dependencies to avoid hitting an API break:

pip install "patch>=1,<2"

With pip 6.x.x and later it is possible to use the alternative syntax:

pip install "patch==1.*"

Other stuff

Packages

No packages published

Languages

  • HTML 73.0%
  • Python 14.3%
  • C++ 9.1%
  • JavaScript 2.4%
  • CSS 0.8%
  • C 0.3%
  • Other 0.1%