ppc64le/linux/: bsdiff4-1.2.6 metadata and description

Homepage Simple index

binary diff and patch using the BSDIFF4-format

author Ilan Schnell
author_email [email protected]
classifiers
  • Development Status :: 5 - Production/Stable
  • Intended Audience :: Developers
  • Operating System :: OS Independent
  • Programming Language :: C
  • Programming Language :: Python :: 2
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.5
  • Programming Language :: Python :: 3.6
  • Programming Language :: Python :: 3.7
  • Programming Language :: Python :: 3.8
  • Programming Language :: Python :: 3.9
  • Programming Language :: Python :: 3.10
  • Programming Language :: Python :: 3.11
  • Programming Language :: Python :: 3.12
  • Programming Language :: Python :: 3.13
  • Topic :: Utilities
  • Environment :: MetaData :: IBM Python Ecosystem
license BSD
File Tox results History
bsdiff4-1.2.6-cp310-cp310-linux_ppc64le.whl
Size
34 KB
Type
Python Wheel
Python
3.10
bsdiff4-1.2.6-cp311-cp311-linux_ppc64le.whl
Size
35 KB
Type
Python Wheel
Python
3.11
bsdiff4-1.2.6-cp312-cp312-linux_ppc64le.whl
Size
35 KB
Type
Python Wheel
Python
3.12
bsdiff4-1.2.6-cp313-cp313-linux_ppc64le.whl
Size
36 KB
Type
Python Wheel
Python
3.13
bsdiff4-1.2.6-cp39-cp39-linux_ppc64le.whl
Size
34 KB
Type
Python Wheel
Python
3.9

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:

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 = 100000 * b'a'
>>> b = bytearray(a)
>>> b[100:106] = b' diff '
>>> p = bsdiff4.diff(a, bytes(b))
>>> len(p)
154
>>> bsdiff4.patch(a, p) == b
True

Export Classification Notice

The software hosted on this website consists of publicly available open‑source packages. To the extent U.S. export regulations apply, software that is publicly available as described in 15 C.F.R. §§ 734.7 (for non-encryption software) or 742.15(b) (for encryption software) is not subject to the Export Administration Regulations (EAR). Users are responsible for complying with all applicable export laws and regulations.