A fuzzy finder in Python based on fzy
Project description
fzypy
A fuzzy finder in Python, based on fzy
Installation
pip install fzypy
To build manually:
git clone --recurse-submodules https://github.com/puilp0502/fzypy.git
cd fzypy
python setup.py install
Usage
Fuzzy searching:
from fzy import search
entries = [
"src/choices.c",
"src/choices.h",
"src/match.c",
"src/match.h",
]
search("s/c.c", entries)
# [('src/choices.c', 2.82), ('src/match.c', 1.8399999999999999)]
Search results are ordered in descending order, by score.
When running multiple searches against same set of candidates, use Choice object:
from fzy import Choice
entries = [
"src/choices.c",
"src/choices.h",
"src/match.c",
"src/match.h",
]
choicer = Choice()
for entry in entries:
choicer.add(entry)
choicer.search("s/c.c")
# [('src/choices.c', 2.82), ('src/match.c', 1.8399999999999999)]
choicer.search("s/m.c")
# [('src/match.c', 2.84)]
Calculating score:
from fzy import match
match("s/c", "src/choices.c")
# 1.8400000000000007
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 fzypy-0.0.2.tar.gz
.
File metadata
- Download URL: fzypy-0.0.2.tar.gz
- Upload date:
- Size: 85.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d94ee6353540f60788e4c9b060f758af4056522e5a16d7101ad43727accf624 |
|
MD5 | 164d5a9be6c92bdd362a2c5f8ba6ab7f |
|
BLAKE2b-256 | a75246f0712d27f0184de942b79d01b047c17e238840f4d6df5e8087fa31b448 |
File details
Details for the file fzypy-0.0.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 178.2 kB
- Tags: CPython 3.10, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b59ae01ce29355d4524634bbc7b341c5c30f06d5c822e2aad5eb4f51cd1eed42 |
|
MD5 | 162254997ecd1b9a4324fa89c4a5856a |
|
BLAKE2b-256 | 8a112906fa1679abae5cab4432d42c5d1f00d241a0169b0a83736b52bd783a8b |
File details
Details for the file fzypy-0.0.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 183.5 kB
- Tags: CPython 3.10, manylinux: glibc 2.12+ x86-64, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bd252313d46f5c288aa0ae3fd97bc1c4c98c86896ee29f05ad16e3c8af456d9 |
|
MD5 | afc19019e32d362b333aa507a1192e28 |
|
BLAKE2b-256 | 7a54a1ef38531c2f9fe02e04ff341c830a9d52b1db365a7a80845e8b38ad80d1 |
File details
Details for the file fzypy-0.0.2-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 176.4 kB
- Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db2bc4e6a529c05427abd6e1ae5026cf8c69a1535947211442feeb7b29107143 |
|
MD5 | 8d63e552d0ff4f21b97e24ba83142b5c |
|
BLAKE2b-256 | 6a67a412d4068a3d4fbaa96f24cdad5a98cd9dcb00ddf8d08b47a075f681837f |
File details
Details for the file fzypy-0.0.2-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 175.5 kB
- Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3daf1c7fe9e1ba049e2f727c93aea6d4eb0b61957389f53a430505e4f22a9ecd |
|
MD5 | 2b8024b1060f6c579fb4d3d8c68a3bce |
|
BLAKE2b-256 | a3e4aa9d7748c0e8127b070d7a4c09e63c30304cbe903c2445ae9eb1faf473d0 |
File details
Details for the file fzypy-0.0.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 139.8 kB
- Tags: CPython 3.9, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56303b8fa4868a89ea9b46d92cd6b4442a10a229ef5db4caaedfe991f406735a |
|
MD5 | e618fe166dd9f6535eeedd9e9caa50d8 |
|
BLAKE2b-256 | b4b3ab139eabbfb19f7768a0b61837f15811f412ba6c8410785881cb4d50721d |
File details
Details for the file fzypy-0.0.2-cp39-cp39-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp39-cp39-macosx_10_14_x86_64.whl
- Upload date:
- Size: 39.3 kB
- Tags: CPython 3.9, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 209551c24ce42d4d5dd3df5f76de0f8dc199d105ab9cd68149381204651dca95 |
|
MD5 | 9dadffa84970fc7fe58ba7dd04995444 |
|
BLAKE2b-256 | f59c008c5e38ec0a7cbf05abef860b385428a114162fff6f69338acf4bdda26b |
File details
Details for the file fzypy-0.0.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 183.9 kB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97a1b77a59afc77e6856ebe2c0b02982fbd4d8922f792985cc4eeab1471841b3 |
|
MD5 | a86316436eafdb970ac65544e0cb2c47 |
|
BLAKE2b-256 | 04fe2384db0499c3232f1040854563e64d90d5e7f78cdbf1e5878efd51b2c743 |
File details
Details for the file fzypy-0.0.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 183.2 kB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00403a7a8e2853d1ad9b58b20b9e1114ca63dfb3ca4e16e309c5e8540e82cec7 |
|
MD5 | 794faa9f8299ac62244fd3895b874e2f |
|
BLAKE2b-256 | 7a743783e1183ba05b2f492e653e7bc003d3dd317c1e1555e3e73abefae2b426 |
File details
Details for the file fzypy-0.0.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 146.5 kB
- Tags: CPython 3.8, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24149b4824b60d7aa8c19dd8ef9822cd4e52020d0f60d25d358e7645cd8771b6 |
|
MD5 | d3c96ef9bc60d761b8f4c80b7d75eacc |
|
BLAKE2b-256 | e896d0a67d1d60894404c87a760b6a36f4c33f322ceff9c47288c97e71d2424d |
File details
Details for the file fzypy-0.0.2-cp38-cp38-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp38-cp38-macosx_10_14_x86_64.whl
- Upload date:
- Size: 38.9 kB
- Tags: CPython 3.8, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0950882e904f9fcbddabcdb6159e09b03baea23c46a4de4aa5a479065f8b4b32 |
|
MD5 | 8cd38275a710d50e42eff28a4102f9bc |
|
BLAKE2b-256 | cdac300702c72bcdb2d90b2155b3cf4445802b1b2f7b8a08072ccb4e026a36f6 |
File details
Details for the file fzypy-0.0.2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 171.2 kB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac1e3bc01bf000fb6b6b40613674e7bfb27b274269049ecd3272d5b40b7fab34 |
|
MD5 | ab28b3e6b1b8089837437e073736f218 |
|
BLAKE2b-256 | ae316bb343e0d4527e28f6170c16e0e1dcb4fe7e19a2340e8644077573d8214c |
File details
Details for the file fzypy-0.0.2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 177.6 kB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 721e713491df52a3e9b62150d8c706eace1430e864d95ee804db0c06533800ed |
|
MD5 | faee6006c0b1bcc3af70afa511049bdb |
|
BLAKE2b-256 | 7de47d182c01a5a25df73a4addff06ee66e25b8170ce067dbf5b64858e273c44 |
File details
Details for the file fzypy-0.0.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 142.2 kB
- Tags: CPython 3.7m, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f78c69c915227b944eedbfa82d212f26a2816474526a15a918dff6e9959c95ef |
|
MD5 | 109298cca9dbc149a4703dea0e568ad2 |
|
BLAKE2b-256 | c38dd1bf64e3c654de3af93e98084fd10d29031d6f9c325c1a970e88e9aff5bd |
File details
Details for the file fzypy-0.0.2-cp37-cp37m-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp37-cp37m-macosx_10_14_x86_64.whl
- Upload date:
- Size: 38.6 kB
- Tags: CPython 3.7m, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b116fe192836e44127d426ec35550d137fa050a431302ee4ff0317ee6851fcd8 |
|
MD5 | 81d16db44b811be21c07c23f5dcf565b |
|
BLAKE2b-256 | 0cdb74c40dc264df18ccc0061e0f44c394ce9df0afac5bf3445a248936f0d5df |
File details
Details for the file fzypy-0.0.2-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 168.9 kB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1f34896f5de85bedf31fe32dc9760d29e7fcdbc58ce232943bfd406b2a37919 |
|
MD5 | 79e7fd4093540e1b551b87f0a44f83a5 |
|
BLAKE2b-256 | 8ecefa7f1bb72e0cab572e13f47d7f223fa0ea208c7ca96a5db1d7168f4e31be |
File details
Details for the file fzypy-0.0.2-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 168.3 kB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b62ae67d04d4b1b7a52a00b2b9969afbcd4813ca77a22a21b290169e22855bb1 |
|
MD5 | 1e2d5e50384459c0031a0381ca610704 |
|
BLAKE2b-256 | 562fe04a239c0211fa216e43085d523518605ce274d7f16cdf25bb9efc643aae |
File details
Details for the file fzypy-0.0.2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 141.3 kB
- Tags: CPython 3.6m, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b29d47b7579697d2295e6b428244914504a1ad71d9594d6cf65a85d398903998 |
|
MD5 | 17a98fdc86268d101ae565c7087fe952 |
|
BLAKE2b-256 | 953d13c8ee6262d3e57571da19610f9ac43dac663a20b715a4a14276f1c55004 |
File details
Details for the file fzypy-0.0.2-cp36-cp36m-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp36-cp36m-macosx_10_14_x86_64.whl
- Upload date:
- Size: 39.4 kB
- Tags: CPython 3.6m, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82a84f5a47a0859ae683a5b2c4df2581eb5bcd13e1a42c7e761744913eafec30 |
|
MD5 | 3a1b6ee24f9169f71d0a397ae69a3eb8 |
|
BLAKE2b-256 | 1d085f571a7f9582f3aa6a7470c518b9bf0bce82326c99b4b695d29c59409c26 |
File details
Details for the file fzypy-0.0.2-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 136.7 kB
- Tags: CPython 3.5m, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39810d567e1e82ef9408f6fdf15e9bcb263e5b180861decafa25658a112c218d |
|
MD5 | 0d4aaf67feb6a4e56854367c765a7695 |
|
BLAKE2b-256 | fc82a12440843c04c2c08287bded4042c4d93eb5e3f6c31e51af7855306b8622 |
File details
Details for the file fzypy-0.0.2-cp35-cp35m-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: fzypy-0.0.2-cp35-cp35m-macosx_10_14_x86_64.whl
- Upload date:
- Size: 38.3 kB
- Tags: CPython 3.5m, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a3f107ea9c2803d5fe88fc72857f39e4511be773e4e9ea917697beb565e62f3 |
|
MD5 | 3822cbc2d9c8fbf182e00a15d3adb176 |
|
BLAKE2b-256 | 17c104c6429a329cef1c1fd1d23b7e8c3f2ab382261c04d599fd71c566099d2d |