Skip to main content

A Levenshtein implementation with a premissive license.

Project description

A Levenshtein implementation with a premissive license. Intended to be a semi-dropin replacement for pylev and to be faster by leveraging a C extension.

Requirements

  • C compiler

  • Only tested with Python 2.7

Usage

Simple example.:

import pylev2
distance = pylev2.levenshtein('kittens', 'sitting')
assert(distance, 3)

Changing from pylev to pylev2

Replace all instances of pylev with pylev2, please note that pylev2 does not support the functions with spelling errors or the classic version.

Tests

Setup:

$ virtualenv .env
$ .env/bin/pip install git+https://github.com/JohnDoee/pylev2.git

Running:

$ python -m unittest pylev2.tests

License

MIT, see LICENSE

History

Uses semantic versioning

  • v1.0.0-beta

    • Initial release.

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

pylev2-1.0.0-beta.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file pylev2-1.0.0-beta.tar.gz.

File metadata

File hashes

Hashes for pylev2-1.0.0-beta.tar.gz
Algorithm Hash digest
SHA256 aef7cb3167552cdc15472f7fd8475a71519c79baa9da8389b155dc2172edd991
MD5 997d21f1162f54e3bcb64eb1d330ef52
BLAKE2b-256 98a4cf2b955f0e4180980f376eb7683f275a451e4bcb476700f62f40a9e674fc

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