fuzzyfinder package

Submodules

fuzzyfinder.main module

fuzzyfinder.main.fuzzyfinder(input, collection, accessor=<function <lambda>>)[source]
Parameters:
  • input (str) – A partial string which is typically entered by a user.
  • collection (iterable) – A collection of strings which will be filtered based on the input.
  • accessor (function) – If the collection is not an iterable of strings, then use the accessor to fetch the string that will be used for fuzzy matching.
Returns:

A generator object that produces a list of

suggestions narrowed down from collection using the input.

Return type:

suggestions (generator)

Module contents

fuzzyfinder.fuzzyfinder(input, collection, accessor=<function <lambda>>)[source]
Parameters:
  • input (str) – A partial string which is typically entered by a user.
  • collection (iterable) – A collection of strings which will be filtered based on the input.
  • accessor (function) – If the collection is not an iterable of strings, then use the accessor to fetch the string that will be used for fuzzy matching.
Returns:

A generator object that produces a list of

suggestions narrowed down from collection using the input.

Return type:

suggestions (generator)