{"name":"python-Levenshtein: Fast Levenshtein Distance and String Similarity in Python","description":"python-Levenshtein is a Python C extension module designed for high-performance computation of Levenshtein distance and various string similarity metrics. It provides functions for edit distance, string similarity, approximate median strings, and string sequence/set similarity, supporting both normal and Unicode strings. This library is a crucial tool for applications requiring efficient text comparison and analysis.","github":"https://github.com/ztane/python-Levenshtein","url":"https://osrepos.com/repo/ztane-python-levenshtein","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/ztane-python-levenshtein","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/ztane-python-levenshtein.md","json":"https://osrepos.com/repo/ztane-python-levenshtein.json","topics":["Python","Levenshtein","String Similarity","Text Processing","C Extension","Edit Distance","Open Source","Performance"],"keywords":["Python","Levenshtein","String Similarity","Text Processing","C Extension","Edit Distance","Open Source","Performance"],"stars":null,"summary":"python-Levenshtein is a Python C extension module designed for high-performance computation of Levenshtein distance and various string similarity metrics. It provides functions for edit distance, string similarity, approximate median strings, and string sequence/set similarity, supporting both normal and Unicode strings. This library is a crucial tool for applications requiring efficient text comparison and analysis.","content":"## Introduction\n\npython-Levenshtein is a powerful Python C extension module that offers highly optimized functions for computing Levenshtein distance and other string similarity metrics. It's designed for speed, making it ideal for applications that require fast text comparison and analysis. The module includes functionalities for:\n\n*   Levenshtein (edit) distance and edit operations\n*   String similarity\n*   Approximate median strings and string averaging\n*   String sequence and set similarity\n\nIt fully supports both normal and Unicode strings, and is compatible with Python 2.2 or newer, including Python 3.\n\n*Note: The project is currently looking for a new maintainer, as indicated in its README.*\n\n## Installation\n\nInstalling python-Levenshtein is straightforward using pip:\n\nbash\npip install python-Levenshtein\n\n\n## Examples\n\nThe module provides a `StringMatcher.py` class, which is an example of a `SequenceMatcher`-like class built on top of Levenshtein. While it may miss some of `SequenceMatcher`'s functionality, it also offers extra features. For detailed usage and more examples, it is recommended to refer to the official documentation.\n\n## Why Use python-Levenshtein?\n\nThe primary advantage of python-Levenshtein lies in its performance. Being a C extension, it offers significantly faster computation of Levenshtein distance and string similarity compared to pure Python implementations. This makes it an invaluable library for:\n\n*   **Text Processing**: Efficiently comparing and analyzing large volumes of text data.\n*   **Fuzzy Matching**: Implementing robust fuzzy search algorithms.\n*   **Data Cleaning**: Identifying and merging similar, but not identical, entries.\n*   **Bioinformatics**: Applications involving sequence alignment.\n\nIts comprehensive set of functions for various string comparison tasks, combined with its speed, makes it a go-to choice for developers needing high-performance string metrics in Python.\n\n## Links\n\n*   **GitHub Repository**: [https://github.com/ztane/python-Levenshtein](https://github.com/ztane/python-Levenshtein){:target=\"_blank\"}\n*   **Documentation**: [https://rawgit.com/ztane/python-Levenshtein/master/docs/Levenshtein.html](https://rawgit.com/ztane/python-Levenshtein/master/docs/Levenshtein.html){:target=\"_blank\"}\n*   **PyPI**: [https://pypi.python.org/pypi/python-Levenshtein](https://pypi.python.org/pypi/python-Levenshtein){:target=\"_blank\"}","metrics":{"detailViews":1,"githubClicks":1},"dates":{"published":null,"modified":"2026-08-01T15:48:23.000Z"}}