marhta
Fast string similarity algorithms
This library is still in development and may not be stable.
Installation
pip install marhta
Usage
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.
Metadata
Release files for marhta 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| marhta-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.34+ x86-64 | Details |
| marhta-0.1.3-cp311-cp311-manylinux_2_34_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.34+ x86-64 | Details |
| marhta-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.34+ x86-64 | Details |
| marhta-0.1.3-cp39-cp39-manylinux_2_34_x86_64.whl | CPython 3.9 | CPython 3.9 | Linux glibc 2.34+ x86-64 | Details |
| marhta-0.1.3-cp38-cp38-manylinux_2_34_x86_64.whl | CPython 3.8 | CPython 3.8 | Linux glibc 2.34+ x86-64 | Details |
Total release size: 1.3 MB
Release files / marhta-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | marhta-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 256.7 kB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
2fca4606ada34846ec6cfe18858678835f00d123099afcc9610c060647f526d2
|
|
BLAKE2b-256 checksum How to use checksums |
e14f7ce9f9519f0783c398f56bdc9a454cf34c372932cc813ed48473c520327a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / marhta-0.1.3-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | marhta-0.1.3-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 256.6 kB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
3e38663f71a336e9184a2ba28ee515482cfd0f12b78b7d1c1dd02cf0ae187c54
|
|
BLAKE2b-256 checksum How to use checksums |
03a6bf91bef973e04e68e44d2f55c52b152da5fa14d429d79a756f41d59b3c7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / marhta-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | marhta-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 256.6 kB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
e41965ba64169b05d14abc15ac86c2cf2f2f541c3730738b7c15ba6db9c24d85
|
|
BLAKE2b-256 checksum How to use checksums |
d28c97e6098fcc4b2009c9b8dd54f14752fe216709788257685daab02a1d3f39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / marhta-0.1.3-cp39-cp39-manylinux_2_34_x86_64.whl
| Download URL | marhta-0.1.3-cp39-cp39-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 256.5 kB |
| Tags | CPython 3.9 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
0d8f0afbd06ba830806affa46d507bde6b09db55f8218301a38f5f4ffba1aee8
|
|
BLAKE2b-256 checksum How to use checksums |
890d850dc2438acc29ca99317078e2f452ac54c3ffb8edde1727aa2d3a9af8f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / marhta-0.1.3-cp38-cp38-manylinux_2_34_x86_64.whl
| Download URL | marhta-0.1.3-cp38-cp38-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 256.5 kB |
| Tags | CPython 3.8 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
628469d0c7b73b75b877f7844d33598d32754aa5bacceee1224babd5b430436e
|
|
BLAKE2b-256 checksum How to use checksums |
c5c47c21582d84ef297d62b3cb66d86ed15977cc625d23be6c8f38c911ba0d33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|