Implementation of bounded Levenshtein distance (Ukkonen)
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ukkonen-1.1.0.tar.gz.
File metadata
- Download URL: ukkonen-1.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc62ce0a5b5d57198d4dc0c6ebca406b41afca2b6681af5159a6709b47286377
|
|
| MD5 |
eb7393c95be926a0ac0cea665aa2cb17
|
|
| BLAKE2b-256 |
1b9480c733c4b72efb93250dfadf03cc110a4310cd4e2077280af637f0882801
|
File details
Details for the file ukkonen-1.1.0-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: ukkonen-1.1.0-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 11.6 kB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1b1e65f43a5fdbc1e073e58a0fe666f931b9cf199ee18425975aeedb35c760b
|
|
| MD5 |
7e282e32d3fd32b5a390750aa580736b
|
|
| BLAKE2b-256 |
3cf63a31457b731c750accbdf15177ab09d7cca312b88c6a2dedc979445a0d1d
|
File details
Details for the file ukkonen-1.1.0-cp310-abi3-win32.whl.
File metadata
- Download URL: ukkonen-1.1.0-cp310-abi3-win32.whl
- Upload date:
- Size: 11.3 kB
- Tags: CPython 3.10+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6401f6a96fbf7c4ff9bdd95e3f2aad94a245231af9608796f23f5bbe00fa125
|
|
| MD5 |
e350a423820941f3abfea5f03e45fd26
|
|
| BLAKE2b-256 |
fc3e9fd463ac96d6269b4e3d465f31863df56f400fb35a50ca5cf62f8516967c
|
File details
Details for the file ukkonen-1.1.0-cp310-abi3-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl.
File metadata
- Download URL: ukkonen-1.1.0-cp310-abi3-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl
- Upload date:
- Size: 29.8 kB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43f755181149a085ffd934422017be6f8159fde47501fc396fbc0558536a1fcc
|
|
| MD5 |
2aa209ef8c5ed2a9b82d972e498a7a8e
|
|
| BLAKE2b-256 |
57da6b58da9d3fdc49e61132d23b7848ce96fe8db001635bfed54566a6856257
|
File details
Details for the file ukkonen-1.1.0-cp310-abi3-macosx_13_0_x86_64.whl.
File metadata
- Download URL: ukkonen-1.1.0-cp310-abi3-macosx_13_0_x86_64.whl
- Upload date:
- Size: 7.4 kB
- Tags: CPython 3.10+, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b08daece3d2e7d7323a84e683619ff3409e50a53e5f606ebda3c12e93c81f7c
|
|
| MD5 |
32e36cca3b35f9f1ed7cff0f0ed77df2
|
|
| BLAKE2b-256 |
9ee9c613cf780a7bdc2fb0d11496c8a2e526c7c4bfa40a956753e4a86f5b7518
|
File details
Details for the file ukkonen-1.1.0-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: ukkonen-1.1.0-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 7.8 kB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
801246f054be80be296dad60fda8f23ef335c079d2d72195a84513c6c61519bc
|
|
| MD5 |
796e41a3007f77fdeff6f3ccfa172f17
|
|
| BLAKE2b-256 |
602c57cd06dd63fdf9511b2675d76b53136f4ad12c5e1927a4d7db7cfe47e107
|