rapid fuzzy string matching
Project description
Rapid fuzzy string matching in Python and C++ using the Levenshtein Distance
Description • Installation • Usage • License
Description
RapidFuzz is a fast string matching library for Python and C++, which is using the string similarity calculations from FuzzyWuzzy. However there are two aspects that set RapidFuzz apart from FuzzyWuzzy:
- It is MIT licensed so it can be used whichever License you might want to choose for your project, while your forced to adopt the GPLv2 license when using FuzzyWuzzy
- It is mostly written in C++ and on top of this comes with a lot of Algorithmic improvements to make string matching even faster, while still providing the same results. These changes result in a 5-100x Speedup in String Matching. More details on benchmark results can be found here
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
> fuzz.ratio("this is a test", "this is a test!")
96.55171966552734
Partial Ratio
> fuzz.partial_ratio("this is a test", "this is a test!")
100.0
Token Sort Ratio
> fuzz.ratio("fuzzy wuzzy was a bear", "wuzzy fuzzy was a bear")
90.90908813476562
> fuzz.token_sort_ratio("fuzzy wuzzy was a bear", "wuzzy fuzzy was a bear")
100.0
Token Set Ratio
> fuzz.token_sort_ratio("fuzzy was a bear", "fuzzy fuzzy was a bear")
83.8709716796875
> fuzz.token_set_ratio("fuzzy was a bear", "fuzzy fuzzy was a bear")
100.0
Process
> choices = ["Atlanta Falcons", "New York Jets", "New York Giants", "Dallas Cowboys"]
> process.extract("new york jets", choices, limit=2)
[('new york jets', 100), ('new york giants', 78.57142639160156)]
> process.extractOne("cowboys", choices)
("dallas cowboys", 90)
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
Built Distributions
File details
Details for the file rapidfuzz-0.2.2.tar.gz
.
File metadata
- Download URL: rapidfuzz-0.2.2.tar.gz
- Upload date:
- Size: 13.7 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | db0cd3b4cc024075362be92e247c0c2c7998bdbf9f775de4601717ba70b1bed9 |
|
MD5 | 1e0598aa978e4b714644bb714c9ca071 |
|
BLAKE2b-256 | 7bda4d8e18ca9b09a118876760fbde340555331769ad77ecc2d6bc1539e510a0 |
File details
Details for the file rapidfuzz-0.2.2-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 72.5 kB
- Tags: CPython 3.8, Windows x86-64
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 199c5a2580663f9dc3a27b7a3dbd44dc9d8909db1b1499c2cf438ba957ffedef |
|
MD5 | 9a706bfe8b3312e8253726297ed25fb5 |
|
BLAKE2b-256 | 03bdf0c30960b2fee58896d20626c7e7f810d5286e8f997c7faeb845626b2a8e |
File details
Details for the file rapidfuzz-0.2.2-cp38-cp38-win32.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp38-cp38-win32.whl
- Upload date:
- Size: 62.6 kB
- Tags: CPython 3.8, Windows x86
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cdd73b1562dcdf5dbf883b23de3d7fcdb6d63876ee1ef645901a595f92e7460 |
|
MD5 | ce09350ce5b9cb54bd2d86a74dd788f3 |
|
BLAKE2b-256 | 845eea5491dda8903d8d1a968b9a3f1da830b682a5c48876a61a23ec258b1394 |
File details
Details for the file rapidfuzz-0.2.2-cp38-cp38-manylinux2010_x86_64.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp38-cp38-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9c46d6e38639b64d6445425f047933154b29f4d266701f6e3e78002c26d7255 |
|
MD5 | 1c6fcf9583ecba5c8325e2c9fb1097c9 |
|
BLAKE2b-256 | 1e89d7bdf4a11dc9d272be4d815fff0641dbc50efe6258faeb2a763390ddba7b |
File details
Details for the file rapidfuzz-0.2.2-cp38-cp38-manylinux2010_i686.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp38-cp38-manylinux2010_i686.whl
- Upload date:
- Size: 903.0 kB
- Tags: CPython 3.8, manylinux: glibc 2.12+ i686
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35beee772d97d550c743e4cbe603cbd0152684683c4cbec9c09a114bba355fd1 |
|
MD5 | f6cf06a4e18cce723a2e5bbf8f98660b |
|
BLAKE2b-256 | 9d247e84433cad5538c1af99596fcfab5ea0bd5a0e81035de8d63a4b565f16f3 |
File details
Details for the file rapidfuzz-0.2.2-cp38-cp38-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp38-cp38-macosx_10_15_x86_64.whl
- Upload date:
- Size: 80.6 kB
- Tags: CPython 3.8, macOS 10.15+ x86-64
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23714107826d827cb2e8f6025581a9b46ecf36752cdd613092420294197c2814 |
|
MD5 | 6d809b3669bb287e36410a968ceba0cb |
|
BLAKE2b-256 | 44eeb30c2caf4cf995dd8c5f26cebbbbc720de4f1c44a71ecb36b85f8f3082f7 |
File details
Details for the file rapidfuzz-0.2.2-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 72.7 kB
- Tags: CPython 3.7m, Windows x86-64
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecf713b1ec415e105c451fc6cd3b83f6591587b7a8d51540c3a0ab02231cdab4 |
|
MD5 | 54e89aadc8ec10328d55022bc4a366f6 |
|
BLAKE2b-256 | 256cc6033d2e48341773d24af7006eff6b0442de17ca2dbc10322c93a867c2bd |
File details
Details for the file rapidfuzz-0.2.2-cp37-cp37m-win32.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp37-cp37m-win32.whl
- Upload date:
- Size: 63.6 kB
- Tags: CPython 3.7m, Windows x86
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b49daa705420b2b64f81c1a917be18450353ac62173580dbd5f3a832e8306e0e |
|
MD5 | 82ebdf02363cd16129d1afb68d878821 |
|
BLAKE2b-256 | dcdfd861772b6eb0f2b495708c30ce2cd2e0c80cbc6a14ece033f43c00944c8f |
File details
Details for the file rapidfuzz-0.2.2-cp37-cp37m-manylinux2010_x86_64.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp37-cp37m-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ca36916b82262dcb1d2697a9ce831be09035ae4a67fa312a0f6b38c05c1aa08 |
|
MD5 | f338a3f1d5dc5d44f32b589b92d68e74 |
|
BLAKE2b-256 | a8708446b614d26994bce545834f4bb4e0543855a065701ddb9097372e19cc88 |
File details
Details for the file rapidfuzz-0.2.2-cp37-cp37m-manylinux2010_i686.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp37-cp37m-manylinux2010_i686.whl
- Upload date:
- Size: 903.1 kB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ i686
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 198d47300d1cc2bc8b7fd810f71fd5c01309a59bb5a5803575247752389fa74f |
|
MD5 | e1747071236a7af90e9cb416683c3dad |
|
BLAKE2b-256 | d1461530bb9416409f544702b0375400b9e84a42995862c0812450f37480adab |
File details
Details for the file rapidfuzz-0.2.2-cp37-cp37m-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp37-cp37m-macosx_10_15_x86_64.whl
- Upload date:
- Size: 79.9 kB
- Tags: CPython 3.7m, macOS 10.15+ x86-64
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d637f82f4c91e13bd6894f284586da721a355df57321d80547aab168d58414ad |
|
MD5 | fe8a2174d1e783250e498ecc345965a9 |
|
BLAKE2b-256 | 8de60afa1fa90e13614c9d2cfb3ab8a1da8425a02f6573987909d83940688157 |
File details
Details for the file rapidfuzz-0.2.2-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 72.7 kB
- Tags: CPython 3.6m, Windows x86-64
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 018bbf84833bd87512156bf47b4dbf2e333fe2f509161d13c40adc503f2bb6bf |
|
MD5 | 846074a88318711b837cee9728226026 |
|
BLAKE2b-256 | 9c4e2fb80e851fa29ec76e530df2cf792403138435f755041ba82eb6986d6981 |
File details
Details for the file rapidfuzz-0.2.2-cp36-cp36m-win32.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp36-cp36m-win32.whl
- Upload date:
- Size: 63.6 kB
- Tags: CPython 3.6m, Windows x86
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f877300e3a158763728a47b668ee3938fe4c97507a6f3d209228395cf1c1d048 |
|
MD5 | 8ec040095d6403aae1eebcb98c835113 |
|
BLAKE2b-256 | c20d479c2db5b4db09f2b34432adf550c0768b2b313817b57d1e4892d02b6dd6 |
File details
Details for the file rapidfuzz-0.2.2-cp36-cp36m-manylinux2010_x86_64.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp36-cp36m-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e0228822b0e8e6122587577e52e031f0bb7e99d1a191324173c75fd99848392 |
|
MD5 | 1fe0c76752896b177f77336c1563a38b |
|
BLAKE2b-256 | 54a23423ed83f94cd922e50efacdca4ff9edbbeb283370f918a8d9176afcb52d |
File details
Details for the file rapidfuzz-0.2.2-cp36-cp36m-manylinux2010_i686.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp36-cp36m-manylinux2010_i686.whl
- Upload date:
- Size: 901.9 kB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ i686
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae8c1d019b2a9bdc4a37f116f21c5b343fd17cd5786ac67d873da6bbb76910a9 |
|
MD5 | 406a24305f4db56e9d8ba9928ed21158 |
|
BLAKE2b-256 | 4d7884ecf1798d266b99c35d208f6eba3b02474ec0d25e1f6ec3489bc7dffa7e |
File details
Details for the file rapidfuzz-0.2.2-cp36-cp36m-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp36-cp36m-macosx_10_15_x86_64.whl
- Upload date:
- Size: 79.8 kB
- Tags: CPython 3.6m, macOS 10.15+ x86-64
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 864867ea0af608b2ca68374eb925f974b9f554c5b3b7b683ab314cc22e1a3e79 |
|
MD5 | 7d79872eb6ab1b30221c74654180eca2 |
|
BLAKE2b-256 | 10eb6a98dd542e0a20ec2d8fdf9cd6ec1f0157e6e356f0b9f3cb02cec1998390 |
File details
Details for the file rapidfuzz-0.2.2-cp35-cp35m-win_amd64.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp35-cp35m-win_amd64.whl
- Upload date:
- Size: 72.7 kB
- Tags: CPython 3.5m, Windows x86-64
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29e7c3e332ee18a91a44f55a2fd735de5a91795f98f1c5b7fadbe47fa1465dff |
|
MD5 | 862ef3f61cb68db89538b7544202df50 |
|
BLAKE2b-256 | d262f9ce6b45433c795a91a1a750189e9b34d6e13f3d1aec96d7f71db3e30ab3 |
File details
Details for the file rapidfuzz-0.2.2-cp35-cp35m-win32.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp35-cp35m-win32.whl
- Upload date:
- Size: 63.6 kB
- Tags: CPython 3.5m, Windows x86
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca3315af586434aee363200aaeb64b5dbe249f5f64c277f673d7a76a4b258a8f |
|
MD5 | bd87f20401a1f05114a8e4a5bb096b0c |
|
BLAKE2b-256 | cd8742871dc7f80b9d8c5076e82c91aa1015346809f8a929cf4b2aa2ff72ee8d |
File details
Details for the file rapidfuzz-0.2.2-cp35-cp35m-manylinux2010_x86_64.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp35-cp35m-manylinux2010_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3ba8fe8b17a8eca5cbd0c4509dd26c8fa3c348aea86d5f6e56a2469527a1d33 |
|
MD5 | 3038a742756b764c80686db657f05323 |
|
BLAKE2b-256 | 088a0e51fd4caef1977fa5ca2fabdaac3ca95c769d51b60280c3c74994c82ca7 |
File details
Details for the file rapidfuzz-0.2.2-cp35-cp35m-manylinux2010_i686.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp35-cp35m-manylinux2010_i686.whl
- Upload date:
- Size: 901.6 kB
- Tags: CPython 3.5m, manylinux: glibc 2.12+ i686
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a352b53325a0fc47c86c0d6c40d0df5cb7777b8ea1cbde21ad68c68d1dc9dec5 |
|
MD5 | 2e567d3be0c1a5ab2048d534502025bc |
|
BLAKE2b-256 | b6c1e266de0baa97714745659f13d4cd29a72dd34af92fcb0156c4e52948e671 |
File details
Details for the file rapidfuzz-0.2.2-cp35-cp35m-macosx_10_15_x86_64.whl
.
File metadata
- Download URL: rapidfuzz-0.2.2-cp35-cp35m-macosx_10_15_x86_64.whl
- Upload date:
- Size: 77.8 kB
- Tags: CPython 3.5m, macOS 10.15+ x86-64
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2914bda627514d02557f763e72c5935d5d47df574be325c97131065f54854e0d |
|
MD5 | 8ac6db72e62eeee86eec7beeb7ca863c |
|
BLAKE2b-256 | 6719e809d8cfe0013d6b7fb79013126a8003ce1d92a3aa0bcf9e9c6ec31466fb |