reclink
Blazing-fast fuzzy matching and record linkage library powered by Rust.
Features
- 21 string similarity metrics — edit distance, token-based, subsequence, alignment, and hybrid metrics
- 10 phonetic algorithms — Soundex, Metaphone, Double Metaphone, NYSIIS, Caverphone, Cologne, Beider-Morse, Phonex, MRA, Daitch-Mokotoff
- Full record linkage pipeline — blocking, comparison, classification, and clustering
- 11 blocking strategies — exact, phonetic, sorted neighborhood, q-gram, LSH, canopy, trie, numeric, date, hybrid (union/intersection)
- 8 classifiers — threshold, weighted, bands, Fellegi-Sunter with EM estimation, logistic regression, decision tree
- 5 clustering algorithms — connected components, hierarchical, DBSCAN, OPTICS, incremental
- 7 index structures — BK-tree, VP-tree, N-gram index, memory-mapped N-gram, MinHash LSH, Bloom filter, inverted index
- DataFrame integration — pandas and polars accessors, native Polars plugin
- Parallel computation — Rayon-powered
cdistand pipeline execution - Scoring presets & composite scorer — pre-tuned configs for name, address, and general-purpose matching
- Extensible plugin system — register custom metrics, blockers, comparators, classifiers, and preprocessors
- WASM bindings — run reclink in the browser
Installation
pip install reclink
Build from source
git clone https://github.com/ByteVeda/reclink.git
cd reclink
uv sync --extra dev
maturin develop --release
Quick Start
Record linkage pipeline
import pandas as pd
from reclink.pipeline import ReclinkPipeline
df = pd.DataFrame({
"id": ["1", "2", "3"],
"first_name": ["Jon", "John", "Jane"],
"last_name": ["Smith", "Smyth", "Doe"],
})
pipeline = (
ReclinkPipeline.builder()
.preprocess("first_name", ["fold_case", "strip_punctuation"])
.preprocess("last_name", ["fold_case"])
.block_phonetic("last_name", algorithm="soundex")
.compare_string("first_name", metric="jaro_winkler")
.compare_string("last_name", metric="jaro_winkler")
.classify_threshold(0.85)
.build()
)
matches = pipeline.dedup(df)
print(matches)
# left_id right_id score scores
# 0 1 2 0.921... [0.832..., 1.0...]
Direct metric usage
from reclink import jaro_winkler, soundex, cdist
jaro_winkler("Jon", "John") # 0.93...
soundex("Smith") == soundex("Smyth") # True
cdist(["Jon", "Jane"], ["John", "Janet"], scorer="jaro_winkler") # 2x2 numpy array
Documentation
Full documentation at docs.byteveda.org/reclink, including:
- API Reference — every metric, algorithm, and class
- Guides — pipelines, preprocessing, DataFrames, custom plugins
- Interactive Playground — try reclink in your browser (WASM-powered)
- Changelog — release history
Performance
Pairwise comparison (10 string pairs, 500 iterations, microseconds per pair):
| Metric | reclink | rapidfuzz | jellyfish | vs rapidfuzz | vs jellyfish |
|---|---|---|---|---|---|
| levenshtein | 0.55 | 0.18 | 1.28 | 3.0x slower | 2.3x faster |
| jaro | 0.31 | 0.20 | 0.68 | 1.6x slower | 2.2x faster |
| jaro_winkler | 0.31 | 0.20 | 0.68 | 1.5x slower | 2.2x faster |
| damerau_levenshtein | 0.93 | 0.24 | 2.41 | 3.9x slower | 2.6x faster |
Batch matching (1,000 candidates, 50 iterations, microseconds per candidate):
| Operation | reclink | rapidfuzz | thefuzz | vs rapidfuzz | vs thefuzz |
|---|---|---|---|---|---|
| match_batch (jaro_winkler) | 0.32 | 0.13 | 1.60 | 2.4x slower | 5.0x faster |
Reproduce with python benchmarks/compare.py (requires pip install rapidfuzz jellyfish thefuzz).
Development
# Setup
uv sync --extra dev
uv run pre-commit install
maturin develop --release
# Rust
cargo test --workspace
cargo clippy -- -D warnings
cargo fmt --check
# Python
uv run pytest tests/python/ -v
uv run ruff check py_src/ tests/
uv run ruff format --check py_src/ tests/
uv run mypy py_src/reclink/
License
Apache-2.0
Metadata
Release files for reclink 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| reclink-0.1.1.tar.gz | 224.7 kB | With provenance | Details |
Built distributions (wheels)
Total release size: 28.2 MB
Release files / reclink-0.1.1.tar.gz
| Download URL | reclink-0.1.1.tar.gz |
|---|---|
| Size | 224.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00047bd6c321d653f98aef094a49e86e99da7099bfee0bdc9deed709207ce914
|
|
BLAKE2b-256 checksum How to use checksums |
c111c779e8cac302f5b373979e522a4d2c5931402b843f35cbf9a2d3690bc44a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logRelease files / reclink-0.1.1-cp313-cp313-win_amd64.whl
| Download URL | reclink-0.1.1-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
5b76500dca68ecb56c797e773f40d38bbb1a2e189aeebf4e3fe8d790c62ee2e6
|
|
BLAKE2b-256 checksum How to use checksums |
c87902076b2d98453badeb55d051da988b31d993841df4065e8a87ebc4e220b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logRelease files / reclink-0.1.1-cp313-cp313-musllinux_1_2_x86_64.whl
| Download URL | reclink-0.1.1-cp313-cp313-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.13 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
9b1c809272d32042d6f7d9b2e5a9c8ce45ba927c992893d3697dd4b04103c5c4
|
|
BLAKE2b-256 checksum How to use checksums |
56b33f28c6b7f9c8340433005f7903ba6dbf720730618c622ce8fadec6a6af32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logRelease files / reclink-0.1.1-cp313-cp313-musllinux_1_2_aarch64.whl
| Download URL | reclink-0.1.1-cp313-cp313-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.13 Linux musl 1.2+ ARM64 |
|
SHA-256 checksum How to use checksums |
b2a439659c5a999e501798d9ca9edc4a325d2a2366683d180cf0b8bd59b708c0
|
|
BLAKE2b-256 checksum How to use checksums |
943abad3f687e4cb50444bc8ece6a3aea50cad0d5652bbcd7d5d7bdc8e15d063
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logRelease files / reclink-0.1.1-cp313-cp313-manylinux_2_28_x86_64.whl
| Download URL | reclink-0.1.1-cp313-cp313-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
a043ae53b26d8d0c991061f2984e7abcd9f0c7ba9949307e9af6ed12c11079ef
|
|
BLAKE2b-256 checksum How to use checksums |
14c7326707c787853e3c4205eabd06be3326444bcd72eddc77b4f17508c1c71a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logRelease files / reclink-0.1.1-cp313-cp313-manylinux_2_28_aarch64.whl
| Download URL | reclink-0.1.1-cp313-cp313-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
62d89849cc1eded30ce33fd27d56474a22af23079717c008dbfe836ac5da6900
|
|
BLAKE2b-256 checksum How to use checksums |
4b76af060f39c7ebefc5cacd24ade814c9b9df7992866434e819d0ea1638960c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logRelease files / reclink-0.1.1-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | reclink-0.1.1-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a03eba8aeaa936dc968613ce43ddad08342379914ce6404f3f977ca63e45ca4c
|
|
BLAKE2b-256 checksum How to use checksums |
dd4bd2fbe7c6b6e82f0714994993f505bbcc1af54f31f59f343b5233a20bf7ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logRelease files / reclink-0.1.1-cp313-cp313-macosx_10_12_x86_64.whl
| Download URL | reclink-0.1.1-cp313-cp313-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.13 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
ed2a4fc9d67db26e604869cb4188ff27bc1f09b9fa7c7ef3c08b30cec0e98617
|
|
BLAKE2b-256 checksum How to use checksums |
f362438ec9ebf3f951928ead40da2cc3fb2734e1c84b21a4856c8c0799ca5998
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logRelease files / reclink-0.1.1-cp312-cp312-win_amd64.whl
| Download URL | reclink-0.1.1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
95996110078aa817d8fd4b077de521aef35867c534535ea5955f61073fedd846
|
|
BLAKE2b-256 checksum How to use checksums |
d2bdd0de5b198bd2547f46f4c097ed40237fa3226ad284eecf336925889640d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logRelease files / reclink-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl
| Download URL | reclink-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
1f3ec915eb09ac1760537447fd01c862610e1a44c28e8d83ebbd54c9748802b7
|
|
BLAKE2b-256 checksum How to use checksums |
31d442b16eee031567f4526ec41d1bef3b743810962fbf7f2fbd1cbfe6dcde2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logRelease files / reclink-0.1.1-cp312-cp312-musllinux_1_2_aarch64.whl
| Download URL | reclink-0.1.1-cp312-cp312-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.12 Linux musl 1.2+ ARM64 |
|
SHA-256 checksum How to use checksums |
562276953964a513ae040e6c751cbc2b6257508cf756cb7660c501f43b4fa56f
|
|
BLAKE2b-256 checksum How to use checksums |
60dcc3e594a132f0751373b09026ebb002ae2b5412cce2a9516e3ac9433a49d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logRelease files / reclink-0.1.1-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | reclink-0.1.1-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
ba4970f0c7063ed07013a3a298ee99ab50936fb3e184dea5ef2aa3f348079798
|
|
BLAKE2b-256 checksum How to use checksums |
92e0fb6f6dba335d6a0721d788ce7a9e9a9dfae1f40d781057f14f59c948e1d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logRelease files / reclink-0.1.1-cp312-cp312-manylinux_2_28_aarch64.whl
| Download URL | reclink-0.1.1-cp312-cp312-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
3faed6ad979e4f7e829128c16d6dbd3e46f6388b55940f86d58297a5495c15b5
|
|
BLAKE2b-256 checksum How to use checksums |
c1ee46998a2f7895d6423179d4e948684c1f7bbe0adbd4c9a22b1358469956b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logRelease files / reclink-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | reclink-0.1.1-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
0d6c0686a1f8405d6adc62cc4a41fd6dbe752f9b61605af932b75dea2e7ed0f9
|
|
BLAKE2b-256 checksum How to use checksums |
ed7490d2264ffabd6904781592442d5673abb3c82c113e8063f471d237368236
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logRelease files / reclink-0.1.1-cp312-cp312-macosx_10_12_x86_64.whl
| Download URL | reclink-0.1.1-cp312-cp312-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.12 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
3b68b50b3b59ca70319058857bcaf0f4147338ae923988d5f24c95dd014d6dbc
|
|
BLAKE2b-256 checksum How to use checksums |
b5e547641ff084d8b057efdfb424071b28ff481476695c8c30c0370e04ebb9df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logSecurity for reclink 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 15 files in this release have been uploaded with provenance metadata.
Attestation for reclink-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.