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)
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
Hashes for fuzzyfinder-2.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12f446855d8f2fb5acb2361dad4ea6ff75dc31fcb8a5698bacdb5c771c84f2cc |
|
MD5 | 75845e0e002127db11abcc6c1c796a25 |
|
BLAKE2b-256 | 8f75b6f9f6c99cb8b80e3ac488257a7fb66b9c5176d66f00d7adf4dbc1fe9c9e |