Skip to main content

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.

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

levenshtein_rs-0.1.7.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distributions

levenshtein_rs-0.1.7-cp311-cp311-manylinux_2_28_x86_64.whl (213.3 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.28+ x86-64

levenshtein_rs-0.1.7-cp310-cp310-manylinux_2_28_x86_64.whl (213.3 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.28+ 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