pylev


Namepylev JSON
Version 1.4.0 PyPI version JSON
download
home_pagehttp://github.com/toastdriven/pylev
SummaryA pure Python Levenshtein implementation that's not freaking GPL'd.
upload_time2021-05-30 20:07:59
maintainer
docs_urlNone
authorDaniel Lindsley
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            pylev
=====

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

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


Requirements
------------

* Python 2.7.X, Python 3.3+ or PyPy 1.6.0+


Usage
-----

Usage is fairly straightforward:

.. code-block:: python

    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

.. image:: https://travis-ci.com/toastdriven/pylev.svg?branch=main
   :target: http://travis-ci.com/toastdriven/pylev


Version History
---------------

* v1.4.0

    * Updated for current versions of Python
    * Integrated a better Travis matrix. Thanks to @grainert!
    * Fixed mistaken docs about the `assert`. Thanks to @adamchainz!
    * Reorganized the package.
    * Blacked all the source code.

* v1.3.0

    * Implemented a considerably faster variants (orders of magnitude).
    * Tested & working on Python 2.7.4, Python 3.3.1 & PyPy 1.9.0.

* v1.2.0

    * Fixed all incorrect spellings of "Levenshtein" (there's no "c" in it).
    * Old methods are aliased for backward-compatibility.

* v1.1.0

    * Implemented a much faster variant (several orders of magnitude).
    * The older variant was renamed to ``classic_levenschtein``.
    * Tested & working on Python 3.3 & PyPy 1.6.0 as well.

* 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 Levenshtein.



            

Raw data

            {
    "_id": null,
    "home_page": "http://github.com/toastdriven/pylev",
    "name": "pylev",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Daniel Lindsley",
    "author_email": "daniel@toastdriven.com",
    "download_url": "https://files.pythonhosted.org/packages/11/f2/404d2bfa30fb4ee7c7a7435d593f9f698b25d191cafec69dd0c726f02f11/pylev-1.4.0.tar.gz",
    "platform": "",
    "description": "pylev\n=====\n\nA pure Python Levenshtein implementation that's not freaking GPL'd.\n\nBased off the Wikipedia code samples at\nhttp://en.wikipedia.org/wiki/Levenshtein_distance.\n\n\nRequirements\n------------\n\n* Python 2.7.X, Python 3.3+ or PyPy 1.6.0+\n\n\nUsage\n-----\n\nUsage is fairly straightforward:\n\n.. code-block:: python\n\n    import pylev\n    distance = pylev.levenshtein('kitten', 'sitting')\n    assert distance == 3\n\n\nLicense\n-------\n\nNew BSD.\n\n\nTests\n-----\n\nSetup::\n\n    $ git clone https://github.com/toastdriven/pylev.git\n    $ cd pylev\n\nRunning::\n\n    $ python -m unittest tests\n\n.. image:: https://travis-ci.com/toastdriven/pylev.svg?branch=main\n   :target: http://travis-ci.com/toastdriven/pylev\n\n\nVersion History\n---------------\n\n* v1.4.0\n\n    * Updated for current versions of Python\n    * Integrated a better Travis matrix. Thanks to @grainert!\n    * Fixed mistaken docs about the `assert`. Thanks to @adamchainz!\n    * Reorganized the package.\n    * Blacked all the source code.\n\n* v1.3.0\n\n    * Implemented a considerably faster variants (orders of magnitude).\n    * Tested & working on Python 2.7.4, Python 3.3.1 & PyPy 1.9.0.\n\n* v1.2.0\n\n    * Fixed all incorrect spellings of \"Levenshtein\" (there's no \"c\" in it).\n    * Old methods are aliased for backward-compatibility.\n\n* v1.1.0\n\n    * Implemented a much faster variant (several orders of magnitude).\n    * The older variant was renamed to ``classic_levenschtein``.\n    * Tested & working on Python 3.3 & PyPy 1.6.0 as well.\n\n* v1.0.2\n\n    * Python packaging is **REALLY** hard. Including the README *this time*.\n\n* v1.0.1\n\n    * Python packaging is hard. Including the README this time.\n\n* v1.0.0\n\n    * Initial release, just the naive implementation of Levenshtein.\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A pure Python Levenshtein implementation that's not freaking GPL'd.",
    "version": "1.4.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "4021e7b562f8ddf50c22070f744ccee9",
                "sha256": "7b2e2aa7b00e05bb3f7650eb506fc89f474f70493271a35c242d9a92188ad3dd"
            },
            "downloads": -1,
            "filename": "pylev-1.4.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4021e7b562f8ddf50c22070f744ccee9",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 6080,
            "upload_time": "2021-05-30T20:07:58",
            "upload_time_iso_8601": "2021-05-30T20:07:58.473048Z",
            "url": "https://files.pythonhosted.org/packages/04/78/95cfe72991d22994f0ec5a3b742b31c95a28344d33e06b69406b68398a29/pylev-1.4.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "145afdcec514607149e884968911a770",
                "sha256": "9e77e941042ad3a4cc305dcdf2b2dec1aec2fbe3dd9015d2698ad02b173006d1"
            },
            "downloads": -1,
            "filename": "pylev-1.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "145afdcec514607149e884968911a770",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4710,
            "upload_time": "2021-05-30T20:07:59",
            "upload_time_iso_8601": "2021-05-30T20:07:59.989585Z",
            "url": "https://files.pythonhosted.org/packages/11/f2/404d2bfa30fb4ee7c7a7435d593f9f698b25d191cafec69dd0c726f02f11/pylev-1.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-05-30 20:07:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "toastdriven",
    "github_project": "pylev",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pylev"
}
        
Elapsed time: 0.01806s