RapidFuzz: Rapid fuzzy string matching in Python

3.14.3 · active · verified Sat Mar 28

RapidFuzz is a high-performance Python library for rapid fuzzy string matching, utilizing various string metrics. The current version is 3.14.3, released on March 28, 2026. It is actively maintained with regular updates to improve performance and functionality.

Warnings

Install

Imports

Quickstart

A simple example demonstrating how to use RapidFuzz to compare two strings and calculate their similarity ratio.

from rapidfuzz import fuzz

# Compare two strings
string1 = 'hello world'
string2 = 'helo world'

# Calculate similarity ratio
similarity = fuzz.ratio(string1, string2)
print(f'Similarity: {similarity}%')

view raw JSON →