pylev
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.2
Python packaging is REALLY hard. Including the README this time.
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.2
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.2.tar.gz | 2.5 kB | Details |
Release files / pylev-1.0.2.tar.gz
| Download URL | pylev-1.0.2.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1152d9708e1e84205e7de186ea07bbcef08add3fe1560d60c908ec453f28924d
|
|
BLAKE2b-256 checksum How to use checksums |
c04c16ea4b520b190fd1a0e02c5f3ac8151cf1cbf76e702da4ebdc40bf830620
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |