Skip to main content

Fuzzy Finder implemented in Python.

Project description

https://img.shields.io/travis/amjith/fuzzyfinder.svg https://img.shields.io/pypi/v/fuzzyfinder.svg

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.

https://raw.githubusercontent.com/amjith/fuzzyfinder/master/screenshots/pgcli-fuzzy.gif

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

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

fuzzyfinder-2.0.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

fuzzyfinder-2.0.0-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file fuzzyfinder-2.0.0.tar.gz.

File metadata

  • Download URL: fuzzyfinder-2.0.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fuzzyfinder-2.0.0.tar.gz
Algorithm Hash digest
SHA256 ca7d092096846fe1b4feb5ef1efc2011e87d07e8af1d948f529fa703c68016d5
MD5 597d68720edd50d6cad7710525b6c3dc
BLAKE2b-256 a347798af390930bb733da6e035624776e61648468327b2936cee7b4fe31830b

See more details on using hashes here.

File details

Details for the file fuzzyfinder-2.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for fuzzyfinder-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 12f446855d8f2fb5acb2361dad4ea6ff75dc31fcb8a5698bacdb5c771c84f2cc
MD5 75845e0e002127db11abcc6c1c796a25
BLAKE2b-256 8f75b6f9f6c99cb8b80e3ac488257a7fb66b9c5176d66f00d7adf4dbc1fe9c9e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page