$npx skillfedfor your agent

bsdiff4

binary diff and patch using the BSDIFF4-format

Worth itPyPI UtilitiesReleased Feb 2025424.5K downloads / moBSDPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — bsdiff4-1.2.6-cp310-cp310-macosx_10_9_x86_64.whl · bsdiff4-1.2.6-cp310-cp310-macosx_11_0_arm64.whl · bsdiff4-1.2.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
v1.2.6 · released 2025-02-19

Yes. bsdiff4 is stable (Production/Stable status), actively maintained, has no vulnerabilities, and solves a specific and well-defined problem with no runtime dependencies. The medium install friction is mitigated by broad wheel availability. Install it if you need efficient binary diffing; skip it if you only work with text or don't need delta compression.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Medium install friction due to compiled C extensions; however, prebuilt wheels are available for a wide range of Python versions and platforms (Python 3.10–3.13, macOS, Linux, Windows).
  • Maintenance is active with a recent commit on 2026-08-07.

License · maintenance · safety

BSD (permissive) — BSD license is permissive, allowing commercial and private use with minimal restrictions; no copyleft obligations.

last release 2025-02-19 (541 days) · last repo commit 2026-08-07 · 145 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 424,483 downloads/mo, #6,765 on PyPI

Verify before relying

import bsdiff4
a = b'original data'
b = b'modified data'
patch = bsdiff4.diff(a, b)
result = bsdiff4.patch(a, patch)
assert result == b
  • Whether the package supports Python 2.7 in practice despite classifiers listing it; modern Python versions are clearly supported.
Same gist for agents: .md · .json

What it is and what it does

bsdiff4 is a Python wrapper around the BSDIFF4 binary diffing algorithm, allowing you to compute compact patches between binary files or byte sequences and apply those patches to reconstruct the target. It exposes both in-memory functions (diff/patch on byte strings) and file-level operations (file_diff, file_patch, file_patch_inplace), making it useful for scenarios where you need to minimize storage or transmission overhead when distributing updates or storing multiple versions of binary data.

The package is built on C code derived from the original BSD bsdiff utility and cx_bsdiff, compiled to native extensions for performance. It has no runtime dependencies and is actively maintained; prebuilt wheels cover a broad range of platforms and Python versions, keeping installation straightforward on most systems despite the compiled nature of the code.

Use it for

  • Generate compact update patches for software distribution, reducing bandwidth when delivering new versions.
  • Store incremental snapshots of binary files (e.g., disk images, database backups) to minimize storage overhead.
  • Implement version control or delta-sync systems for binary artifacts where diff-based storage saves significant space.
  • Transmit binary file changes over low-bandwidth connections by sending only the patch instead of the full file.
  • Create forensic or archival systems that track changes to binary data with minimal redundancy.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

bsdiff4 is stable (Production/Stable status), actively maintained, has no vulnerabilities, and solves a specific and well-defined problem with no runtime dependencies. The medium install friction is mitigated by broad wheel availability. Install it if you need efficient binary diffing; skip it if you only work with text or don't need delta compression.

Install

bsdiff4 on PyPI

Before you install

Medium install friction due to compiled C extensions; however, prebuilt wheels are available for a wide range of Python versions and platforms (Python 3.10–3.13, macOS, Linux, Windows). Maintenance is active with a recent commit on 2026-08-07.

License in practice

BSD license is permissive, allowing commercial and private use with minimal restrictions; no copyleft obligations.

Quickstart

import bsdiff4
a = b'original data'
b = b'modified data'
patch = bsdiff4.diff(a, b)
result = bsdiff4.patch(a, patch)
assert result == b

Verify before relying

  • Whether the package supports Python 2.7 in practice despite classifiers listing it; modern Python versions are clearly supported.

Package facts

LicenseBSD permissive
Python supportNot specified
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceActively maintained 541 days since the last release
Last repo commit
First released
Downloads424,483 / month, #6,765 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: CProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Utilities

Evidence: bsdiff4-1.2.6-cp310-cp310-macosx_10_9_x86_64.whl; bsdiff4-1.2.6-cp310-cp310-macosx_11_0_arm64.whl; bsdiff4-1.2.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; bsdiff4-1.2.6-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; bsdiff4-1.2.6-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl; bsdiff4-1.2.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; bsdiff4-1.2.6-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl; bsdiff4-1.2.6-cp310-cp310-musllinux_1_2_aarch64.whl; bsdiff4-1.2.6-cp310-cp310-musllinux_1_2_i686.whl; bsdiff4-1.2.6-cp310-cp310-musllinux_1_2_ppc64le.whl; bsdiff4-1.2.6-cp310-cp310-musllinux_1_2_s390x.whl; bsdiff4-1.2.6-cp310-cp310-musllinux_1_2_x86_64.whl; bsdiff4-1.2.6-cp310-cp310-win32.whl; bsdiff4-1.2.6-cp310-cp310-win_amd64.whl; bsdiff4-1.2.6-cp311-cp311-macosx_10_9_x86_64.whl; bsdiff4-1.2.6-cp311-cp311-macosx_11_0_arm64.whl; bsdiff4-1.2.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; bsdiff4-1.2.6-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; bsdiff4-1.2.6-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl; bsdiff4-1.2.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Tags

Capabilities
binary diff patchbsdiff formatbinary file comparisondelta compressionbinary patch generation
Topics
binary-diffingpatch-generationcompression

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “binary diff patch”

  • bsdiff4bsdiff4 creates and applies binary patches in BSDIFF4 format,…
  • unidiffParses unified diff format data into structured Python objects,…
  • patchParses and applies unified diff patches to files, with automatic…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also patch · fast-diff-match-patch · daff · dictdiffer · whatthepatch · json-delta · diff-match-patch · xmldiff · cobs · jsondiff