Registry / devops / python-levenshtein-wheels

python-levenshtein-wheels

JSON →
library0.13.2pypypi✓ verified 86d ago

Wheel distribution of python-Levenshtein, a C extension for fast computing Levenshtein distance, Hamming distance, and string similarity. Version 0.13.2. Release cadence is low, maintenance mode.

pip install python-levenshtein-wheels
INSTALL
IMPORT
SIG · PYTHON-LEVENSHTEIN
P
python-levenshtein-wheels
devopspythonv0.13.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Levenshtein
import Levenshtein
import levenshtein
Case matters; module is capitalized.
distance
from Levenshtein import distance
from Levenshtein import levenshtein
Function is named 'distance' not 'levenshtein'.

Computes Levenshtein distance and similarity ratio.

import Levenshtein dist = Levenshtein.distance("kitten", "sitting") ratio = Levenshtein.ratio("kitten", "sitting") print(dist, ratio)
Debug
Known issues
gotchaModule is imported as 'Levenshtein' (capital L), not 'levenshtein'. Many users typo the import.
fix
Use 'import Levenshtein' with capital L.
affects: all
deprecatedThe 'python-levenshtein-wheels' package is a subset of 'python-Levenshtein' providing only wheels; the original package now includes wheels. Consider switching to 'python-Levenshtein' 0.13.0+ which provides wheels for most platforms.
fix
Install 'python-Levenshtein' instead: pip install python-Levenshtein
affects: >=0.13.0
gotchaOn some systems, missing C compiler can cause build failure. Wheels avoid this, but ensure you have a supported platform (manylinux, macOS 10.9+).
fix
Install via wheel with pip; if fails, ensure pip is up to date or install python-Levenshtein wheels.
affects: all
Errors
Common errors & fixes
AttributeError: module 'Levenshtein' has no attribute 'levenshtein'
Attempting to call 'levenshtein' which doesn't exist; correct function is 'distance'.
fix
Use Levenshtein.distance() instead of Levenshtein.levenshtein().
ModuleNotFoundError: No module named 'Levenshtein'
Package not installed or import name case wrong.
fix
Install: pip install python-levenshtein-wheels, then import Levenshtein with capital L.
ValueError: expected two strings
Passing empty string or non-string arguments.
fix
Ensure both arguments are strings. e.g., Levenshtein.distance('', 'abc') works, but Levenshtein.distance('', 123) does not.
Upgrade
Version history
0.13.2latest on PyPI · released Jan 31, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
python-levenshtein-wheels — pip install python-levenshtein-wheels · libregistry