No project description provided
Project description
ffzf
Fast fuzzy string matching for Python.
Installation
pip install ffzf
Usage
# Find closest string matching
from ffzf import closest
best_match = closest("hello", ["harps", "apples", "jello"])
# Find n best matches
from ffzf import n_closest
best_matches = n_closest("hello", ["harps", "apples", "jello"], 2)
from ffzf import JAROWINKLER
# Specify an algorithm (default is levenshtein distance)
best_match = closest("hello", ["harps", "apples", "jello"], algorithm=JAROWINKLER)
# Call algorithm directly
from ffzf import levenshtein_distance
dist = levenshtein_distance("hello", "jello")
# Case sensitive comparison (default is case insensitive)
dist = levenshtein_distance("Hello", "hello", case_sensitive=True)
best_match = closest("Hello", ["harps", "apples", "jello"], case_sensitive=True)
Supported Algorithms
- Levenshtein Distance (default)
- Jaro Similarity ("JARO")
- Jaro-Winkler Similarity ("JAROWINKLER")
- Hamming Distance ("HAMMING")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ffzf-0.2.3.tar.gz
(5.6 kB
view hashes)
Built Distributions
ffzf-0.2.3-cp310-none-win_amd64.whl
(171.4 kB
view hashes)
ffzf-0.2.3-cp39-none-win_amd64.whl
(171.4 kB
view hashes)
ffzf-0.2.3-cp38-none-win_amd64.whl
(171.4 kB
view hashes)
ffzf-0.2.3-cp37-none-win_amd64.whl
(171.3 kB
view hashes)
Close
Hashes for ffzf-0.2.3-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a08f223bec3a90316ec83501b67bb1ec7692cbde03b5318bc59747b261092512 |
|
MD5 | 47a9eb86176a5aaf440ce5058e7f3fdf |
|
BLAKE2b-256 | e18952b164a23d01969228937cafe554f45561dbcf77a621c3a1f318be94ad8e |
Close
Hashes for ffzf-0.2.3-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f370f35a0f62e45f9d42ecd21b1194c2d1dcfd0368323d3ae8953ad5a8034f8a |
|
MD5 | f10a9e32da1e9b1890fab0a9a904ec70 |
|
BLAKE2b-256 | 1887c8060270c2cc9dd9891ad1e5330b7015da6bef54eb872e20c930df29a383 |
Close
Hashes for ffzf-0.2.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3f42961a70b550bbe56fec21d4bc3018e9c46157042179321914bbad4c04630 |
|
MD5 | ba7fbbf047d70d14363d8494ea521738 |
|
BLAKE2b-256 | 7f8b445581bc416507caacdbafc8920048d60872cff33788a10d8840dd427990 |
Close
Hashes for ffzf-0.2.3-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48915693938ef4f9d5c5fca446487c9449009ee32dec9c32b0a88972f556a0f9 |
|
MD5 | 16f13742a18726184fcb4d9dba747ffe |
|
BLAKE2b-256 | 24bfea1f6c4653b7e858831557c87f8355a2d6e12e5c71443a0b217a7a45037e |
Close
Hashes for ffzf-0.2.3-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2f71868e558b426d1da30fa384595b9e2dfc5aca34b93f16252a688db8793ba |
|
MD5 | 039d11b6afa4bdb69d3ead25d7aac06a |
|
BLAKE2b-256 | 6dc568df18aa8471382c3ee801de370c8c4d2c1923203c2472d1f52eac65adc4 |
Close
Hashes for ffzf-0.2.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f14fba7e7c7068ab1c77fe43980be7a88e16c266825ff3c0298578284b4e33bb |
|
MD5 | 1028330478cc9e59e1d40e39996cacb3 |
|
BLAKE2b-256 | 505f525d6ff36ff79ea7ce31c5b39d8658b54f3032bcdeb641b367981136d2cd |
Close
Hashes for ffzf-0.2.3-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5e844b6bdc0573c793fca09610b5e4c704da87d89030f6f154571da0fb3798d |
|
MD5 | 89be2c4dc46679dd650034721674f3cb |
|
BLAKE2b-256 | 8055466273d29b3865e27b934cca4d3cab95a277a98ac9eb58297b6c80355d26 |
Close
Hashes for ffzf-0.2.3-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 719eb6f2546f1c652b3cd659f8e87bd8c5ca1c99b2b9ce73b01447c42ef4d69b |
|
MD5 | 6ed9df930de44f327114b19e3d521b28 |
|
BLAKE2b-256 | 4fcf560add1d854a2193fa03f9575626bddaaf6d8e25c1d696a2d9a78e0b1a8f |
Close
Hashes for ffzf-0.2.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6edb28a330bc300d6ee751d64a11ece94c8f09993c83704ce28aef334fd2ea19 |
|
MD5 | bd83c5c12865aa582c518d577047fc03 |
|
BLAKE2b-256 | 9e143dd4fe68362244b783f59eab6ade3a6c19645a4451b05b508db6e4b58d60 |
Close
Hashes for ffzf-0.2.3-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 943dc023d82135fc0be48be80d912ee9d381c8a8fdeb215c355472b0a3064891 |
|
MD5 | cd63c201dc24be62efb6de3ce457c206 |
|
BLAKE2b-256 | b9f47ca0d3f641531e74ed8d7bd79c7d9df6e225f54098af1c8359b3ad202424 |
Close
Hashes for ffzf-0.2.3-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a393f327b93dfaa8a24508123a00d517111d7f3634841f1874b46088a0eeefc7 |
|
MD5 | 21b7e55bc2a42bae7f7abb14dcecb40d |
|
BLAKE2b-256 | 2709e79c910ab3df8ddbef28159b71d327f2884f5e48452c9f9e5e53faf4a3be |
Close
Hashes for ffzf-0.2.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0b7eebaeaccc859f47aea6dea54e01e09941306eaf7620a8f26d2a14e2ff5a0 |
|
MD5 | 04a6bb94371e97cbf102b0eaf502adf7 |
|
BLAKE2b-256 | 172fdb1b6124937998b640c47a7608c7556d217c9ea14708c50d48fb5a595dac |
Close
Hashes for ffzf-0.2.3-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b959ecfd86a9df576fc74e242aaa4190f395c2bd8b06bca4b0211da295317354 |
|
MD5 | 36d81b8bf5a0e1290637e7c96bf8b9ba |
|
BLAKE2b-256 | 034a41c4c7750f5ec93959d313618c94dee48c61f0f1b3425571715bb77833a6 |
Close
Hashes for ffzf-0.2.3-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e39bec9e145ba8c02a774b8c8c8062324e4f5ec47ba98f4701d2aeb2d751246 |
|
MD5 | 2fbd6e7d1bf3af6b76ad2f011aa26c3d |
|
BLAKE2b-256 | ae0e7c279cfec7fc561a74258aa8c7669f3f1afe685860334b2f92868d8db319 |