Fuzzy Finder implemented in Python.
Project description
Fuzzy Finder implemented in Python. Matches partial string entries from a list of strings. Works similar to fuzzy finder in SublimeText and Vim’s Ctrl-P plugin.
Documentation: https://fuzzyfinder.readthedocs.org.
Quick Start
$ pip install fuzzyfinder or $ easy_install fuzzyfinder
Usage
>>> from fuzzyfinder import fuzzyfinder >>> suggestions = fuzzyfinder('abc', ['abcd', 'defabca', 'aagbec', 'xyz', 'qux']) >>> list(suggestions) ['abcd', 'defabca', 'aagbec']
Features
Simple, easy to understand code.
No external dependencies, just the python std lib.
How does it work
Blog post describing the algorithm: http://blog.amjith.com/fuzzyfinder-in-10-lines-of-python
Similar Projects
https://github.com/seatgeek/fuzzywuzzy - Fuzzy matching and auto-correction using levenshtein distance.
Changelog
2.0.0 (2017-01-25)
Case insensitive matching. (Gokul Soumya)
Add an accessor function for fuzzy find. (Amjith)
Support integer inputs. (Matheus)
2.1.0 (2017-01-25)
Use lookahead regex to find shortest match. (Gokul Soumya)
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 Distribution
File details
Details for the file fuzzyfinder-2.1.0.tar.gz
.
File metadata
- Download URL: fuzzyfinder-2.1.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c56d86f110866becad6690c7518f7036c20831c0f82fc87eba8fdb943132f04b |
|
MD5 | 72f4591649d40c305e9df8ed6eb62bee |
|
BLAKE2b-256 | 44efb526179eef7d8567b75e1df52c5163b4d1259de51478516ea139584695d2 |
File details
Details for the file fuzzyfinder-2.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: fuzzyfinder-2.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa8223e31bd12fefd3f94c3c46c60b64692594efaa05f5d93e24353e57d57572 |
|
MD5 | 3fc40d44f39c222b2b856e6633562c66 |
|
BLAKE2b-256 | 6c80e23249f1119435d00d0a226debbb0390de4b6ad456c1939de94512b946c8 |