Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

patching files with python

Project Description

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.

Motivation

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.

Installation

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

$ python setup.py install

Testing

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

$ python setup.py test

Contribute

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.

Release History

Release History

This version
History Node

1.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
patchit-1.1.tar.gz (6.1 kB) Copy SHA256 Checksum SHA256 Source Jan 19, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting