Fuzzywuzzy: Python Library for Fuzzy String Matching

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Fuzzywuzzy: Python Library for Fuzzy String Matching

Summary

Fuzzywuzzy is a popular Python library designed for fuzzy string matching, enabling efficient comparison and similarity scoring between text strings. It leverages Levenshtein distance to help with tasks like data cleaning and record linkage. While widely used, this project has been superseded by TheFuzz, which continues its development under a new name.

Repository Information

Analyzed by OSRepos on August 1, 2026

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

Fuzzywuzzy is a powerful Python library for fuzzy string matching, based on Levenshtein distance. It provides a simple API to compare strings and determine their similarity, making it invaluable for tasks requiring flexible text comparison. Important Note: This project has been renamed and moved to TheFuzz, which is the actively maintained successor. Users are encouraged to migrate to TheFuzz for ongoing development and support.

Installation

To install Fuzzywuzzy, you can use pip. However, it is highly recommended to install thefuzz instead, as fuzzywuzzy is no longer actively maintained and thefuzz offers the same functionality with continued support.

pip install fuzzywuzzy[speedup]
# Recommended: Install thefuzz instead
# pip install thefuzz[speedup]

The [speedup] option installs python-Levenshtein, which significantly improves performance for string comparisons.

Examples

Fuzzywuzzy offers various methods for comparing strings, including simple ratio, partial ratio, token sort ratio, and token set ratio.

from fuzzywuzzy import fuzz
from fuzzywuzzy import process

# Simple Ratio
print(fuzz.ratio("this is a test", "this is a test!")) # Output: 97

# Partial Ratio
print(fuzz.partial_ratio("this is a test", "this is a test!")) # Output: 100

# Token Sort Ratio
print(fuzz.token_sort_ratio("fuzzy wuzzy was a bear", "wuzzy fuzzy was a bear")) # Output: 100

# Token Set Ratio
print(fuzz.token_set_ratio("fuzzy was a bear", "fuzzy fuzzy was a bear")) # Output: 100

# Extracting best matches from a list
choices = ["apple pie", "grape juice", "apple sauce", "orange juice"]
print(process.extract("apple", choices, limit=2)) # Output: [('apple pie', 90), ('apple sauce', 90)]
print(process.extractOne("apple", choices)) # Output: ('apple pie', 90)

Why Use Fuzzy String Matching?

Fuzzy string matching is crucial in many applications where exact string matches are not sufficient. It helps in:

  • Data Cleaning: Identifying and merging duplicate records with slight variations or typos.
  • Search Functionality: Providing more robust search results by matching queries even with minor spelling errors.
  • Natural Language Processing (NLP): Comparing text for similarity in tasks like plagiarism detection or text deduplication.
  • Record Linkage: Connecting records across different datasets that may have inconsistent naming conventions.

Fuzzywuzzy, and its successor TheFuzz, provide a straightforward and efficient way to implement these capabilities in Python.

Links

Related repositories

Similar repositories that may be relevant next.

oh-my-hermes: Enhance Hermes Agent with Advanced AI Workflow and Memory

oh-my-hermes: Enhance Hermes Agent with Advanced AI Workflow and Memory

September 17, 2026

oh-my-hermes is an all-in-one plugin designed to significantly enhance the Hermes Agent. It provides advanced coding intelligence, a robust long-term memory system, and optimized workflow packages, transforming standard Hermes requests into structured, actionable tasks with clear operational layers.

AI AgentHermes AgentAI Tools
ASC: A Super Fast Android Decompiler for Mobile Reverse Engineering

ASC: A Super Fast Android Decompiler for Mobile Reverse Engineering

September 17, 2026

ASC is an innovative and exceptionally fast Android decompiler front-end, specifically designed for mobile researchers and agents. It redefines traditional decompilation by directly querying compiled artifacts, offering on-demand code extraction and analysis without heavy preprocessing. This approach results in significantly reduced memory usage and lightning-fast performance, even on large APKs.

AndroidDecompilerReverse Engineering
Open Index: A Deterministic Memory Layer for Your AI Agents

Open Index: A Deterministic Memory Layer for Your AI Agents

September 16, 2026

Open Index is a powerful tool for building domain-specific, accurate, and structured data that AI agents can effectively operate on. It enables the creation of a "brain," a searchable and continuously improving context graph tailored to any domain. This system ensures agents have access to reliable, up-to-date information, enhancing their capabilities and decision-making processes.

AI AgentsKnowledge GraphAgent Memory
tooltrim: Drastically Reduce LLM Agent Tool Output Tokens, Improve Accuracy

tooltrim: Drastically Reduce LLM Agent Tool Output Tokens, Improve Accuracy

September 16, 2026

tooltrim provides drop-in compression for LLM agent tool outputs, drastically cutting tokens while often improving answer accuracy. This provider-agnostic solution offers content-aware compression, faithfulness benchmarks, and seamless integration with popular frameworks or as an OpenAI-compatible proxy.

PythonLLM AgentsContext Compression

Source repository

Open the original repository on GitHub.

16 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️