polyleven 0.10.0__cp38-cp38-musllinux_1_2_aarch64.whl

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.
@@ -0,0 +1,25 @@
1
+ Copyright (c) 2021 Fujimoto Seiji <fujimoto@ceptord.net>
2
+ Copyright (c) 2021 Max Bachmann <kontakt@maxbachmann.de>
3
+ Copyright (c) 2022 Nick Mazuk
4
+ Copyright (c) 2022 Michael Weiss <code@mweiss.ch>
5
+ Copyright (c) 2024 Alex Morgan <lexyym@gmail.com>
6
+ Copyright (c) 2026 Michael Mok <pmmmwh@gmail.com>
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in all
16
+ copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ SOFTWARE.
25
+
@@ -0,0 +1,122 @@
1
+ Metadata-Version: 2.1
2
+ Name: polyleven
3
+ Version: 0.10.0
4
+ Summary: A fast C-implemented library for Levenshtein distance
5
+ Maintainer-email: Fujimoto Seiji <fujimoto@ceptord.net>
6
+ Project-URL: github, https://github.com/fujimotos/polyleven
7
+ Keywords: Levenshtein distance
8
+ Classifier: Development Status :: 5 - Production/Stable
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: C
12
+ Requires-Python: >=3.8
13
+ Description-Content-Type: text/x-rst
14
+ License-File: LICENSE
15
+
16
+ ==============================================
17
+ Polyleven -- Fast Pythonic Levenshtein Library
18
+ ==============================================
19
+
20
+ :License: MIT License
21
+
22
+ 1. Introduction
23
+ ===============
24
+
25
+ polyleven is a Pythonic Levenshtein distance library that:
26
+
27
+ - Is **fast** independent of input types, and hence can be applied to
28
+ both short (like English words) and long inputs (like DNA sequences).
29
+
30
+ - Is **stand-alone** depending only on core Python packages.
31
+
32
+ - Is distributed under the **MIT License**, hence can be used freely
33
+ in private projects.
34
+
35
+ 2. How to install
36
+ =================
37
+
38
+ The official package is available on PyPI::
39
+
40
+ $ pip install polyleven
41
+
42
+ 3. How to use
43
+ =============
44
+
45
+ Polyleven provides a single interface function ``levenshtein()``. You
46
+ can use this function to measure the similarity of two strings.
47
+
48
+ >>> from polyleven import levenshtein
49
+ >>> levenshtein('aaa', 'ccc')
50
+ 3
51
+
52
+ If you only care about distances under a certain threshold, you can
53
+ pass the max threshold to the third argument.
54
+
55
+ >>> levenshtein('acc', 'ccc', 1)
56
+ 1
57
+ >>> levenshtein('aaa', 'ccc', 1)
58
+ 2
59
+
60
+ In general, you can gain a noticeable speed boost with threshold
61
+ :math:`k < 3`.
62
+
63
+ 4. Benchmark
64
+ ============
65
+
66
+ 4.1 English Words
67
+ ------------------
68
+
69
+ To compare Polyleven with other Pythonic edit distance libraries,
70
+ a million word pairs was generated from `SCOWL`_.
71
+
72
+ .. _SCOWL: http://wordlist.aspell.net/
73
+
74
+ Each library was measured how long it takes to evaluate all of
75
+ these words. The following table summarises the result:
76
+
77
+ ============================== ============ ================
78
+ Function Name TIME[sec] SPEED[pairs/s]
79
+ ============================== ============ ================
80
+ edlib 4.763 208216
81
+ editdistance 1.943 510450
82
+ jellyfish.levenshtein_distance 0.722 1374081
83
+ distance.levenshtein 0.623 1591396
84
+ Levenshtein.distance 0.500 1982764
85
+ polyleven.levenshtein 0.431 2303420
86
+ ============================== ============ ================
87
+
88
+ 4.2. Longer Inputs
89
+ ------------------
90
+
91
+ To evaluate the efficiency for longer inputs, I created 5000 pairs
92
+ of random strings of size 16, 32, 64, 128, 256, 512 and 1024.
93
+
94
+ Each library was measured how fast it can process these entries. [#fn1]_
95
+
96
+ ============ ===== ===== ===== ===== ===== ===== ======
97
+ Library N=16 N=32 N=64 N=128 N=256 N=512 N=1024
98
+ ============ ===== ===== ===== ===== ===== ===== ======
99
+ edlib 0.040 0.063 0.094 0.205 0.432 0.908 2.089
100
+ editdistance 0.027 0.049 0.086 0.178 0.336 0.740 58.139
101
+ jellyfish 0.009 0.032 0.118 0.470 1.874 8.877 42.848
102
+ distance 0.007 0.029 0.109 0.431 1.726 6.950 27.998
103
+ Levenshtein 0.006 0.022 0.085 0.336 1.328 5.286 21.097
104
+ polyleven 0.003 0.005 0.010 0.043 0.149 0.550 2.109
105
+ ============ ===== ===== ===== ===== ===== ===== ======
106
+
107
+ 3.3. List of Libraries
108
+ ----------------------
109
+
110
+ ============ ======= ==========================================
111
+ Library Version URL
112
+ ============ ======= ==========================================
113
+ edlib v1.2.1 https://github.com/Martinsos/edlib
114
+ editdistance v0.4 https://github.com/aflc/editdistance
115
+ jellyfish v0.5.6 https://github.com/jamesturk/jellyfish
116
+ distance v0.1.3 https://github.com/doukremt/distance
117
+ Levenshtein v0.12 https://github.com/ztane/python-Levenshtein
118
+ polyleven v0.3 https://github.com/fujimotos/polyleven
119
+ ============ ======= ==========================================
120
+
121
+ .. [#fn1] Measured using Python 3.5.3 on Debian Jessie with Intel Core
122
+ i3-4010U (1.70GHz)
@@ -0,0 +1,6 @@
1
+ polyleven.cpython-38-aarch64-linux-gnu.so,sha256=rlsAQXjc5VGVdJWn1I3hE3BcYXrvqr3Ip_VXopJxX-A,90336
2
+ polyleven-0.10.0.dist-info/WHEEL,sha256=I8Z6ERRk--36IebLI14CBSYDDRZRYQ_qH3hPOVIZY3s,111
3
+ polyleven-0.10.0.dist-info/top_level.txt,sha256=12GbQ6DLcEtqgc30L3CguDVut0T-AYu2LoAm0fY4-cY,21
4
+ polyleven-0.10.0.dist-info/LICENSE,sha256=S0WHvMrqLOjyR4Z8V3DpCzJ4Ll6XYIZY8SwfvaGbgkk,1319
5
+ polyleven-0.10.0.dist-info/METADATA,sha256=EvPmoftIiLyJZcfbJCh6OqLHcrZ4zwNglZPuVjj5laU,4229
6
+ polyleven-0.10.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (75.3.3)
3
+ Root-Is-Purelib: false
4
+ Tag: cp38-cp38-musllinux_1_2_aarch64
5
+
@@ -0,0 +1,2 @@
1
+ polyleven
2
+ wheelhouse