Skip to main content

a library for doing approximate and phonetic matching of strings.

Reason this release was yanked:

broken backwards-compat shim

Project description

https://travis-ci.com/jamesturk/jellyfish.svg?branch=master https://coveralls.io/repos/jamesturk/jellyfish/badge.png?branch=master https://img.shields.io/pypi/v/jellyfish.svg Documentation Status https://ci.appveyor.com/api/projects/status/9xeyl1f5sd5pl40h?svg=true

Jellyfish is a python library for doing approximate and phonetic matching of strings.

Written by James Turk <dev@jamesturk.net> and Michael Stephens.

See https://github.com/jamesturk/jellyfish/graphs/contributors for contributors.

See http://jellyfish.readthedocs.io for documentation.

Source is available at http://github.com/jamesturk/jellyfish.

Jellyfish >= 0.7 only supports Python 3, if you need Python 2 please use 0.6.x.

Included Algorithms

String comparison:

  • Levenshtein Distance

  • Damerau-Levenshtein Distance

  • Jaro Distance

  • Jaro-Winkler Distance

  • Match Rating Approach Comparison

  • Hamming Distance

Phonetic encoding:

  • American Soundex

  • Metaphone

  • NYSIIS (New York State Identification and Intelligence System)

  • Match Rating Codex

Example Usage

>>> import jellyfish
>>> jellyfish.levenshtein_distance(u'jellyfish', u'smellyfish')
2
>>> jellyfish.jaro_distance(u'jellyfish', u'smellyfish')
0.89629629629629637
>>> jellyfish.damerau_levenshtein_distance(u'jellyfish', u'jellyfihs')
1
>>> jellyfish.metaphone(u'Jellyfish')
'JLFX'
>>> jellyfish.soundex(u'Jellyfish')
'J412'
>>> jellyfish.nysiis(u'Jellyfish')
'JALYF'
>>> jellyfish.match_rating_codex(u'Jellyfish')
'JLLFSH'

Running Tests

If you are interested in contributing to Jellyfish, you may want to run tests locally. Jellyfish uses tox to run tests, which you can setup and run as follows:

pip install tox
# cd jellyfish/
tox

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

jellyfish-0.8.0.tar.gz (133.8 kB view details)

Uploaded Source

Built Distributions

jellyfish-0.8.0-cp38-cp38-manylinux2014_x86_64.whl (93.9 kB view details)

Uploaded CPython 3.8

jellyfish-0.8.0-cp37-cp37m-manylinux2014_x86_64.whl (90.2 kB view details)

Uploaded CPython 3.7m

jellyfish-0.8.0-cp36-cp36m-manylinux2014_x86_64.whl (93.6 kB view details)

Uploaded CPython 3.6m

jellyfish-0.8.0-cp35-cp35m-manylinux2014_x86_64.whl (92.9 kB view details)

Uploaded CPython 3.5m

File details

Details for the file jellyfish-0.8.0.tar.gz.

File metadata

  • Download URL: jellyfish-0.8.0.tar.gz
  • Upload date:
  • Size: 133.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.7

File hashes

Hashes for jellyfish-0.8.0.tar.gz
Algorithm Hash digest
SHA256 db4c090dbb4eea9eb38995bf7e4ad7fea3d4a1f18ff0e40711c0c450415b59d1
MD5 062502987c22bfed4d57ae7b24961c26
BLAKE2b-256 96589c10a6b67b79df3dca0462ca2f34bfd19f95a2d8496e8ec2b755ab898336

See more details on using hashes here.

File details

Details for the file jellyfish-0.8.0-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: jellyfish-0.8.0-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 93.9 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.7

File hashes

Hashes for jellyfish-0.8.0-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f85db8e511071a182a14ca042f347da4b96892d44e972d12cd5cc44626f21368
MD5 39b10fdeeadbb6a101cbae540d31062a
BLAKE2b-256 ad5e2d12a7e29aee349c46d0fa092f42e30958d4f492176bf50115aa87191aa3

See more details on using hashes here.

File details

Details for the file jellyfish-0.8.0-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: jellyfish-0.8.0-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 90.2 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.7

File hashes

Hashes for jellyfish-0.8.0-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6036112f8a15aa467f1052578b1a8fa1bcb1c81174c5f1f583cb83118e19fd77
MD5 08d200c92a008da65830294368e20f52
BLAKE2b-256 6d8df86a2ebd789e8ee83ade9126d1af6478ca157c5a1c72abdbb74de8fb8216

See more details on using hashes here.

File details

Details for the file jellyfish-0.8.0-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: jellyfish-0.8.0-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 93.6 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.7

File hashes

Hashes for jellyfish-0.8.0-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b2b20f3b2e0cb4468257f97d757796230d6705fbc2fd89e5b279885dc7a3ea21
MD5 817bf3a6dd08f0a5c8ecab4beeeaa0ab
BLAKE2b-256 e20e6fe18dcdccf3869c6eb85da5d6e1464cfc1c1b206739288dfa3fd48fd742

See more details on using hashes here.

File details

Details for the file jellyfish-0.8.0-cp35-cp35m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: jellyfish-0.8.0-cp35-cp35m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 92.9 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.7

File hashes

Hashes for jellyfish-0.8.0-cp35-cp35m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 13ab8c8c7e1503b35cf1f94edb1cdaa453ba84cabf3cf3c844d4accde4784a26
MD5 8880d2307c2511a2087c4f44d99ad0bc
BLAKE2b-256 66eb7fd4f07f4f26c77c572da6618b94c84ccbfbf972f5901f9daeb4b0c57897

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