No project description provided
Project description
levenshtein_rs
Given x: list[str]
and y: list[str]
, this package calculates the Levenshtein distance between a
and b
.
This is a fork of https://github.com/wooorm/levenshtein-rs with additional tests.
Usage
from levenshtein_rs import levenshtein_list
a = "Testing one two three"
b = "one two three four"
print(levenshtein_list(a.split(), b.split()))
# 2
This project uses the MIT license.
Building from source
This is a Rust project wrapped with maturin.
nix develop
will install dependencies (direnv is supported). Alternatively, you can install cargo using rustup and install maturin using pip.
maturin develop
will compile the project and install it into the current Python environment.
maturin publish
will publish to PyPi.
To upload an additional wheel for a specific Python version, use:
maturin publish --skip-existing -i 3.10
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 Distribution
File details
Details for the file levenshtein_rs-0.1.8.tar.gz
.
File metadata
- Download URL: levenshtein_rs-0.1.8.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88e79add2a1da42b594a1e0c2d65558b7c07d96bac6efce65b6986b6e2145266 |
|
MD5 | 1eb5e1bee88f4906d8c1b7ca93f14c66 |
|
BLAKE2b-256 | 34b773a28df16e58c556f9075377ea91af9116cca423c1d4e25383bab13ed8d6 |
File details
Details for the file levenshtein_rs-0.1.8-cp38-abi3-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: levenshtein_rs-0.1.8-cp38-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 191.2 kB
- Tags: CPython 3.8+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acb4a351d2e87254d43d84d465552990e19b452b7334a24723a301731ab17528 |
|
MD5 | 17e62ef3aa7d4b0c41b1826d5ddc96a6 |
|
BLAKE2b-256 | e6cab3ff822477eb3ab9eb17d7d9921db492860be0d46fc4b15f925cf606e4b8 |