{ "info": { "author": "hell03end", "author_email": "hell03end@outlook.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "pylev3\n======\n\n.. image:: https://travis-ci.org/hell03end/pylev3.svg?branch=master\n :target: https://travis-ci.org/hell03end/pylev3\n.. image:: https://badge.fury.io/py/pylev3.svg\n :target: https://badge.fury.io/py/pylev3\n\nA Python3 Levenshtein distance (re)implementation of pylev_.\n\nCalculation of Levenshtein distance between strings.\nBased on the `Wikipedia code samples`_.\n\n.. _pylev: https://github.com/toastdriven/pylev\n.. _Wikipedia code samples: http://en.wikipedia.org/wiki/Levenshtein_distance\n\n`What's new?`__\n\n__ https://github.com/hell03end/pylev3/wiki/Changelog\n\n\nRequirements\n------------\n\n* Python Python 3.3+ or PyPy3\n\n\nInstallation\n------------\n\n.. code-block:: bash\n\n pip install pylev3\n\n\nUsage\n-----\n\nUsage is fairly straightforward:\n\n.. code-block:: python\n\n from pylev3 import Levenshtein\n assert Levenshtein.classic('', 'cat'), 3\n assert Levenshtein.damerau('cat', 'cat'), 0\n assert Levenshtein.wf('kitten', 'sitting'), 3\n assert Levenshtein.wfi(['cat', 'kitten'], 'abc'), [3, 6]\n assert Levenshtein()(['cat', 'kitten'], ['cat', 'abc']), [[0, 3], [5, 6]]\n\nOr use old way (like in pylev):\n\n.. code-block:: python\n\n from pylev3 import wf_levenshtein, wfi_levenshtein, damerau_levenshtein, classic_levenshtein\n assert classic_levenshtein('', 'cat'), 3\n assert damerau_levenshtein('cat', 'cat'), 0\n assert wf_levenshtein('kitten', 'sitting'), 3\n assert wfi_levenshtein(['cat', 'kitten'], 'abc'), [3, 6]\n assert wf_levenshtein(['cat', 'kitten'], ['cat', 'abc']), [[0, 3], [5, 6]]\n\n\nLicense\n-------\n\nNew BSD (as authored).\n\n\nTests\n-----\n\n.. code-block:: bash\n\n # get\n $ git clone https://github.com/hell03end/pylev3.git\n $ cd pylev3\n # run\n $ python -m unittest tests", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hell03end/pylev3", "keywords": "Levenshtein texts", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "pylev3", "package_url": "https://pypi.org/project/pylev3/", "platform": "All", "project_url": "https://pypi.org/project/pylev3/", "project_urls": { "Homepage": "https://github.com/hell03end/pylev3" }, "release_url": "https://pypi.org/project/pylev3/1.1.0/", "requires_dist": null, "requires_python": ">=3.3", "summary": "A Python3 Levenshtein distance (re)implementation of pylev", "version": "1.1.0" }, "last_serial": 3252200, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "05f6da0b60818fd61affd542e4ca954d", "sha256": "eec5d45d56c5f85f4bf16c11dc706556a8fbd452e6cbfae1e4e137f7a0fba555" }, "downloads": -1, "filename": "pylev3-1.0.0.tar.gz", "has_sig": false, "md5_digest": "05f6da0b60818fd61affd542e4ca954d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.3", "size": 4257, "upload_time": "2017-10-12T20:35:26", "url": "https://files.pythonhosted.org/packages/34/1d/e339451d1ae4a4bd52afe3a5b9405be8aa9fb4b02d109a592dda081e2ef8/pylev3-1.0.0.tar.gz" } ], "1.0.1b0": [ { "comment_text": "", "digests": { "md5": "7046e54bc46963ab5b7ac7410ef910a6", "sha256": "91f35d36d08dc91655133e836791ff31f4b30d4a478f339cc1ea20824725f3c2" }, "downloads": -1, "filename": "pylev3-1.0.1b0.tar.gz", "has_sig": false, "md5_digest": "7046e54bc46963ab5b7ac7410ef910a6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.3", "size": 4514, "upload_time": "2017-10-13T12:14:43", "url": "https://files.pythonhosted.org/packages/81/ac/73a9dde90b25c31c4ab4ea44b2eebc44e2169e47798149259a77e20c7657/pylev3-1.0.1b0.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "137428f8367fc21fb874bcd5a866a6cd", "sha256": "e1e82dc59dbfad4dea32c14590ca29676f92f771e6f1bb9cf6bf8feef5ccba2b" }, "downloads": -1, "filename": "pylev3-1.0.3.tar.gz", "has_sig": false, "md5_digest": "137428f8367fc21fb874bcd5a866a6cd", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.3", "size": 4449, "upload_time": "2017-10-14T13:21:29", "url": "https://files.pythonhosted.org/packages/e1/d8/bc85f9d94120b4792f80b085143de5100d6a84d5cbbaee316315774c9dac/pylev3-1.0.3.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "32d09fe92c68febd893a98427efccf79", "sha256": "286d24c9081c67586a69d2b298b1349a6e0d063b0e32a8d370bcb8683b1f996f" }, "downloads": -1, "filename": "pylev3-1.1.0.tar.gz", "has_sig": false, "md5_digest": "32d09fe92c68febd893a98427efccf79", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.3", "size": 4739, "upload_time": "2017-10-15T21:06:22", "url": "https://files.pythonhosted.org/packages/d1/81/eef308014494cb2758ea4993794e088d02416259af843365932d9aa95bdd/pylev3-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "32d09fe92c68febd893a98427efccf79", "sha256": "286d24c9081c67586a69d2b298b1349a6e0d063b0e32a8d370bcb8683b1f996f" }, "downloads": -1, "filename": "pylev3-1.1.0.tar.gz", "has_sig": false, "md5_digest": "32d09fe92c68febd893a98427efccf79", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.3", "size": 4739, "upload_time": "2017-10-15T21:06:22", "url": "https://files.pythonhosted.org/packages/d1/81/eef308014494cb2758ea4993794e088d02416259af843365932d9aa95bdd/pylev3-1.1.0.tar.gz" } ] }