Skip to main content

A pure Python Levenschtein implementation that's not freaking GPL'd.

Project description

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.

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

pylev-1.0.1.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file pylev-1.0.1.tar.gz.

File metadata

  • Download URL: pylev-1.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pylev-1.0.1.tar.gz
Algorithm Hash digest
SHA256 58d67b93e9166277ddb72886bafb44d5d356313e99e3d7815c4a311121f41df1
MD5 1bf100d94a1ed1288ef5392b5d795968
BLAKE2b-256 9a3c6076072ebd61a7836d83db0c6b57020c8221fd6f26e402ff24cf5b3e692e

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