Fuzzy Finder implemented in Python.
.. image:: https://img.shields.io/travis/amjith/fuzzyfinder.svg :target: https://travis-ci.org/amjith/fuzzyfinder
.. image:: https://img.shields.io/pypi/v/fuzzyfinder.svg :target: https://pypi.python.org/pypi/fuzzyfinder
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.
.. image:: https://raw.githubusercontent.com/amjith/fuzzyfinder/master/screenshots/pgcli-fuzzy.gif
::
$ pip install fuzzyfinder
or
$ easy_install fuzzyfinder
::
>>> from fuzzyfinder import fuzzyfinder
>>> suggestions = fuzzyfinder('abc', ['abcd', 'defabca', 'aagbec', 'xyz', 'qux'])
>>> list(suggestions)
['abcd', 'defabca', 'aagbec']
Blog post describing the algorithm: http://blog.amjith.com/fuzzyfinder-in-10-lines-of-python