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)
# Return scores with closest results
from ffzf import n_closest_with_score
best_matches = n_closest_with_score("hello", ["harps", "apples", "jello"], 2)
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
Built Distributions
File details
Details for the file ffzf-0.2.6.tar.gz
.
File metadata
- Download URL: ffzf-0.2.6.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77784c703b5aa5f4fd78b6f3ff26c6eaa76596593ceeb9484f08a9db20542fff |
|
MD5 | b987246e172ae30371138321a140ad69 |
|
BLAKE2b-256 | 46d0672522dfb3ec3de18ad7a7baaa71379408e85e7c0113e6106e627558f750 |
File details
Details for the file ffzf-0.2.6-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: ffzf-0.2.6-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 594.0 kB
- Tags: PyPy, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d34e0e0498715b1c6fbd95b86b782dbe8f2b256e85f48ce2e05e3d2b81d553ac |
|
MD5 | c93c2d1fab83d577fd4be672a0d087f0 |
|
BLAKE2b-256 | b059539afdab0cb5d2a5452d6c92ea13c3dfa9612ba36680e28ac824c9f163c4 |
File details
Details for the file ffzf-0.2.6-cp310-none-win_amd64.whl
.
File metadata
- Download URL: ffzf-0.2.6-cp310-none-win_amd64.whl
- Upload date:
- Size: 159.3 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccb3c6fcb4e9a5e7fa204840d937b40bdd8ae690d7736841c1aa54f483e00670 |
|
MD5 | 184795a6c7a3119bd022bef555b0c690 |
|
BLAKE2b-256 | 7fe1b7d72e52360d6be656f773b484f2e7f084edecb06baa24382bf1e9ce2e92 |
File details
Details for the file ffzf-0.2.6-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: ffzf-0.2.6-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 593.9 kB
- Tags: CPython 3.10, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4600114c5ed5715f952add697f43425f20f777924890ec737acc5220eb21bdf |
|
MD5 | 8858d1ef7145d88922ac19e4279a2d37 |
|
BLAKE2b-256 | 33f219e42e62a10af95fb2f5e633cd34c5922f3954ca5738154b8ca564b6c7cc |
File details
Details for the file ffzf-0.2.6-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
.
File metadata
- Download URL: ffzf-0.2.6-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 494.8 kB
- Tags: CPython 3.10, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 183da36886ba68e74ba9e7ce565a2ebcb5b8ef864a1574b71fd5395978d923b1 |
|
MD5 | 22347ecdcfec2c610e2e2fb8e54d9fa5 |
|
BLAKE2b-256 | 222e9eb901c015bed448b3bf317a3f76dead9b38a9f269c150b7fd3aafb4246c |
File details
Details for the file ffzf-0.2.6-cp39-none-win_amd64.whl
.
File metadata
- Download URL: ffzf-0.2.6-cp39-none-win_amd64.whl
- Upload date:
- Size: 159.3 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0f7f0f5652f193bcd93cb1fb7b1d8fe2bd817bd9274e67fe1b9f71ea9f54aca |
|
MD5 | ae6ee2003074144300fa3746d6e5e21d |
|
BLAKE2b-256 | 57f04334b5a7209829f5a3fe4f876843dac38816db1f411c8c5c1cd8c9baebc3 |
File details
Details for the file ffzf-0.2.6-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: ffzf-0.2.6-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 593.9 kB
- Tags: CPython 3.9, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e7d178935d2c92ace95135df87026a0c8be082954a9b7e46a88cd51447cccbb |
|
MD5 | 8a3d3ab80c039b2efc5fbb9c53a6fbc1 |
|
BLAKE2b-256 | 2ed7230fe3d2f0a883886951d3b6ec8ee5b5960c6f63874e70968af8b464566e |
File details
Details for the file ffzf-0.2.6-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
.
File metadata
- Download URL: ffzf-0.2.6-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 494.7 kB
- Tags: CPython 3.9, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3ef2a1c0087970bbdb05921df58b6610bd59133522c38cab748e83d4b0cd7b3 |
|
MD5 | 2156199fec7b493be53edb9435e9f498 |
|
BLAKE2b-256 | f9547748dddb47289932fab5418ab253234e10f0c532097fc43e257284774eb4 |
File details
Details for the file ffzf-0.2.6-cp38-none-win_amd64.whl
.
File metadata
- Download URL: ffzf-0.2.6-cp38-none-win_amd64.whl
- Upload date:
- Size: 159.3 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c48439feb67e16a58663d3db6a96c6da727bb99015d628df64a5edb7bd09dbd |
|
MD5 | b657a4d4a8e43cc9b3ebba085baf923a |
|
BLAKE2b-256 | 2b86ae9a2a04ee03ffff380eb5903d9172e7223ee0dcc34284f1bf1cd76cc267 |
File details
Details for the file ffzf-0.2.6-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: ffzf-0.2.6-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 593.9 kB
- Tags: CPython 3.8, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8af41c878a933adc6577b95ebafe1fcebce94a15f565cbf08a34adfb00354752 |
|
MD5 | b601b3c37cf1a2b20469b50cf323e56d |
|
BLAKE2b-256 | d098cd0f1e6f69c20e255e7b3424b39393d5375223d8fdbb3c2d6da4bd46732c |
File details
Details for the file ffzf-0.2.6-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
.
File metadata
- Download URL: ffzf-0.2.6-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 494.7 kB
- Tags: CPython 3.8, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76106c8e2bcc4a1f4bb4a1755740c4f4465535f1cf62a54cb3f6ef143d3faba9 |
|
MD5 | c8f002903aa7cc87086905a4e92b8840 |
|
BLAKE2b-256 | aa66287a3155a0a3fa8d164a69598ad963d910087efec9c30e2147a29638fba3 |
File details
Details for the file ffzf-0.2.6-cp37-none-win_amd64.whl
.
File metadata
- Download URL: ffzf-0.2.6-cp37-none-win_amd64.whl
- Upload date:
- Size: 159.2 kB
- Tags: CPython 3.7, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76d8678c452520bc8473693af0cffd704388608a70c1965f7e942eb5c5df1bad |
|
MD5 | e525d67281bcdb1f0830f097e8eb7fad |
|
BLAKE2b-256 | b4e7cf3657993a6ae867d78d0882e48209166fdd6eae732a436cb456bf8dbfbb |
File details
Details for the file ffzf-0.2.6-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: ffzf-0.2.6-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 593.9 kB
- Tags: CPython 3.7m, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 698d690b9aeb2a526293efbe5eb569a0e7c842f10fb0c8c28b1b396e2dc8c7c2 |
|
MD5 | 07c768cdfccfeac73396658cfff1ffe8 |
|
BLAKE2b-256 | 0178c5cb75516c075976644e6aa9a0f668959b512ae3a552b5e42fe49deac29e |
File details
Details for the file ffzf-0.2.6-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
.
File metadata
- Download URL: ffzf-0.2.6-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 494.7 kB
- Tags: CPython 3.7m, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fea0d864fa59fbd24478171cf649c5743b56c9fb60c746fed49f0f97108d2b2 |
|
MD5 | 79df68a18e7afa2d647b096ed967db1f |
|
BLAKE2b-256 | c8459b08dc7bb090fca167340b815ed5c3e796f59e8c4dd5fd99f50eeab0d80f |
File details
Details for the file ffzf-0.2.6-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: ffzf-0.2.6-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 594.0 kB
- Tags: CPython 3.6m, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d1acebdf469692f6bb718a60cbeae847943efdfea9f61dffb53112a5f8cd4a8 |
|
MD5 | bb09e8d7c4c3dda86fc3828e70c26050 |
|
BLAKE2b-256 | abcf60ddb1a683053ab8759b821e240f291583a856f405699ff9fc58c3cf0fed |