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.5.tar.gz
(8.2 kB
view hashes)
Built Distributions
ffzf-0.2.5-cp310-none-win_amd64.whl
(154.0 kB
view hashes)
ffzf-0.2.5-cp39-none-win_amd64.whl
(153.9 kB
view hashes)
ffzf-0.2.5-cp38-none-win_amd64.whl
(153.9 kB
view hashes)
ffzf-0.2.5-cp37-none-win_amd64.whl
(153.9 kB
view hashes)
Close
Hashes for ffzf-0.2.5-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b091e5ffd5e711413e3a7eb99b99d940687c9c8a23da15ec9a963594267968b4 |
|
MD5 | e689631a865ad864cf7ec8be7faac14d |
|
BLAKE2b-256 | f980e6b5c9b56e3871769f039010201c22d83ec60548a46665e092a571a01c00 |
Close
Hashes for ffzf-0.2.5-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00d74138cf45c807b0fdf5ca5c2ceb84c495ff304f78ad19948b085fc30a5f5d |
|
MD5 | 015a0ad887e1e515773b2b05e35f3f1b |
|
BLAKE2b-256 | 68c44c585f2acda91f85f07c26db9e651bc92c839ee0d636d8e4b99360d04965 |
Close
Hashes for ffzf-0.2.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 313f987e0d71c1729b5f610517156d683099d4c88e09d03453173b996713d693 |
|
MD5 | c1acb40326d817e6f3f2807ba51e23fa |
|
BLAKE2b-256 | f0db13244d2a6cc77e68a5ce60ddd2dbe00d4b41d99c88bbb66b1907ff26a160 |
Close
Hashes for ffzf-0.2.5-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebc8910df451e20a6f18260ceade157c82184fa54eb8a69ba5d7329535d2e077 |
|
MD5 | 4250b6fd99151dbfb601cd6c15d5da70 |
|
BLAKE2b-256 | 58a75d156d133bbc9b39435b6020a34de22ccd3e4efecf5e9f0a22b046fa895f |
Close
Hashes for ffzf-0.2.5-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f758521e1e196bf22d2bf95fa7741f0c86fbe4a109196654c98000acecc6468 |
|
MD5 | 0520d5bb06e61320d05fcff2c0dcfd96 |
|
BLAKE2b-256 | 667a7e44e8ce3545911995f39443c77c30706e4b72b28d7cab1f77493f64db0f |
Close
Hashes for ffzf-0.2.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05eaee12c4e8cbfa68235bbe741be574810ec8b4fb2a2660ba6624b3eea16a2a |
|
MD5 | d2b275fe6b62d6db6a378361abae16f5 |
|
BLAKE2b-256 | a7061cb7202306ce0405535dded2eb7afd8685b30a2efd15ae234fdf8b7c359a |
Close
Hashes for ffzf-0.2.5-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f214c98f9097c993738c93b5df9aa55e812fbb25f4c5f43e49631860d3ba0b0 |
|
MD5 | 8136a07c6dad90d785103f857d0d0cb9 |
|
BLAKE2b-256 | dcd9209f39ff0e611b24b74462115dce98023ec9c6dd482c9af4e34d9505d515 |
Close
Hashes for ffzf-0.2.5-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cd38dda3eac51a4376c6d8e85f6aa645d5ca7afb17e24945938705ba87735e7 |
|
MD5 | b95d9beb016646e99b55e9f3243be8f4 |
|
BLAKE2b-256 | 0e4a40d10c2d066146b061c31f3608015a7d88a2c10dc753841534b3b0e93556 |
Close
Hashes for ffzf-0.2.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52ff2a2d51b8d2c8c3ea6d5f3d86444b443ae1fba7bcb9546616e662035c8c5a |
|
MD5 | 7260a88dec21871e189ba53442fd24f3 |
|
BLAKE2b-256 | aa03f4a39b7da55a5a98ee33524d670fa46c89251a2923ce5051447c69dd19bc |
Close
Hashes for ffzf-0.2.5-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28534f2768c8f386c79f42a930996e30da3229e7f2f0e3d268af26bb97d4e7d9 |
|
MD5 | 2e305964353ed9bf2463880483fee049 |
|
BLAKE2b-256 | 7a345c27c315fe95f299a9fd61bef8e883efff265ee44c35f4dc7fa774c2d8c9 |
Close
Hashes for ffzf-0.2.5-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f99fb4ed2d467e88c20a1cb964fa938d63336de9f0e44ab976f4b4c36228fece |
|
MD5 | 1b8c0e469d0dd2b08ed983d0acbf73b4 |
|
BLAKE2b-256 | 31a8d0fe3abc3e21a6bed44e880d8478d1c0308d76bdb8f2fe118ca8a3a311d3 |
Close
Hashes for ffzf-0.2.5-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6d77dd620cb9fdcbdf65288c92d7daefca52a28e65dedf2eef3beeaf5fa121b |
|
MD5 | 950bc5e9f929dd554ac19cca15f92bbf |
|
BLAKE2b-256 | 87639d5960e71ee127c2c24e140eb58e640a80aa3d72042e9a98b4e5d78737c5 |
Close
Hashes for ffzf-0.2.5-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8ffc429d7e24d95013284e223689ca3ac3b6e4ab09e818eeac26ff8f19618d4 |
|
MD5 | 8bcbbfe9e5f2ba2ad5c9bd41c540a308 |
|
BLAKE2b-256 | 37655217e0a2cfcd36df46d84d40e8574769cadec8f0f9273f77f95560adc700 |
Close
Hashes for ffzf-0.2.5-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bb99b89f0292977bd4a202c42efc8e614bfae0090a0a3c3d7ded037d034524b |
|
MD5 | 83133727649d16b0a1f9c666b94764b8 |
|
BLAKE2b-256 | ea8c0b5bb8a48a5e3b51f015092bfa1847d7dc8e5e4cd380cf0c67f80a1b6133 |