Skip to main content

Implementation of bounded Levenshtein distance (Ukkonen)

Project description

Build Status Azure DevOps coverage pre-commit.ci status

ukkonen

Implementation of bounded Levenshtein distance (Ukkonen)

port

this is a port of ukkonen from javascript to c++ / python via cffi.

installation

pip install ukkonen
  • wheels should be available on pypi in most cases

api

distance(s1: str, s2: str, k: int) -> int

compute the edit distance, bounded by k

>>> import ukkonen
>>> ukkonen.distance('hello', 'world', 5)
4
>>> ukkonen.distance('hello', 'world', 2)
2

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

ukkonen-1.0.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distributions

ukkonen-1.0.1-cp38-abi3-macosx_12_0_arm64.whl (6.7 kB view hashes)

Uploaded CPython 3.8+ macOS 12.0+ ARM64

ukkonen-1.0.1-cp37-abi3-macosx_10_14_x86_64.whl (6.5 kB view hashes)

Uploaded CPython 3.7+ macOS 10.14+ x86-64

ukkonen-1.0.1-cp36-abi3-win_amd64.whl (10.7 kB view hashes)

Uploaded CPython 3.6+ Windows x86-64

ukkonen-1.0.1-cp36-abi3-win32.whl (10.2 kB view hashes)

Uploaded CPython 3.6+ Windows x86

ukkonen-1.0.1-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (28.4 kB view hashes)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

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