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
Metadata
Release files for fzypy 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fzypy-0.0.2.tar.gz | 85.6 kB | Details |
Built distributions (wheels)
Total release size: 2.8 MB
Release files / fzypy-0.0.2.tar.gz
| Download URL | fzypy-0.0.2.tar.gz |
|---|---|
| Size | 85.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d94ee6353540f60788e4c9b060f758af4056522e5a16d7101ad43727accf624
|
|
BLAKE2b-256 checksum How to use checksums |
a75246f0712d27f0184de942b79d01b047c17e238840f4d6df5e8087fa31b448
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
| Download URL | fzypy-0.0.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl |
|---|---|
| Size | 178.2 kB |
| Tags | CPython 3.10 Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
b59ae01ce29355d4524634bbc7b341c5c30f06d5c822e2aad5eb4f51cd1eed42
|
|
BLAKE2b-256 checksum How to use checksums |
8a112906fa1679abae5cab4432d42c5d1f00d241a0169b0a83736b52bd783a8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| 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 |
|---|---|
| Size | 183.5 kB |
| Tags | CPython 3.10 Linux glibc 2.12+ x86-64 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
9bd252313d46f5c288aa0ae3fd97bc1c4c98c86896ee29f05ad16e3c8af456d9
|
|
BLAKE2b-256 checksum How to use checksums |
7a54a1ef38531c2f9fe02e04ff341c830a9d52b1db365a7a80845e8b38ad80d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
| Download URL | fzypy-0.0.2-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl |
|---|---|
| Size | 176.4 kB |
| Tags | CPython 3.9 Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
db2bc4e6a529c05427abd6e1ae5026cf8c69a1535947211442feeb7b29107143
|
|
BLAKE2b-256 checksum How to use checksums |
6a67a412d4068a3d4fbaa96f24cdad5a98cd9dcb00ddf8d08b47a075f681837f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| 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 |
|---|---|
| Size | 175.5 kB |
| Tags | CPython 3.9 Linux glibc 2.12+ x86-64 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
3daf1c7fe9e1ba049e2f727c93aea6d4eb0b61957389f53a430505e4f22a9ecd
|
|
BLAKE2b-256 checksum How to use checksums |
a3e4aa9d7748c0e8127b070d7a4c09e63c30304cbe903c2445ae9eb1faf473d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | fzypy-0.0.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 139.8 kB |
| Tags | CPython 3.9 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
56303b8fa4868a89ea9b46d92cd6b4442a10a229ef5db4caaedfe991f406735a
|
|
BLAKE2b-256 checksum How to use checksums |
b4b3ab139eabbfb19f7768a0b61837f15811f412ba6c8410785881cb4d50721d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp39-cp39-macosx_10_14_x86_64.whl
| Download URL | fzypy-0.0.2-cp39-cp39-macosx_10_14_x86_64.whl |
|---|---|
| Size | 39.3 kB |
| Tags | CPython 3.9 macOS 10.14+ x86-64 |
|
SHA-256 checksum How to use checksums |
209551c24ce42d4d5dd3df5f76de0f8dc199d105ab9cd68149381204651dca95
|
|
BLAKE2b-256 checksum How to use checksums |
f59c008c5e38ec0a7cbf05abef860b385428a114162fff6f69338acf4bdda26b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
| Download URL | fzypy-0.0.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl |
|---|---|
| Size | 183.9 kB |
| Tags | CPython 3.8 Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
97a1b77a59afc77e6856ebe2c0b02982fbd4d8922f792985cc4eeab1471841b3
|
|
BLAKE2b-256 checksum How to use checksums |
04fe2384db0499c3232f1040854563e64d90d5e7f78cdbf1e5878efd51b2c743
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| 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 |
|---|---|
| Size | 183.2 kB |
| Tags | CPython 3.8 Linux glibc 2.12+ x86-64 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
00403a7a8e2853d1ad9b58b20b9e1114ca63dfb3ca4e16e309c5e8540e82cec7
|
|
BLAKE2b-256 checksum How to use checksums |
7a743783e1183ba05b2f492e653e7bc003d3dd317c1e1555e3e73abefae2b426
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | fzypy-0.0.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 146.5 kB |
| Tags | CPython 3.8 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
24149b4824b60d7aa8c19dd8ef9822cd4e52020d0f60d25d358e7645cd8771b6
|
|
BLAKE2b-256 checksum How to use checksums |
e896d0a67d1d60894404c87a760b6a36f4c33f322ceff9c47288c97e71d2424d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp38-cp38-macosx_10_14_x86_64.whl
| Download URL | fzypy-0.0.2-cp38-cp38-macosx_10_14_x86_64.whl |
|---|---|
| Size | 38.9 kB |
| Tags | CPython 3.8 macOS 10.14+ x86-64 |
|
SHA-256 checksum How to use checksums |
0950882e904f9fcbddabcdb6159e09b03baea23c46a4de4aa5a479065f8b4b32
|
|
BLAKE2b-256 checksum How to use checksums |
cdac300702c72bcdb2d90b2155b3cf4445802b1b2f7b8a08072ccb4e026a36f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
| Download URL | fzypy-0.0.2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl |
|---|---|
| Size | 171.2 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
ac1e3bc01bf000fb6b6b40613674e7bfb27b274269049ecd3272d5b40b7fab34
|
|
BLAKE2b-256 checksum How to use checksums |
ae316bb343e0d4527e28f6170c16e0e1dcb4fe7e19a2340e8644077573d8214c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| 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 |
|---|---|
| Size | 177.6 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
721e713491df52a3e9b62150d8c706eace1430e864d95ee804db0c06533800ed
|
|
BLAKE2b-256 checksum How to use checksums |
7de47d182c01a5a25df73a4addff06ee66e25b8170ce067dbf5b64858e273c44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | fzypy-0.0.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 142.2 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
f78c69c915227b944eedbfa82d212f26a2816474526a15a918dff6e9959c95ef
|
|
BLAKE2b-256 checksum How to use checksums |
c38dd1bf64e3c654de3af93e98084fd10d29031d6f9c325c1a970e88e9aff5bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp37-cp37m-macosx_10_14_x86_64.whl
| Download URL | fzypy-0.0.2-cp37-cp37m-macosx_10_14_x86_64.whl |
|---|---|
| Size | 38.6 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64 |
|
SHA-256 checksum How to use checksums |
b116fe192836e44127d426ec35550d137fa050a431302ee4ff0317ee6851fcd8
|
|
BLAKE2b-256 checksum How to use checksums |
0cdb74c40dc264df18ccc0061e0f44c394ce9df0afac5bf3445a248936f0d5df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
| Download URL | fzypy-0.0.2-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl |
|---|---|
| Size | 168.9 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
c1f34896f5de85bedf31fe32dc9760d29e7fcdbc58ce232943bfd406b2a37919
|
|
BLAKE2b-256 checksum How to use checksums |
8ecefa7f1bb72e0cab572e13f47d7f223fa0ea208c7ca96a5db1d7168f4e31be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| 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 |
|---|---|
| Size | 168.3 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
b62ae67d04d4b1b7a52a00b2b9969afbcd4813ca77a22a21b290169e22855bb1
|
|
BLAKE2b-256 checksum How to use checksums |
562fe04a239c0211fa216e43085d523518605ce274d7f16cdf25bb9efc643aae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | fzypy-0.0.2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 141.3 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
b29d47b7579697d2295e6b428244914504a1ad71d9594d6cf65a85d398903998
|
|
BLAKE2b-256 checksum How to use checksums |
953d13c8ee6262d3e57571da19610f9ac43dac663a20b715a4a14276f1c55004
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp36-cp36m-macosx_10_14_x86_64.whl
| Download URL | fzypy-0.0.2-cp36-cp36m-macosx_10_14_x86_64.whl |
|---|---|
| Size | 39.4 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc macOS 10.14+ x86-64 |
|
SHA-256 checksum How to use checksums |
82a84f5a47a0859ae683a5b2c4df2581eb5bcd13e1a42c7e761744913eafec30
|
|
BLAKE2b-256 checksum How to use checksums |
1d085f571a7f9582f3aa6a7470c518b9bf0bce82326c99b4b695d29c59409c26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | fzypy-0.0.2-cp35-cp35m-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 136.7 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
39810d567e1e82ef9408f6fdf15e9bcb263e5b180861decafa25658a112c218d
|
|
BLAKE2b-256 checksum How to use checksums |
fc82a12440843c04c2c08287bded4042c4d93eb5e3f6c31e51af7855306b8622
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fzypy-0.0.2-cp35-cp35m-macosx_10_14_x86_64.whl
| Download URL | fzypy-0.0.2-cp35-cp35m-macosx_10_14_x86_64.whl |
|---|---|
| Size | 38.3 kB |
| Tags | CPython 3.5 CPython 3.5 pymalloc macOS 10.14+ x86-64 |
|
SHA-256 checksum How to use checksums |
0a3f107ea9c2803d5fe88fc72857f39e4511be773e4e9ea917697beb565e62f3
|
|
BLAKE2b-256 checksum How to use checksums |
17c104c6429a329cef1c1fd1d23b7e8c3f2ab382261c04d599fd71c566099d2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|