Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

matchlab

A local-first library for building, running and evaluating entity resolution pipelines.

Record matching is a chore. matchlab makes it a pipeline you can build, run, query and measure — on your machine, against your warehouse, with nothing to deploy.

import matchlab as mb

companies = mb.read_database(
    name="crn",
    sql="select pk, company, town from companies",
    client=warehouse,
    key_field="pk",
)

entities = (
    companies.clean({"name": "lower(crn_company)"})
    .dedupe(
        model_class=mb.NaiveDeduper,
        model_settings={"unique_fields": ["name"]},
    )
    .resolve()
    .collect()
)

entities.lookup_key(from_source="crn", to_sources=["dh"], key="a1")

Read the full documentation.

What it does

  • A lazy plan. Source(...).dedupe(...).resolve() builds a tree of steps. Nothing runs until you collect().
  • Content-addressed caching. Re-collecting an unchanged plan does no work. Adding a step runs only that step.
  • Materialised resolver output. A collected resolver writes a complete (root, leaf, key, source) table, so lookups are reads, not re-derivations.
  • Measurement as a first-class job. Sample clusters, record judgements, score precision and recall, and compare methodologies on equal terms.

What it doesn't do

No server, no accounts, no permissions, nothing to deploy. If you need a shared, governed matching service, matchlab is not that.

Installation

pip install matchlab

Coming from Matchbox?

matchlab is the successor to matchbox-db, with the server removed and the client API rebuilt. It's a hard break — see the migration guide.

Development

See our full development guide and coding standards on our contribution guide.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matchlab-0.1.0.dev5.tar.gz (407.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matchlab-0.1.0.dev5-py3-none-any.whl (163.6 kB view details)

Uploaded Python 3

File details

Details for the file matchlab-0.1.0.dev5.tar.gz.

File metadata

  • Download URL: matchlab-0.1.0.dev5.tar.gz
  • Upload date:
  • Size: 407.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for matchlab-0.1.0.dev5.tar.gz
Algorithm Hash digest
SHA256 9c9f7d23b3c9480119dfe817fd04a336ab485b62838ce03be5efffbe659e1e27
MD5 7fbe88a710dcc2ee00b20e032559a683
BLAKE2b-256 2ab41894ea691d4d49e91b83db828bf0f141518519e7b82325c7dc2867f90ab2

See more details on using hashes here.

File details

Details for the file matchlab-0.1.0.dev5-py3-none-any.whl.

File metadata

File hashes

Hashes for matchlab-0.1.0.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 08a19ef9ff015cd329c2c26ccef3894b1ee3ac226be40e399d8887bc01fbc944
MD5 f239f46f6b977d15277d82899cf9a860
BLAKE2b-256 e1f368935af3f8c94c09b50748c6ccb4bb4f98e1496dc4fbb0cb8c2e64c84ee3

See more details on using hashes here.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page