Skip to main content

Datasette plugin adding SQL functions for fuzzy text matching powered by Jellyfish

Project description

datasette-jellyfish

PyPI Changelog Tests License

Datasette plugin that adds custom SQL functions for fuzzy string matching, built on top of the Jellyfish Python library by James Turk and Michael Stephens.

Interactive demos:

Examples:

SELECT soundex("hello");
    -- Outputs H400
SELECT metaphone("hello");
    -- Outputs HL
SELECT nysiis("hello");
    -- Outputs HAL
SELECT match_rating_codex("hello");
    -- Outputs HLL
SELECT levenshtein_distance("hello", "hello world");
    -- Outputs 6
SELECT damerau_levenshtein_distance("hello", "hello world");
    -- Outputs 6
SELECT hamming_distance("hello", "hello world");
    -- Outputs 6
SELECT jaro_similarity("hello", "hello world");
    -- Outputs 0.8181818181818182
SELECT jaro_winkler_similarity("hello", "hello world");
    -- Outputs 0.890909090909091
SELECT match_rating_comparison("hello", "helloo");
    -- Outputs 1

See the Jellyfish documentation for an explanation of each of these functions.

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

datasette-jellyfish-2.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

datasette_jellyfish-2.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file datasette-jellyfish-2.0.tar.gz.

File metadata

  • Download URL: datasette-jellyfish-2.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for datasette-jellyfish-2.0.tar.gz
Algorithm Hash digest
SHA256 4ca91fa7b09658a31b6942db2771884e46e7ead0dd731c06424adf5f4eb8965f
MD5 6043f7448296719143d2ba892a9c5336
BLAKE2b-256 62cd473c4f1ac7e3406afac8fafbfb3ec68f08a3305c3ce4780783225f9654e3

See more details on using hashes here.

File details

Details for the file datasette_jellyfish-2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_jellyfish-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 057708a96fef725294708537ac9dae68dac308268eaf283b7f5c6945dd319dff
MD5 abead56a2868a022c61b136bd2124a6c
BLAKE2b-256 b4168aa72ac5e2f634ebebff4f5732ef867f8d6ddc4de024dcc2573505995d60

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