Skip to main content
===========
fuzzysearch
===========

> Tiny and blazing-fast fuzzy search in Python

Fuzzy searching allows for flexibly matching a string with partial input, useful for filtering data very quickly based on lightweight user input.

Port of `fuzzysearch in JavaScript <https://github.com/bevacqua/fuzzysearch>`_ into Python.

Install
=======

Just install using pip::
$ pip install simple-fuzzysearch

fuzzysearch(needle, haystack)
=============================

Returns true if needle matches haystack using a fuzzy-searching algorithm.
Note that this program doesn't implement levenshtein distance, but rather a simplified version where there's no approximation.
The method will return true only if each character in the needle can be found in the haystack and occurs after the preceding matches.

.. code:: python
fuzzysearch('twl', 'cartwheel') // <- true
fuzzysearch('cart', 'cartwheel') // <- true
fuzzysearch('cw', 'cartwheel') // <- true
fuzzysearch('ee', 'cartwheel') // <- true
fuzzysearch('art', 'cartwheel') // <- true
fuzzysearch('eeel', 'cartwheel') // <- false
fuzzysearch('dog', 'cartwheel') // <- false

License
=======

MIT

Metadata

Release files for simple-fuzzysearch 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for simple-fuzzysearch 0.0.2
File Interpreter ABI Platform
simple_fuzzysearch-0.0.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / simple_fuzzysearch-0.0.2-py2.py3-none-any.whl

Download URL simple_fuzzysearch-0.0.2-py2.py3-none-any.whl
Size 3.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
57998d2c3395a856625d24fb0eb968e929010c89a69bc9ef76c3dbcfb0a18084
BLAKE2b-256 checksum
How to use checksums
893cfcacf65b492df4a9c7145de9c2770aca77ecaccef4bb85b653efba0a309f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

This release

0.0.2 This release

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page