A pure Python Levenschtein implementation that’s not freaking GPL’d.
Based off the Wikipedia code samples at http://en.wikipedia.org/wiki/Levenshtein_distance.
Usage
Usage is fairly straightforward.:
import pylev
distance = pylev.levenschtein('kitten', 'sitting')
assert(distance, 3)
License
New BSD.
Tests
Setup:
$ git clone https://github.com/toastdriven/pylev.git $ cd pylev $ virtualenv env --distribute $ . env/bin/activate $ pip install unittest2
Running:
$ python -m unittest2 tests
Version History
v1.0.1
Python packaging is hard. Including the README this time.
v1.0.0
Initial release, just the naive implementation of Levenschtein.
Metadata
Release files for pylev 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 | |
|---|---|---|---|
| pylev-1.0.1.tar.gz | 2.4 kB | Details |
Release files / pylev-1.0.1.tar.gz
| Download URL | pylev-1.0.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58d67b93e9166277ddb72886bafb44d5d356313e99e3d7815c4a311121f41df1
|
|
BLAKE2b-256 checksum How to use checksums |
9a3c6076072ebd61a7836d83db0c6b57020c8221fd6f26e402ff24cf5b3e692e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |