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)
# Remove whitespace (default is to keep the whitespace in strings)
dist = levenshtein_distance("hello world", "helloworld", remove_whitespace=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.4.tar.gz
(7.7 kB
view hashes)
Built Distributions
ffzf-0.2.4-cp310-none-win_amd64.whl
(202.4 kB
view hashes)
ffzf-0.2.4-cp39-none-win_amd64.whl
(202.4 kB
view hashes)
ffzf-0.2.4-cp38-none-win_amd64.whl
(202.4 kB
view hashes)
ffzf-0.2.4-cp37-none-win_amd64.whl
(202.2 kB
view hashes)
Close
Hashes for ffzf-0.2.4-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abfdcb1248d5a5cfb5b30baf62f7c8c80773ac3e582a49cbe541ae24d2869cfe |
|
MD5 | d3cdb0a4baccd3ae10e50c58c3266174 |
|
BLAKE2b-256 | 3dfc3c2b759a041b84295b6a1fa9847b6217b7d583fb60a467ee516be8c7e762 |
Close
Hashes for ffzf-0.2.4-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c17fd0b82685ea07a18268eb05aa6ea8c0eed502f1c0b62573b59512ba386a61 |
|
MD5 | 1962adc8d25ae3107413acd69753dc2d |
|
BLAKE2b-256 | f07ca4741e9884d32f89fb24ce1b77f098116f61499b4c9a9257fa4e2a754338 |
Close
Hashes for ffzf-0.2.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb3ef5ce33d3c20d5f11cfc42afdbd40f54a3d27404573df08b922177e635073 |
|
MD5 | d8e5633efa51987f16a6e9c94f413514 |
|
BLAKE2b-256 | 1068c9779227fec2dd4b4bca231ecf35ea82b88d76bf0a470d14a67fc3e9789e |
Close
Hashes for ffzf-0.2.4-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c85622ba5d70a6b68aa8ed7aa4fab2d10190b4d5856fb038705684b6146ff4bb |
|
MD5 | 44c5d65337da5861711848a495f9392c |
|
BLAKE2b-256 | 6b6604254c915f379d5fd679d14839ce6db436e05eaff1b9a02955a07a135c63 |
Close
Hashes for ffzf-0.2.4-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ba1a008a0088ba53464225da2ca43b9c311f268637b991c28dfefb4d914469e |
|
MD5 | fb7540dfdd14ad6141140b794a19fed5 |
|
BLAKE2b-256 | 5169ca825d73f0a91ffd2e10ea0a59d844059a99edeb7572718fe0abe058ba2e |
Close
Hashes for ffzf-0.2.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d1dacb0a8c9af782499bc05c4601a36b72a12c72736caae298c24ff9175256f |
|
MD5 | fc8ee633a94468a5f7e95f1ceeb8a0ba |
|
BLAKE2b-256 | b35d90a08961e28f7679e9397be24bb31092c08e07a820edd603c1713e281617 |
Close
Hashes for ffzf-0.2.4-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04a8c15ff7489651a6ed24bd428eb0c5c003ed553c06f50d6835dc955d533bf9 |
|
MD5 | ff7e17106430eba0ba567bc6b4c57a83 |
|
BLAKE2b-256 | 7bc8eddf219b576c3ee0f246b6a96a769fd04001999fb11b2735dcda7dcc263c |
Close
Hashes for ffzf-0.2.4-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e44b5fe48e448e27c87f623f2b485a5f385340772336c66793525cefc41d4290 |
|
MD5 | 7d18d820f55fa754c07a16a7c9ea58be |
|
BLAKE2b-256 | b0d2097ed3ef4f76e88ae4dea646d6bb7797420fe119a5a1d9777df7451da519 |
Close
Hashes for ffzf-0.2.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a4a9bb2af360cc0feb2aef4531ce990d5ddd12b7dc9d87909cecb84b8d59d2d |
|
MD5 | 04dc5455994a27bc6277202c4c6f6ca8 |
|
BLAKE2b-256 | 369e9ed4c74352ebfba7a6d63ae7e971ba3da5fe33438ca74ace3f7a49b9a42a |
Close
Hashes for ffzf-0.2.4-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85e87b291ae3da02388c6611b2117bd4484342c0e8879378b9f493a999f9cf1d |
|
MD5 | d1000f1a120fa2428aa6dcf97bc5e022 |
|
BLAKE2b-256 | 6268b2ebf8acdd05bfd1b7c19929fbbef7d7c2d1d477a736097d7b93a7a852b0 |
Close
Hashes for ffzf-0.2.4-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61b5eeecc4a9aab116bb66a7979176f5bb44ae60f4f441707997d3e1a8cd47cc |
|
MD5 | 810ee9271706291c58ac35bb9477ee1e |
|
BLAKE2b-256 | de3024517a4c9c45db7da853f4cf1e387e7ea105fe07f592722d2ca48664597e |
Close
Hashes for ffzf-0.2.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e0aeac6f4d0d699fedff521f9bda093ba519b48428ad20d206e3d1a40943591 |
|
MD5 | eed6e7e47fa03ad6c7067be1adaa809a |
|
BLAKE2b-256 | fa1ae510b76052c4fa5043b8cc2f7859dd02f2db0f2883530c599adb9fbffab3 |
Close
Hashes for ffzf-0.2.4-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 378a8c6baac87552ec6f972736b9375ee66d4253bdb50b3bd0a4087412288742 |
|
MD5 | d8aedb6adda823eeb107e0aec64d6071 |
|
BLAKE2b-256 | 9d652e90aed2e7ecbb139cab1c6635f8d6065dc0003d6dabc92e093d73de1409 |
Close
Hashes for ffzf-0.2.4-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4abfba33536f0678c33ac7a1888f22f86595ad0b4528889d3ec61cc2f0e3d5a1 |
|
MD5 | 994ba13bed7d67d113d9725db4464e15 |
|
BLAKE2b-256 | 4c646e63319491da519df369da1919593726041c08ede44623d4266780da5902 |