strsimpy 0.2.1__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- strsimpy-0.4.0/Cargo.lock +137 -0
- strsimpy-0.4.0/Cargo.toml +15 -0
- strsimpy-0.4.0/PKG-INFO +541 -0
- {strsimpy-0.2.1 → strsimpy-0.4.0}/README.md +117 -14
- strsimpy-0.4.0/crates/strsimpy-core/Cargo.toml +13 -0
- strsimpy-0.4.0/crates/strsimpy-core/src/cosine.rs +148 -0
- strsimpy-0.4.0/crates/strsimpy-core/src/damerau.rs +110 -0
- strsimpy-0.4.0/crates/strsimpy-core/src/jaccard.rs +75 -0
- strsimpy-0.4.0/crates/strsimpy-core/src/jaro_winkler.rs +207 -0
- strsimpy-0.4.0/crates/strsimpy-core/src/levenshtein.rs +85 -0
- strsimpy-0.4.0/crates/strsimpy-core/src/lib.rs +22 -0
- strsimpy-0.4.0/crates/strsimpy-core/src/longest_common_subsequence.rs +87 -0
- strsimpy-0.4.0/crates/strsimpy-core/src/metric_lcs.rs +57 -0
- strsimpy-0.4.0/crates/strsimpy-core/src/ngram.rs +139 -0
- strsimpy-0.4.0/crates/strsimpy-core/src/normalized_levenshtein.rs +67 -0
- strsimpy-0.4.0/crates/strsimpy-core/src/optimal_string_alignment.rs +89 -0
- strsimpy-0.4.0/crates/strsimpy-core/src/overlap_coefficient.rs +79 -0
- strsimpy-0.4.0/crates/strsimpy-core/src/qgram.rs +92 -0
- strsimpy-0.4.0/crates/strsimpy-core/src/shingle.rs +141 -0
- strsimpy-0.4.0/crates/strsimpy-core/src/sift4.rs +305 -0
- strsimpy-0.4.0/crates/strsimpy-core/src/sorensen_dice.rs +83 -0
- strsimpy-0.4.0/crates/strsimpy-core/src/weighted_levenshtein.rs +166 -0
- strsimpy-0.4.0/crates/strsimpy-py/Cargo.toml +22 -0
- strsimpy-0.4.0/crates/strsimpy-py/src/algorithms.rs +459 -0
- strsimpy-0.4.0/crates/strsimpy-py/src/lib.rs +16 -0
- strsimpy-0.4.0/crates/strsimpy-py/src/sift4.rs +491 -0
- strsimpy-0.4.0/crates/strsimpy-py/src/utils.rs +28 -0
- strsimpy-0.4.0/crates/strsimpy-py/src/weighted.rs +150 -0
- strsimpy-0.4.0/pyproject.toml +58 -0
- strsimpy-0.4.0/python/strsimpy/__init__.py +67 -0
- strsimpy-0.4.0/python/strsimpy/_base.py +126 -0
- strsimpy-0.4.0/python/strsimpy/cosine.py +5 -0
- strsimpy-0.4.0/python/strsimpy/damerau.py +5 -0
- strsimpy-0.4.0/python/strsimpy/jaccard.py +5 -0
- strsimpy-0.4.0/python/strsimpy/jaro_winkler.py +5 -0
- strsimpy-0.4.0/python/strsimpy/levenshtein.py +5 -0
- strsimpy-0.4.0/python/strsimpy/longest_common_subsequence.py +5 -0
- strsimpy-0.4.0/python/strsimpy/metric_lcs.py +5 -0
- strsimpy-0.4.0/python/strsimpy/ngram.py +5 -0
- strsimpy-0.4.0/python/strsimpy/normalized_levenshtein.py +5 -0
- strsimpy-0.4.0/python/strsimpy/optimal_string_alignment.py +5 -0
- strsimpy-0.4.0/python/strsimpy/overlap_coefficient.py +5 -0
- strsimpy-0.4.0/python/strsimpy/qgram.py +5 -0
- strsimpy-0.4.0/python/strsimpy/shingle_based.py +5 -0
- strsimpy-0.4.0/python/strsimpy/sift4.py +5 -0
- strsimpy-0.4.0/python/strsimpy/sorensen_dice.py +5 -0
- strsimpy-0.4.0/python/strsimpy/string_distance.py +9 -0
- strsimpy-0.4.0/python/strsimpy/string_similarity.py +5 -0
- strsimpy-0.4.0/python/strsimpy/weighted_levenshtein.py +23 -0
- strsimpy-0.4.0/tests/test_api.py +222 -0
- strsimpy-0.4.0/tests/test_cosine.py +67 -0
- strsimpy-0.4.0/tests/test_damerau.py +41 -0
- strsimpy-0.4.0/tests/test_jaccard.py +42 -0
- strsimpy-0.2.1/strsimpy/jaro_winkler_test.py → strsimpy-0.4.0/tests/test_jaro_winkler.py +23 -21
- strsimpy-0.4.0/tests/test_levenshtein.py +43 -0
- strsimpy-0.4.0/tests/test_longest_common_subsequence.py +28 -0
- strsimpy-0.4.0/tests/test_metric_lcs.py +34 -0
- strsimpy-0.4.0/tests/test_ngram.py +48 -0
- strsimpy-0.2.1/strsimpy/normalized_levenshtein_test.py → strsimpy-0.4.0/tests/test_normalized_levenshtein.py +14 -21
- strsimpy-0.4.0/tests/test_optimal_string_alignment.py +40 -0
- strsimpy-0.2.1/strsimpy/overlap_coefficient_test.py → strsimpy-0.4.0/tests/test_overlap_coefficient.py +14 -0
- strsimpy-0.4.0/tests/test_qgram.py +44 -0
- strsimpy-0.4.0/tests/test_sift4.py +123 -0
- strsimpy-0.4.0/tests/test_sorensen_dice.py +39 -0
- strsimpy-0.4.0/tests/test_weighted_levenshtein.py +100 -0
- strsimpy-0.2.1/PKG-INFO +0 -429
- strsimpy-0.2.1/setup.cfg +0 -4
- strsimpy-0.2.1/setup.py +0 -29
- strsimpy-0.2.1/strsimpy/__init__.py +0 -40
- strsimpy-0.2.1/strsimpy/cosine.py +0 -73
- strsimpy-0.2.1/strsimpy/cosine_test.py +0 -38
- strsimpy-0.2.1/strsimpy/damerau.py +0 -62
- strsimpy-0.2.1/strsimpy/damerau_test.py +0 -44
- strsimpy-0.2.1/strsimpy/jaccard.py +0 -51
- strsimpy-0.2.1/strsimpy/jaccard_test.py +0 -38
- strsimpy-0.2.1/strsimpy/jaro_winkler.py +0 -97
- strsimpy-0.2.1/strsimpy/levenshtein.py +0 -53
- strsimpy-0.2.1/strsimpy/levenshtein_test.py +0 -44
- strsimpy-0.2.1/strsimpy/longest_common_subsequence.py +0 -49
- strsimpy-0.2.1/strsimpy/longest_common_subsequence_test.py +0 -45
- strsimpy-0.2.1/strsimpy/metric_lcs.py +0 -40
- strsimpy-0.2.1/strsimpy/metric_lcs_test.py +0 -44
- strsimpy-0.2.1/strsimpy/ngram.py +0 -87
- strsimpy-0.2.1/strsimpy/ngram_test.py +0 -44
- strsimpy-0.2.1/strsimpy/normalized_levenshtein.py +0 -44
- strsimpy-0.2.1/strsimpy/optimal_string_alignment.py +0 -57
- strsimpy-0.2.1/strsimpy/optimal_string_alignment_test.py +0 -44
- strsimpy-0.2.1/strsimpy/overlap_coefficient.py +0 -28
- strsimpy-0.2.1/strsimpy/qgram.py +0 -57
- strsimpy-0.2.1/strsimpy/qgram_test.py +0 -44
- strsimpy-0.2.1/strsimpy/shingle_based.py +0 -44
- strsimpy-0.2.1/strsimpy/sift4.py +0 -188
- strsimpy-0.2.1/strsimpy/sift4_test.py +0 -21
- strsimpy-0.2.1/strsimpy/sorensen_dice.py +0 -48
- strsimpy-0.2.1/strsimpy/sorensen_dice_test.py +0 -52
- strsimpy-0.2.1/strsimpy/string_distance.py +0 -37
- strsimpy-0.2.1/strsimpy/string_similarity.py +0 -31
- strsimpy-0.2.1/strsimpy/weighted_levenshtein.py +0 -80
- strsimpy-0.2.1/strsimpy/weighted_levenshtein_test.py +0 -44
- strsimpy-0.2.1/strsimpy.egg-info/PKG-INFO +0 -429
- strsimpy-0.2.1/strsimpy.egg-info/SOURCES.txt +0 -41
- strsimpy-0.2.1/strsimpy.egg-info/dependency_links.txt +0 -1
- strsimpy-0.2.1/strsimpy.egg-info/top_level.txt +0 -1
- {strsimpy-0.2.1 → strsimpy-0.4.0}/LICENSE +0 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "heck"
|
|
7
|
+
version = "0.5.0"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "libc"
|
|
13
|
+
version = "0.2.191"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "once_cell"
|
|
19
|
+
version = "1.21.4"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "portable-atomic"
|
|
25
|
+
version = "1.15.0"
|
|
26
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
28
|
+
|
|
29
|
+
[[package]]
|
|
30
|
+
name = "proc-macro2"
|
|
31
|
+
version = "1.0.107"
|
|
32
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
34
|
+
dependencies = [
|
|
35
|
+
"unicode-ident",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[[package]]
|
|
39
|
+
name = "pyo3"
|
|
40
|
+
version = "0.30.1"
|
|
41
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
42
|
+
checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
|
|
43
|
+
dependencies = [
|
|
44
|
+
"libc",
|
|
45
|
+
"once_cell",
|
|
46
|
+
"portable-atomic",
|
|
47
|
+
"pyo3-build-config",
|
|
48
|
+
"pyo3-ffi",
|
|
49
|
+
"pyo3-macros",
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
[[package]]
|
|
53
|
+
name = "pyo3-build-config"
|
|
54
|
+
version = "0.30.1"
|
|
55
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
56
|
+
checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
|
|
57
|
+
dependencies = [
|
|
58
|
+
"target-lexicon",
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
[[package]]
|
|
62
|
+
name = "pyo3-ffi"
|
|
63
|
+
version = "0.30.1"
|
|
64
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
65
|
+
checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
|
|
66
|
+
dependencies = [
|
|
67
|
+
"libc",
|
|
68
|
+
"pyo3-build-config",
|
|
69
|
+
]
|
|
70
|
+
|
|
71
|
+
[[package]]
|
|
72
|
+
name = "pyo3-macros"
|
|
73
|
+
version = "0.30.1"
|
|
74
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
75
|
+
checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
|
|
76
|
+
dependencies = [
|
|
77
|
+
"proc-macro2",
|
|
78
|
+
"pyo3-macros-backend",
|
|
79
|
+
"quote",
|
|
80
|
+
"syn",
|
|
81
|
+
]
|
|
82
|
+
|
|
83
|
+
[[package]]
|
|
84
|
+
name = "pyo3-macros-backend"
|
|
85
|
+
version = "0.30.1"
|
|
86
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
87
|
+
checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
|
|
88
|
+
dependencies = [
|
|
89
|
+
"heck",
|
|
90
|
+
"proc-macro2",
|
|
91
|
+
"quote",
|
|
92
|
+
"syn",
|
|
93
|
+
]
|
|
94
|
+
|
|
95
|
+
[[package]]
|
|
96
|
+
name = "quote"
|
|
97
|
+
version = "1.0.47"
|
|
98
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
99
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
100
|
+
dependencies = [
|
|
101
|
+
"proc-macro2",
|
|
102
|
+
]
|
|
103
|
+
|
|
104
|
+
[[package]]
|
|
105
|
+
name = "strsimpy-core"
|
|
106
|
+
version = "0.4.0"
|
|
107
|
+
|
|
108
|
+
[[package]]
|
|
109
|
+
name = "strsimpy-py"
|
|
110
|
+
version = "0.4.0"
|
|
111
|
+
dependencies = [
|
|
112
|
+
"pyo3",
|
|
113
|
+
"strsimpy-core",
|
|
114
|
+
]
|
|
115
|
+
|
|
116
|
+
[[package]]
|
|
117
|
+
name = "syn"
|
|
118
|
+
version = "3.0.9"
|
|
119
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
120
|
+
checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
|
|
121
|
+
dependencies = [
|
|
122
|
+
"proc-macro2",
|
|
123
|
+
"quote",
|
|
124
|
+
"unicode-ident",
|
|
125
|
+
]
|
|
126
|
+
|
|
127
|
+
[[package]]
|
|
128
|
+
name = "target-lexicon"
|
|
129
|
+
version = "0.13.5"
|
|
130
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
131
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
132
|
+
|
|
133
|
+
[[package]]
|
|
134
|
+
name = "unicode-ident"
|
|
135
|
+
version = "1.0.27"
|
|
136
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
137
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[workspace]
|
|
2
|
+
members = ["crates/strsimpy-core", "crates/strsimpy-py"]
|
|
3
|
+
resolver = "2"
|
|
4
|
+
|
|
5
|
+
[workspace.package]
|
|
6
|
+
version = "0.4.0"
|
|
7
|
+
edition = "2021"
|
|
8
|
+
rust-version = "1.85"
|
|
9
|
+
license = "MIT"
|
|
10
|
+
repository = "https://github.com/luozhouyang/python-string-similarity"
|
|
11
|
+
authors = ["ZhouYang Luo <zhouyang.luo@gmail.com>"]
|
|
12
|
+
|
|
13
|
+
[profile.release]
|
|
14
|
+
lto = "thin"
|
|
15
|
+
codegen-units = 1
|