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.

To upload an additional wheel for a specific Python version, use:

maturin publish --skip-existing -i 3.10

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

Uploaded Source

Built Distribution

levenshtein_rs-0.1.8-cp38-abi3-manylinux_2_34_x86_64.whl (191.2 kB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.34+ x86-64

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

Hashes for levenshtein_rs-0.1.8.tar.gz
Algorithm Hash digest
SHA256 88e79add2a1da42b594a1e0c2d65558b7c07d96bac6efce65b6986b6e2145266
MD5 1eb5e1bee88f4906d8c1b7ca93f14c66
BLAKE2b-256 34b773a28df16e58c556f9075377ea91af9116cca423c1d4e25383bab13ed8d6

See more details on using hashes here.

File details

Details for the file levenshtein_rs-0.1.8-cp38-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for levenshtein_rs-0.1.8-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 acb4a351d2e87254d43d84d465552990e19b452b7334a24723a301731ab17528
MD5 17e62ef3aa7d4b0c41b1826d5ddc96a6
BLAKE2b-256 e6cab3ff822477eb3ab9eb17d7d9921db492860be0d46fc4b15f925cf606e4b8

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