Rust-accelerated BM25 search with Rayon
Project description
bm25-parallel
Fast BM25 search backed by Rust & Rayon.
import bm25_parallel
results = bm25_parallel.build_and_search(docs, queries, k=10)
③ `LICENSE`(复制 MIT 全文,略)
④ `build_and_upload.py`(一键脚本)
```python
import subprocess, sys, os, shutil
ROOT = os.path.dirname(__file__)
os.chdir(ROOT)
# 1. 清理旧包
shutil.rmtree("dist", ignore_errors=True)
# 2. 构建 wheel & sdist
subprocess.check_call([sys.executable, "-m", "build"])
# 3. 本地检查
subprocess.check_call([sys.executable, "-m", "twine", "check", "dist/*"])
# 4. 上传到 PyPI(首次用 --repository testpypi 测试)
repo = "pypi" # 或 "testpypi"
token = input(f"输入 {repo} API token:").strip()
subprocess.check_call([
sys.executable, "-m", "twine", "upload",
"--repository", repo,
"--username", "__token__",
"--password", token,
"dist/*"
])
print("✅ 发布完成!")
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 Distribution
bm25_parallel-0.1.0.tar.gz
(8.2 kB
view details)
Built Distribution
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 bm25_parallel-0.1.0.tar.gz.
File metadata
- Download URL: bm25_parallel-0.1.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0371839e5986f3c8bb7eac8027e1a3b8386f50d00f6419dc477c1defa9b1b99b
|
|
| MD5 |
6a63d0bf264c10e445c30e4b5fc59a1a
|
|
| BLAKE2b-256 |
7f3d2272745de7b4c0750a67f66a1dc2b336c1111b7e094892db605216c05b5b
|
File details
Details for the file bm25_parallel-0.1.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: bm25_parallel-0.1.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 923.4 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
934e5177dcc2979521fba7f1d7fc261dcb42e7b715a5b2e114b6d904c9775145
|
|
| MD5 |
1a41ce5493ff52bc65504a13817efd2c
|
|
| BLAKE2b-256 |
e4b603588bed757a7f2126e5c1a4e48a6df1ae6c9bc862aa7b158bc397ae8f16
|