Skip to main content

a library for doing approximate and phonetic matching of strings.

Project description

https://github.com/jamesturk/jellyfish/workflows/Python%20package/badge.svg https://coveralls.io/repos/jamesturk/jellyfish/badge.png?branch=master https://img.shields.io/pypi/v/jellyfish.svg Documentation Status

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.4.tar.gz (137.0 kB view details)

Uploaded Source

Built Distributions

jellyfish-0.8.4-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

jellyfish-0.8.4-cp39-cp39-win_amd64.whl (27.9 kB view details)

Uploaded CPython 3.9 Windows x86-64

jellyfish-0.8.4-cp39-cp39-macosx_10_14_x86_64.whl (24.5 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

jellyfish-0.8.4-cp38-cp38-win_amd64.whl (27.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

jellyfish-0.8.4-cp38-cp38-macosx_10_14_x86_64.whl (24.5 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

jellyfish-0.8.4-cp37-cp37m-win_amd64.whl (27.8 kB view details)

Uploaded CPython 3.7m Windows x86-64

jellyfish-0.8.4-cp37-cp37m-macosx_10_14_x86_64.whl (24.4 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

jellyfish-0.8.4-cp36-cp36m-win_amd64.whl (27.9 kB view details)

Uploaded CPython 3.6m Windows x86-64

jellyfish-0.8.4-cp36-cp36m-macosx_10_14_x86_64.whl (24.4 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: jellyfish-0.8.4.tar.gz
  • Upload date:
  • Size: 137.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11

File hashes

Hashes for jellyfish-0.8.4.tar.gz
Algorithm Hash digest
SHA256 e07c9346c6e82f7de83b983910617a82d1a993f8f93c232a60142b5bcb85c1cc
MD5 5c7caea15196143f4df339bbec697075
BLAKE2b-256 1aa7cbf5298fae14dbcf1a381e882175f14e8099477a091eb3bcf87cbdb33d9d

See more details on using hashes here.

File details

Details for the file jellyfish-0.8.4-py3-none-any.whl.

File metadata

  • Download URL: jellyfish-0.8.4-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11

File hashes

Hashes for jellyfish-0.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 01f0ff6b9c9e967a0f6b075b2bc38512024809792d89a2c853ca20c6afec37c1
MD5 5835a92668488003495839ae414ceae8
BLAKE2b-256 5f6ab487c8385dbed4acceed96312116c158f61f1f52c595147e871527e24163

See more details on using hashes here.

File details

Details for the file jellyfish-0.8.4-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: jellyfish-0.8.4-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 27.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11

File hashes

Hashes for jellyfish-0.8.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d5a6becffd143544fe4ace753653eb2ebc9d3210b843fb5a7d68a335b4094330
MD5 83b6bc43bb231c21140fb7a38ad8b8a0
BLAKE2b-256 5891fc185c18481eacb5f052f19b95d6cb831a43183b21a0e30bb8c40a204f61

See more details on using hashes here.

File details

Details for the file jellyfish-0.8.4-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: jellyfish-0.8.4-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11

File hashes

Hashes for jellyfish-0.8.4-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 7bb576403cd46211ec188d0f578beb988263d88cb3298db10c904f9f7c810b06
MD5 5a3399f473b36f32a866f7078fb79378
BLAKE2b-256 e83712b51df6b572972df2c614c718198501f4c2c5a309971fea2f9f0cc19088

See more details on using hashes here.

File details

Details for the file jellyfish-0.8.4-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: jellyfish-0.8.4-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 27.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11

File hashes

Hashes for jellyfish-0.8.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a649ff9324d38ea77421e481b706e24e8c203312313dc945aa21bee82455bbba
MD5 936b8706e2629d3e1c886f6cf9d38974
BLAKE2b-256 27a37ba48b66c1c7c41eb8f03748c0f41b9a7d66e7ba8ce25c7a38af9b93b409

See more details on using hashes here.

File details

Details for the file jellyfish-0.8.4-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: jellyfish-0.8.4-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11

File hashes

Hashes for jellyfish-0.8.4-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 0c96e591c805733dd3938765424bc1278fec4d4c00fea51962935e397ca56830
MD5 9a952cce02ecdfe3492c68e81e73ebd7
BLAKE2b-256 5a63c0044770f12c11c243b4362ba4c3fd189c2f4a479a91d8e3e746e68ed86e

See more details on using hashes here.

File details

Details for the file jellyfish-0.8.4-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: jellyfish-0.8.4-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 27.8 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11

File hashes

Hashes for jellyfish-0.8.4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 b551182a1d4c0bf401deaee31b89dc230dddfb7a5114d735644921983cfbe703
MD5 16a0975a92a4a3567935014f300250d8
BLAKE2b-256 e588e17ed0546a63487edbaaa1a431325a4f2509a418f91090594bccbde3f7ce

See more details on using hashes here.

File details

Details for the file jellyfish-0.8.4-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: jellyfish-0.8.4-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11

File hashes

Hashes for jellyfish-0.8.4-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 2fe80bc7e3e7b025c0d8a9f4c9d83301cecad617fd3cfadf7e6197bccae4d635
MD5 5aa05e8479633d5c13da8615563837f3
BLAKE2b-256 82d2767ae2c836b217fad4f8af751077323037586575c1170cab1e6d74592d79

See more details on using hashes here.

File details

Details for the file jellyfish-0.8.4-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: jellyfish-0.8.4-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 27.9 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11

File hashes

Hashes for jellyfish-0.8.4-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 4764714f050935ac88f899cd79600b5788bb22f1eeb1c26893229b42f6df589b
MD5 4b4fb83f6d8d60462e9edebb60061225
BLAKE2b-256 a15df91435e03d82c8ab9cfc8a3a654148199b41e27c359de77c7b84844a154e

See more details on using hashes here.

File details

Details for the file jellyfish-0.8.4-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: jellyfish-0.8.4-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11

File hashes

Hashes for jellyfish-0.8.4-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 fb92ffbc994c46bbdcb960318372841de54d89097959fe8f54a6802558da9beb
MD5 d9f787ba9705d1be14266ad66e5eac9a
BLAKE2b-256 e935aefc3efbb6169430612869ef00a3e5078660e335a411b32c65d0a0d2f051

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