No project description provided
Project description
Python tools compiled by rust
pip install tust-py-tools-d
string
def edit_distance(word1:str,word2:str)->int
计算 word1 到 word2的编辑距离
$m=word1.length, n=word2.length$
时间复杂度: $O(m*n)$
空间复杂度: $O(m*n)$
def string_similarity(word1:str,word2:str)->float:
计算字符串相似度 $1-range/max(word1.length,word2.length)$
$m=word1.length, n=word2.length$
时间复杂度: $O(m*n)$
空间复杂度: $O(m*n)$
class MetchResult
Attributes:
- first(str): 字符1
- second(str): 字符2
- ratio:float: 相似度
def fuzzy_match(first_workds:List[str],second_words:List[str],cutoff:float)->List[MetchResult]:
批量匹配两个列表的内字符的相似度
此方法会将将两个数组做一次笛卡尔乘积运算
时间复杂度: m=first_workds.length,n=second_words.length .$O(mn(a+b))$.a,b为列表包含字符串的平均长度
空间复杂度: $O(m*n)$
def num_distinct(source:str,target:str)->int:
计算在source序列中,子序列target出现的次数
时间复杂度: $O(m*n)$ m为source的长度,n为target的长度
空间复杂度: $O(m)$ 我们需要两个长度为m的数组来记录状态值
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rust_py_tools_d-0.1.4-cp310-none-win_amd64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp310-none-win_amd64.whl
- Upload date:
- Size: 153.6 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e6eb41b053843ffd0f3cbaaf13646bc7e7f3114bd937a3254023499a0723cd2
|
|
| MD5 |
de07522847a4a05622e68082dc5236e7
|
|
| BLAKE2b-256 |
6b193902973de69bbaab485a1fb063965dc2f2765296cd915123bf5ef26ba053
|
File details
Details for the file rust_py_tools_d-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f5e24a053877701041a5d659637683e6dd85cc0a2d00c4004fcf0ae2a179527
|
|
| MD5 |
30f34b44a8bc51680027d3c51eeb92d1
|
|
| BLAKE2b-256 |
ccc7a06fbe2a531322b2f6cad224b84982d0f38d46c5cce01f32fa99bf414d44
|
File details
Details for the file rust_py_tools_d-0.1.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
540f92a97f25acc16ec73fe9680dad6a0fe4575cda779131641f4bcc6b34dfa4
|
|
| MD5 |
1368d402c8eefe9a8bdbce0de7a74ab1
|
|
| BLAKE2b-256 |
232a44f7a4c7facd1ec3e5c0a84a95af62fd087cffab80a5fb6e870b3985cd44
|
File details
Details for the file rust_py_tools_d-0.1.4-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 253.7 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08b06244a005934b638ccde4a70890a7ea9e7c3666c76832589d477dc41a3172
|
|
| MD5 |
32a33710f4f5af52ee37d439191da5bc
|
|
| BLAKE2b-256 |
901220309ff8da489b87b06180a963b844f2f2b890e0b57b067b07b2a551e2f9
|
File details
Details for the file rust_py_tools_d-0.1.4-cp310-cp310-macosx_10_7_x86_64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp310-cp310-macosx_10_7_x86_64.whl
- Upload date:
- Size: 264.2 kB
- Tags: CPython 3.10, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
490f305c865ff5ed3f8880b932b96e11cf4ec9ed2c2c92c3e8e9c6a15a767948
|
|
| MD5 |
cfe7595c74e667c58101b2951d72f664
|
|
| BLAKE2b-256 |
c9b0dfcc3afd36bc8a154139f43e01596421735ce58f50e712d1b98851dac332
|
File details
Details for the file rust_py_tools_d-0.1.4-cp39-none-win_amd64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp39-none-win_amd64.whl
- Upload date:
- Size: 153.8 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d9fa587f130453cf0acacffdd134d85280c7a83ce1c596856d54503305441a1
|
|
| MD5 |
4323a3402c88f6ab9f1399454529247a
|
|
| BLAKE2b-256 |
b23b5ce7c3e0751d742722c6ecbc570fb4d360c04e32efee712904d7770dd1ca
|
File details
Details for the file rust_py_tools_d-0.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
651e3c3962169fc7163b1e1933a7db95f6644ae9733245a76ddb7c58ce0d65fb
|
|
| MD5 |
7c5d4bd8bc7f03f3f85c89ee8bf1aea8
|
|
| BLAKE2b-256 |
75e810c0770d540ff04715d70d01c38c727bd5b85c14c50e884aa0489e74ab75
|
File details
Details for the file rust_py_tools_d-0.1.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26470579309ab4a6a00cda1b4e5bd20d45d6c0f0753a93b987811676e22f7e91
|
|
| MD5 |
a0ef51ce942b391f1f60886231219090
|
|
| BLAKE2b-256 |
a746a9df14409eae680baeee9c60de75f6735419e159a3df6afda74f73b81f33
|
File details
Details for the file rust_py_tools_d-0.1.4-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 254.0 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d56013b3ce3f9bcab721d5e9abc9d8a20e1341becab747c21ee64c966c942c5b
|
|
| MD5 |
9caca3773c007cacf9d70bf1b2b51e75
|
|
| BLAKE2b-256 |
f09eeeddf81528697ff639cf17ccf765e1c145d464d0496fb17226e0bd1e4134
|
File details
Details for the file rust_py_tools_d-0.1.4-cp39-cp39-macosx_10_7_x86_64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp39-cp39-macosx_10_7_x86_64.whl
- Upload date:
- Size: 264.6 kB
- Tags: CPython 3.9, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc7834adefed6c2ef4b6a954b3570d243d4e90f93d0b2c8261cdfbd04393b48c
|
|
| MD5 |
31411088820ef9e472ff244c809eecb4
|
|
| BLAKE2b-256 |
662b42542dc8fa28622189777a9ac54a48a7c96aa134161b38101438ea0549fd
|
File details
Details for the file rust_py_tools_d-0.1.4-cp38-none-win_amd64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp38-none-win_amd64.whl
- Upload date:
- Size: 153.8 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6899842bf3bd9213e29cf8781c30cfaa231b3a600aa57c0ec777df62e25caced
|
|
| MD5 |
c9508a4972d88b913a0d02f14f62da04
|
|
| BLAKE2b-256 |
ee389d4bc89d7ef678b70ba91c1703ecb55a0f7914368a93e1f8f4f0494dec36
|
File details
Details for the file rust_py_tools_d-0.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4d34e191b99bed91e886e1c674721e3756ed9860504426ec045e8f5556761f3
|
|
| MD5 |
4b824f112c437aa18b4cdd8e2c6a8614
|
|
| BLAKE2b-256 |
8d341e7ee3f80630603e04b6a6585ee559fcb5007aca81347550268f35bf0606
|
File details
Details for the file rust_py_tools_d-0.1.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0191234c52eb93d37dbeefbd8c437ac087ec12664172769bde5c58d2c0c13740
|
|
| MD5 |
f9f76c74d2c4968422e86363cf98cc9d
|
|
| BLAKE2b-256 |
e89cc436e2ff70a18d52041ea33909bacde7951ecd752ba67261087e123713c0
|
File details
Details for the file rust_py_tools_d-0.1.4-cp38-cp38-macosx_11_0_arm64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 254.0 kB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f596f95c0bb9efd55a80756f1aa5b6691866b17a42d084c34b8e72618d4d367
|
|
| MD5 |
d64378b4625f2f2598e3d3c434dece6a
|
|
| BLAKE2b-256 |
9f01013c6bbd9bf1743d5fadc8b6e01d58c570a1e0b971b052e620863f2a40d0
|
File details
Details for the file rust_py_tools_d-0.1.4-cp38-cp38-macosx_10_7_x86_64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp38-cp38-macosx_10_7_x86_64.whl
- Upload date:
- Size: 264.5 kB
- Tags: CPython 3.8, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9aadd76f03cb5f8896ea07f11d26f1c23d3fd7cd752112b98e45d223c587f399
|
|
| MD5 |
a23483494077cfab5735ef7f4efae892
|
|
| BLAKE2b-256 |
83e2410003970bdf3311cb3bf1104358fec80d22e69023e6ae2e10da0f9db6a4
|
File details
Details for the file rust_py_tools_d-0.1.4-cp37-none-win_amd64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp37-none-win_amd64.whl
- Upload date:
- Size: 153.9 kB
- Tags: CPython 3.7, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4564fb1ad055051128332be739387618ae6fccfe02267eac2fdbba790cbb922
|
|
| MD5 |
bbd74c7c077f2482612c4c7c3825401b
|
|
| BLAKE2b-256 |
3673748e05c01175d4b430c7af86eff9502fc0a442b663c73a89082ec33d82e4
|
File details
Details for the file rust_py_tools_d-0.1.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
175e2a292b6bd90fffa6fa54c84fb1fe058f678e781b5df54e331781effc362c
|
|
| MD5 |
d647a7232c6563aebca14e1e44bef982
|
|
| BLAKE2b-256 |
fb9b7408c2ad1be86d205c862ac33bbaed5e92da08ae5871845979a712c32b83
|
File details
Details for the file rust_py_tools_d-0.1.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5621199737efcc0bc92acaa2c8bc66803a6a662d53cd3a46ff4b04013731400
|
|
| MD5 |
46b80c8e9be36c407e122fb08a832d4a
|
|
| BLAKE2b-256 |
ded522aa8a698c2475ee8cf4e1110b3e5158bb87efed134e3c23cb37789599b3
|
File details
Details for the file rust_py_tools_d-0.1.4-cp37-cp37m-macosx_11_0_arm64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp37-cp37m-macosx_11_0_arm64.whl
- Upload date:
- Size: 254.1 kB
- Tags: CPython 3.7m, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0859f7e59bf008548d853b07a806e9f35d44314f01f50697eb4495761a066432
|
|
| MD5 |
5ef91ed9d4e3f6d29ac5e297e6e7009a
|
|
| BLAKE2b-256 |
e1540045d9069187f32781596f55c669417f9abe85f5b5b933dd390b33dd9e44
|
File details
Details for the file rust_py_tools_d-0.1.4-cp37-cp37m-macosx_10_7_x86_64.whl.
File metadata
- Download URL: rust_py_tools_d-0.1.4-cp37-cp37m-macosx_10_7_x86_64.whl
- Upload date:
- Size: 264.6 kB
- Tags: CPython 3.7m, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c193259f3b7dea6ab739baec654a57c3f790354a00aeaa1429f07b4f2d299482
|
|
| MD5 |
699740bb0e72481b9abb57ca37a6d7d8
|
|
| BLAKE2b-256 |
d8028a8c33e9c800ddf6dfd8136cb4c376ac08c20bfa556cb5071c5c235ddc84
|