Skip to main content

rapid fuzzy string matching

Project description

RapidFuzz

Rapid fuzzy string matching in Python and C++ using the Levenshtein Distance

Continous Integration

Why Should You Care?InstallationUsageRoadmapLicense


Why Should You Care?

Since there is already FuzzyWuzzy that implements the same string similarity calculations you might wonder why you would want to use RapidFuzz. There are mainly two reasons:

  1. It is MIT licensed so in contrast to FuzzyWuzzy it can be used in projects where you do not want to adopt the GPL License
  2. While FuzzyWuzzy only used python-Levenshtein for the levenshtein calculations and implements the other functionalities in Python, RapidFuzz's implementation is mostly written in C++ and on Top of this comes with a lot of Algorithmic improvements. This results in a 5-300x Speedup in String Matching.

Installation

RapidFuzz can be installed using pip

$ pip install rapidfuzz

it requires Python 3.5 or later and a C++ Compiler with C++17 support, which should be given on all current systems

Usage

> from rapidfuzz import fuzz
> from rapidfuzz import process

Simple Ratio

Partial Ratio

Token Sort Ratio

Token Set Ratio

Process

Roadmap

  • build python wheels using manylinux container in CI
  • add more Unit tests and run them in CI
  • add more Benchmarks and run them in CI

License

RapidFuzz is licensed under the MIT license since we believe that everyone should be able to use it without being forced to adopt our license. Thats why the library is based on an older version of fuzzywuzzy that was MIT licensed aswell. A Fork of this old version of fuzzywuzzy can be found here.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rapidfuzz-0.0.7.tar.gz (11.4 kB view details)

Uploaded Source

File details

Details for the file rapidfuzz-0.0.7.tar.gz.

File metadata

  • Download URL: rapidfuzz-0.0.7.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.6

File hashes

Hashes for rapidfuzz-0.0.7.tar.gz
Algorithm Hash digest
SHA256 55c140fc758d1453a02b5b4ef1e8d5bfcbbb3d103faf1ee599511a9648540bc8
MD5 638d01e3225ef8b8074cb2870d4b650e
BLAKE2b-256 6b825a1258c5ee30aff69e52c82c0b48993ad50f6e76a422cd2c4fc4b078b054

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page