GitHub - toastdriven/pylev: A pure Python Levenshtein implementation that's not freaking GPL'd. (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

pylev

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

Based off the Wikipedia code samples athttp://en.wikipedia.org/wiki/Levenshtein_distance.

https://pepy.tech/badge/pylev https://travis-ci.com/toastdriven/pylev.svg?branch=main

Requirements

Usage

Usage is fairly straightforward:

import pylev distance = pylev.levenshtein('kitten', 'sitting') assert distance == 3

License

New BSD.

Tests

Setup:

$ git clone https://github.com/toastdriven/pylev.git $ cd pylev

Running:

$ python -m unittest tests

Alternatives

Version History