Skip to main content

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.0

    • Initial release, just the naive implementation of Levenschtein.

Metadata

Release files for pylev 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pylev 1.0.0
File Size Uploaded
pylev-1.0.0.tar.gz 1.3 kB Details

Release files / pylev-1.0.0.tar.gz

Download URL pylev-1.0.0.tar.gz
Size 1.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f8658050912d4ac77886c06e38fec07a164c443e537d6e035643ee0ca7a25f4d
BLAKE2b-256 checksum
How to use checksums
e3b2c95b670c668858d217a1b6e94e8f7fcf79a4c1e02db1e1c24b0515435d24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

1 release file

1.0.2

1 release file

1.0.1

1 release file

This release

1.0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page