marhta


Namemarhta JSON
Version 0.1.3 PyPI version JSON
download
home_pageNone
SummaryFast string similarity algorithms in Rust
upload_time2025-02-01 19:04:44
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords string similarity levenshtein jaro-winkler fuzzy
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # marhta
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

Fast string similarity algorithms

*This library is still in development and may not be stable.*

## Installation

```bash
pip install marhta
```

## Usage

```python
from marhta import levenshtein_similarity, jaro_winkler_similarity

# Calculate string similarities
print(levenshtein_similarity("hello", "helo"))  # 0.8
print(jaro_winkler_similarity("martha", "marhta"))  # 0.961

# Find best matches
from marhta import levenshtein_match
strings = ["apple", "banana", "orange", "pear"]
matches = levenshtein_match("aple", strings)
print(matches)  # [("apple", 0.8), ("pear", 0.5)]
```

## Features

- Levenshtein distance and similarity measures
- Jaro-Winkler distance and similarity measures
- Fuzzy string matching with customizable thresholds

## Performance

Written in Rust for improved performance, while maintaining a Pythonic API.


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "marhta",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "string, similarity, levenshtein, jaro-winkler, fuzzy",
    "author": null,
    "author_email": null,
    "download_url": null,
    "platform": null,
    "description": "# marhta\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nFast string similarity algorithms\n\n*This library is still in development and may not be stable.*\n\n## Installation\n\n```bash\npip install marhta\n```\n\n## Usage\n\n```python\nfrom marhta import levenshtein_similarity, jaro_winkler_similarity\n\n# Calculate string similarities\nprint(levenshtein_similarity(\"hello\", \"helo\"))  # 0.8\nprint(jaro_winkler_similarity(\"martha\", \"marhta\"))  # 0.961\n\n# Find best matches\nfrom marhta import levenshtein_match\nstrings = [\"apple\", \"banana\", \"orange\", \"pear\"]\nmatches = levenshtein_match(\"aple\", strings)\nprint(matches)  # [(\"apple\", 0.8), (\"pear\", 0.5)]\n```\n\n## Features\n\n- Levenshtein distance and similarity measures\n- Jaro-Winkler distance and similarity measures\n- Fuzzy string matching with customizable thresholds\n\n## Performance\n\nWritten in Rust for improved performance, while maintaining a Pythonic API.\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Fast string similarity algorithms in Rust",
    "version": "0.1.3",
    "project_urls": {
        "Repository": "https://github.com/pjwerneck/marhta"
    },
    "split_keywords": [
        "string",
        " similarity",
        " levenshtein",
        " jaro-winkler",
        " fuzzy"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d28c97e6098fcc4b2009c9b8dd54f14752fe216709788257685daab02a1d3f39",
                "md5": "d7dac76359370dc66fb011a2ac0b01a6",
                "sha256": "e41965ba64169b05d14abc15ac86c2cf2f2f541c3730738b7c15ba6db9c24d85"
            },
            "downloads": -1,
            "filename": "marhta-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl",
            "has_sig": false,
            "md5_digest": "d7dac76359370dc66fb011a2ac0b01a6",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.8",
            "size": 256593,
            "upload_time": "2025-02-01T19:04:44",
            "upload_time_iso_8601": "2025-02-01T19:04:44.730023Z",
            "url": "https://files.pythonhosted.org/packages/d2/8c/97e6098fcc4b2009c9b8dd54f14752fe216709788257685daab02a1d3f39/marhta-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "03a6bf91bef973e04e68e44d2f55c52b152da5fa14d429d79a756f41d59b3c7b",
                "md5": "553c5815c8afe7264c5fb8f0cd2a147f",
                "sha256": "3e38663f71a336e9184a2ba28ee515482cfd0f12b78b7d1c1dd02cf0ae187c54"
            },
            "downloads": -1,
            "filename": "marhta-0.1.3-cp311-cp311-manylinux_2_34_x86_64.whl",
            "has_sig": false,
            "md5_digest": "553c5815c8afe7264c5fb8f0cd2a147f",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.8",
            "size": 256631,
            "upload_time": "2025-02-01T19:04:47",
            "upload_time_iso_8601": "2025-02-01T19:04:47.253209Z",
            "url": "https://files.pythonhosted.org/packages/03/a6/bf91bef973e04e68e44d2f55c52b152da5fa14d429d79a756f41d59b3c7b/marhta-0.1.3-cp311-cp311-manylinux_2_34_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e14f7ce9f9519f0783c398f56bdc9a454cf34c372932cc813ed48473c520327a",
                "md5": "609f842d6da95933bc51535e6758ab87",
                "sha256": "2fca4606ada34846ec6cfe18858678835f00d123099afcc9610c060647f526d2"
            },
            "downloads": -1,
            "filename": "marhta-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl",
            "has_sig": false,
            "md5_digest": "609f842d6da95933bc51535e6758ab87",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.8",
            "size": 256669,
            "upload_time": "2025-02-01T19:04:48",
            "upload_time_iso_8601": "2025-02-01T19:04:48.875374Z",
            "url": "https://files.pythonhosted.org/packages/e1/4f/7ce9f9519f0783c398f56bdc9a454cf34c372932cc813ed48473c520327a/marhta-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c5c47c21582d84ef297d62b3cb66d86ed15977cc625d23be6c8f38c911ba0d33",
                "md5": "f2283078809943031d086464605a3f16",
                "sha256": "628469d0c7b73b75b877f7844d33598d32754aa5bacceee1224babd5b430436e"
            },
            "downloads": -1,
            "filename": "marhta-0.1.3-cp38-cp38-manylinux_2_34_x86_64.whl",
            "has_sig": false,
            "md5_digest": "f2283078809943031d086464605a3f16",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 256462,
            "upload_time": "2025-02-01T19:04:50",
            "upload_time_iso_8601": "2025-02-01T19:04:50.484437Z",
            "url": "https://files.pythonhosted.org/packages/c5/c4/7c21582d84ef297d62b3cb66d86ed15977cc625d23be6c8f38c911ba0d33/marhta-0.1.3-cp38-cp38-manylinux_2_34_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "890d850dc2438acc29ca99317078e2f452ac54c3ffb8edde1727aa2d3a9af8f5",
                "md5": "5c8cf0f049826ff9943a2bfba24d1be6",
                "sha256": "0d8f0afbd06ba830806affa46d507bde6b09db55f8218301a38f5f4ffba1aee8"
            },
            "downloads": -1,
            "filename": "marhta-0.1.3-cp39-cp39-manylinux_2_34_x86_64.whl",
            "has_sig": false,
            "md5_digest": "5c8cf0f049826ff9943a2bfba24d1be6",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.8",
            "size": 256546,
            "upload_time": "2025-02-01T19:04:52",
            "upload_time_iso_8601": "2025-02-01T19:04:52.070041Z",
            "url": "https://files.pythonhosted.org/packages/89/0d/850dc2438acc29ca99317078e2f452ac54c3ffb8edde1727aa2d3a9af8f5/marhta-0.1.3-cp39-cp39-manylinux_2_34_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-01 19:04:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pjwerneck",
    "github_project": "marhta",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "marhta"
}
        
Elapsed time: 1.32243s