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.3

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.3
File Interpreter ABI Platform
simple_fuzzysearch-0.0.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

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

Download URL simple_fuzzysearch-0.0.3-py2.py3-none-any.whl
Size 3.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a0a6b7611ced110b3d8fcba49a9be6970623acabe76fe8fa6a640c902a63413f
BLAKE2b-256 checksum
How to use checksums
de133e62615ab68f4e0974ef850c56fe17cbadbdc5539beeeac42bb89163e1e8
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

This release

0.0.3 This release

1 release file

0.0.2

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