Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install bsdiff4

How to install bsdiff4

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install bsdiff4
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.1.1
1.1.4Never BuiltWhy not?
1.1.1 Available View build log
1.1.0 Available View build log
1.0.1 Available View build log
1.0.0 Available View build log
1.1.1
1.1.4Never BuiltWhy not?
1.1.1 Available View build log
1.1.0 Available View build log
Windows (64-bit)
1.1.1
1.1.4Never BuiltWhy not?
1.1.1 Available View build log
1.1.0 Available View build log
1.0.1 Available View build log
1.0.0 Available View build log
1.1.1
1.1.4Never BuiltWhy not?
1.1.1 Available View build log
1.1.0 Available View build log
Mac OS X (10.5+)
1.1.4 Available View build log
1.1.1 Available View build log
1.1.0 Available View build log
1.0.1 Available View build log
1.0.0 Available View build log
1.1.1
1.1.4Never BuiltWhy not?
1.1.1 Available View build log
1.1.0 Available View build log
Linux (32-bit)
1.1.4 Available View build log
1.1.1 Available View build log
1.1.0 Available View build log
1.0.1 Available View build log
1.0.0 Available View build log
1.1.1
1.1.4Never BuiltWhy not?
1.1.1 Available View build log
1.1.0 Available View build log
Linux (64-bit)
1.1.4 Available View build log
1.1.1 Available View build log
1.1.0 Available View build log
1.0.1 Available View build log
1.0.0 Available View build log
1.1.1
1.1.4Never BuiltWhy not?
1.1.1 Available View build log
1.1.0 Available View build log
1.1.4 Available View build log
 
Author
License
BSD
Imports
Lastest release
version 1.1.4 on Apr 7th, 2013

The code is mostly derived from cx_bsdiff (written by Anthony Tuininga, http://cx-bsdiff.sourceforge.net/). The cx_bsdiff code in turn was derived from bsdiff, the standalone utility produced for BSD which can be found at http://www.daemonology.net/bsdiff. In addition to the two functions (diff and patch) cx_bsdiff provides, this package includes:

  • an interface to the BSDIFF4-format
  • command line interfaces: bsdiff4 and bspatch4
  • tests

The bsdiff4 package defines the following high level functions:

diff(src_bytes, dst_bytes) -> bytes
Return a BSDIFF4-format patch (from src_bytes to dst_bytes) as bytes.
patch(src_bytes, patch_bytes) -> bytes
Apply the BSDIFF4-format patch_bytes to src_bytes and return the bytes.
file_diff(src_path, dst_path, patch_path)
Write a BSDIFF4-format patch (from the file src_path to the file dst_path) to the file patch_path.
file_patch(src_path, dst_path, patch_path)
Apply the BSDIFF4-format file patch_path to the file src_path and write the result to the file dst_path.
file_patch_inplace(path, patch_path)
Apply the BSDIFF4-format file patch_path to the file path in place.

Example:

>>> import bsdiff4
>>> a = bytes(100000 * 'a')
>>> b = bytearray(a)
>>> b[100:106] = ' diff '
>>> p = bsdiff4.diff(a, bytes(b))
>>> len(p)
154
>>> bsdiff4.patch(a, p) == b
True

Subscribe to package updates

Last updated Apr 7th, 2013

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.