fuzzywuzzy
Fuzzy string matching in python
What it is and what it does
FuzzyWuzzy is a string-matching library that calculates similarity scores between text sequences using Levenshtein distance. It offers multiple matching strategies—simple ratio, partial ratio, token sort, and token set—each suited to different comparison scenarios. The library includes a process module for batch operations like extracting the best matches from a list of candidates.
The package has no runtime dependencies and installs cleanly. However, it is archived and abandoned as of February 2023, with the last release in 2020. While the core algorithm is stable and unlikely to break, you should not expect bug fixes, security patches, or compatibility updates for future Python versions. An optional C extension (python-Levenshtein) can provide a 4-10x performance boost but may produce different results in edge cases.
Use it for:
- Deduplicate or merge user-entered names and addresses that may contain typos or formatting variations
- Search for songs or files by approximate title match when exact names are unknown or misspelled
- Match product names across databases with inconsistent naming conventions or abbreviations
- Implement autocomplete or suggestion features that tolerate user spelling mistakes
- Link records from different data sources where identifiers don't match exactly
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
FuzzyWuzzy performs fuzzy string matching using Levenshtein distance to find approximate matches between text sequences, with optional speedup via an external C library.
Yes, for read-only string matching in stable applications. The algorithm is mature and well-tested, install friction is minimal, and no known vulnerabilities exist. However, do not adopt it for new projects requiring active maintenance or Python version support beyond 3.6. The GPLv2 license is a hard blocker for proprietary software. For actively maintained alternatives, look elsewhere.
Install
fuzzywuzzy on PyPI
pip
pip install fuzzywuzzyuv
uv add fuzzywuzzypoetry
poetry add fuzzywuzzyInstalling fuzzywuzzy
Before you install
Installation is straightforward with no runtime dependencies. The package is archived and unmaintained since February 2023, with the last release in 2020, so no active bug fixes or compatibility updates should be expected.
License in practice
Licensed under GPLv2 (copyleft), which requires that any derivative work or linked application also be open-source under a compatible license—a significant constraint for proprietary software.
Quickstart
pip install fuzzywuzzy
from fuzzywuzzy import fuzz
fuzz.ratio("this is a test", "this is a test!")
Verify before relying
- Whether the package works reliably on Python versions beyond 3.6 (classifiers list only up to 3.6)
- Current compatibility with modern Python versions given the 2023 abandonment
- Whether difflib alone is sufficient or if python-Levenshtein is required for acceptable performance
Package facts
| License | GPLv2 (copyleft) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,374 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 15,776,985/month — #1,174 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: fuzzywuzzy-0.18.0-py2.py3-none-any.whl
Tags
More Text Processing packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyparsingpyparsing provides a library for building text…
permissive · top 1,000 on PyPI
docutilsDocutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
RapidFuzzRapidFuzz provides fast fuzzy string matching…
permissive · top 1,000 on PyPI
tinycss2tinycss2 parses CSS strings into token and…
permissive · top 1,000 on PyPI
llama-parseLlamaParse parses complex documents (PDFs,…
permissive · top 1,000 on PyPI
pfzyProvides fuzzy string matching with match…
permissive · top 5,000 on PyPI
thefuzzTheFuzz performs fuzzy string matching using…
permissive · top 5,000 on PyPI
fuzzysearchFinds approximate substring matches in text or…
permissive · top 15,000 on PyPI
fuzzyfinderFuzzy finder that matches partial strings from…
permissive · top 15,000 on PyPI
textdistanceComputes distance and similarity between text…
permissive · top 5,000 on PyPI
python-LevenshteinComputes Levenshtein edit distance, string…
copyleft · top 5,000 on PyPI
strsimpyImplements a dozen string similarity and…
permissive · top 15,000 on PyPI
tfidf-matcherPerforms fast fuzzy string matching on large…
permissive · top 15,000 on PyPI
editdistanceComputes the edit distance (Levenshtein…
permissive · top 5,000 on PyPI