Datasette plugin adding SQL functions for fuzzy text matching powered by Jellyfish
Project description
datasette-jellyfish
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ca91fa7b09658a31b6942db2771884e46e7ead0dd731c06424adf5f4eb8965f |
|
MD5 | 6043f7448296719143d2ba892a9c5336 |
|
BLAKE2b-256 | 62cd473c4f1ac7e3406afac8fafbfb3ec68f08a3305c3ce4780783225f9654e3 |
File details
Details for the file datasette_jellyfish-2.0-py3-none-any.whl
.
File metadata
- Download URL: datasette_jellyfish-2.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 057708a96fef725294708537ac9dae68dac308268eaf283b7f5c6945dd319dff |
|
MD5 | abead56a2868a022c61b136bd2124a6c |
|
BLAKE2b-256 | b4168aa72ac5e2f634ebebff4f5732ef867f8d6ddc4de024dcc2573505995d60 |