$npx skillfedfor your agent

cydifflib

Fast implementation of difflib's algorithms

With conditionsPyPI Software DevelopmentReleased Apr 2025129.3K downloads / moMITPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — cydifflib-1.2.0-cp310-cp310-macosx_10_9_x86_64.whl · cydifflib-1.2.0-cp310-cp310-macosx_11_0_arm64.whl · cydifflib-1.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
v1.2.0 · released 2025-04-11 · Python >=3.9

Yes, if you use difflib and performance matters. The drop-in API means zero code changes, pre-built wheels eliminate compilation friction for most users, and MIT licensing has no restrictions. The aging maintenance status (490 days since prior release) is a minor concern but not a blocker—the package is not archived, the last commit is recent, and no vulnerabilities are known. Install it as a performance optimization when difflib becomes a measurable bottleneck.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >=3.9; source builds require a C++11-compatible compiler.
  • Medium install friction due to compiled wheels; however, pre-built binaries are available for common platforms (Python 3.9–3.13 on Linux, macOS, Windows), and source builds require only a C++11 compiler.
  • Last release was recent (2025-04-11), though the project shows aging maintenance signals with 490 days since the prior release.

License · maintenance · safety

MIT (permissive) — Licensed under MIT (permissive), so you can use, modify, and distribute CyDifflib with minimal legal constraints—no copyleft obligations or commercial restrictions.

last release 2025-04-11 (490 days) · last repo commit 2025-04-11 · 32 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 129,323 downloads/mo, #11,673 on PyPI

Verify before relying

pip install cydifflib

from cydifflib import SequenceMatcher

matcher = SequenceMatcher(None, 'hello', 'hallo')
ratio = matcher.ratio()
  • Actual performance gains over difflib in typical workloads (benchmarks referenced but not quantified in the excerpt).
  • Compatibility with all libraries that monkey-patch difflib (only thefuzz example shown).
  • Whether the 490-day gap between releases indicates active maintenance or dormancy.
Same gist for agents: .md · .json

What it is and what it does

CyDifflib is a compiled reimplementation of Python's difflib module, designed to be a direct drop-in replacement that runs the same sequence-comparison algorithms faster. It exposes the same API as difflib—primarily SequenceMatcher and related functions—so you can swap it in by changing an import statement or by monkey-patching difflib before importing libraries that depend on it.

The package targets developers who rely on difflib for string similarity, diff generation, or sequence matching but need better performance. It has no runtime dependencies and supports Python 3.9 through 3.13 on all major platforms via pre-built wheels, making installation straightforward on most systems.

Use it for

  • Speed up fuzzy string matching in applications that use difflib internally (e.g., thefuzz) by monkey-patching before import.
  • Accelerate diff-based code review or version-control tools that compute sequence similarities at scale.
  • Replace difflib in data deduplication or record-linkage pipelines where SequenceMatcher is a bottleneck.
  • Improve performance of text-comparison features in IDEs or documentation tools without rewriting comparison logic.

Worth the install?

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

With conditions

Yes, if you use difflib and performance matters.

The drop-in API means zero code changes, pre-built wheels eliminate compilation friction for most users, and MIT licensing has no restrictions. The aging maintenance status (490 days since prior release) is a minor concern but not a blocker—the package is not archived, the last commit is recent, and no vulnerabilities are known. Install it as a performance optimization when difflib becomes a measurable bottleneck.

Install

cydifflib on PyPI

Before you install

Medium install friction due to compiled wheels; however, pre-built binaries are available for common platforms (Python 3.9–3.13 on Linux, macOS, Windows), and source builds require only a C++11 compiler. Last release was recent (2025-04-11), though the project shows aging maintenance signals with 490 days since the prior release.

Requires Python >=3.9; source builds require a C++11-compatible compiler.

License in practice

Licensed under MIT (permissive), so you can use, modify, and distribute CyDifflib with minimal legal constraints—no copyleft obligations or commercial restrictions.

Quickstart

pip install cydifflib

from cydifflib import SequenceMatcher

matcher = SequenceMatcher(None, 'hello', 'hallo')
ratio = matcher.ratio()

Verify before relying

  • Actual performance gains over difflib in typical workloads (benchmarks referenced but not quantified in the excerpt).
  • Compatibility with all libraries that monkey-patch difflib (only thefuzz example shown).
  • Whether the 490-day gap between releases indicates active maintenance or dormancy.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceAging 490 days since the last release
Last repo commit
First released
Downloads129,323 / month, #11,673 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

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

Tags

Capabilities
fast difflib replacementsequence comparison performancediff algorithm optimizationstring similarity matchingsequence matcher speedup
Topics
performance-optimizationdrop-in-replacement

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 › “fast difflib replacement”

  • cydifflibCyDifflib provides a faster, drop-in replacement for Python's…
  • cdifflibcdifflib provides a C-accelerated reimplementation of Python's…
  • moreorlessGenerates unified diffs with correct handling of files without…

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

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also cdifflib · pyxDamerauLevenshtein · fastdiff · jarowinkler · RapidFuzz · cyseq · textdistance · python-Levenshtein · thefuzz · diff-match-patch