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)

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

fuzzyfinder-2.1.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

fuzzyfinder-2.1.0-py2.py3-none-any.whl (4.8 kB view details)

Uploaded Python 2 Python 3

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

Hashes for fuzzyfinder-2.1.0.tar.gz
Algorithm Hash digest
SHA256 c56d86f110866becad6690c7518f7036c20831c0f82fc87eba8fdb943132f04b
MD5 72f4591649d40c305e9df8ed6eb62bee
BLAKE2b-256 44efb526179eef7d8567b75e1df52c5163b4d1259de51478516ea139584695d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fuzzyfinder-2.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 aa8223e31bd12fefd3f94c3c46c60b64692594efaa05f5d93e24353e57d57572
MD5 3fc40d44f39c222b2b856e6633562c66
BLAKE2b-256 6c80e23249f1119435d00d0a226debbb0390de4b6ad456c1939de94512b946c8

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