levenshtein-distance
Compute operational differences between two sequences/texts using the Levenshtein algorithm
Installation:
pip install levenshtein-distance
Usage:
Regular Usage:
from levenshtein_distance import Levenshtein
lev_object = Levenshtein('test', 'text')
distance = lev_object.distance()
ratio = lev_object.ratio()
array = lev_object.sequence_array()
With replace operation cost of 2:
lev_object = Levenshtein('test', 'text').set_replace_cost(2)
distance = lev_object.distance()
ratio = lev_object.ratio()
array = lev_object.sequence_array()
Metadata
Release files for levenshtein-distance 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| levenshtein-distance-1.0.1.tar.gz | 3.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| levenshtein_distance-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / levenshtein-distance-1.0.1.tar.gz
| Download URL | levenshtein-distance-1.0.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b2c9ea8f7ae04524a584dc806672871c0e1354e623155a7cb11b2a5852e17cc
|
|
BLAKE2b-256 checksum How to use checksums |
f4a7b7cdd9c8861c021a9491fca5516caed8a9cb57c269ca0f8983c22015adb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.4
|
Release files / levenshtein_distance-1.0.1-py3-none-any.whl
| Download URL | levenshtein_distance-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b84ff10a4ff919f170dfee0b90653ac5fd727b7542f98ba1fb9bdbee84f6b9e
|
|
BLAKE2b-256 checksum How to use checksums |
d1fbb45eb1ad667ece3c5844d52ab7eccfeb824a35fe587645d63894460fbac5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.4
|
Security for levenshtein-distance 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.