Skip to main content

mi-chainlink

A powerful, flexible framework for entity resolution and record linkage using DuckDB as the database engine built upon the work of Who Owns Chicago by the Mansueto Institute for Urban Innovation including the work of Kevin Bryson, Ana (Anita) Restrepo Lachman, Caitlin P., Joaquin Pinto, and Divij Sinha.

This package enables you to load data from various sources, clean and standardize entity names and addresses, and create links between entities based on exact and fuzzy matching techniques.

Source: https://github.com/mansueto-institute/mi-chainlink

Documentation: https://mansueto-institute.github.io/mi-chainlink/

Issues: https://github.com/mansueto-institute/mi-chainlink/issues

Overview

This framework helps you solve the entity resolution problem by:

  1. Loading data from multiple sources into a DuckDB database
  2. Cleaning and standardizing entity names and addresses
  3. Creating exact matches between entities based on names and addresses
  4. Generating fuzzy matches using TF-IDF similarity
  5. Exporting the resulting linked data for further analysis

The system is designed to be configurable through YAML files and supports incremental updates to an existing database.

Installation

Package is available on PyPI. You can install it using pip or uv:

pip install mi-chainlink
uv add mi-chainlink

Usage

Command Line Interface

# Run interactive session
chainlink

# Run with path to config yaml
chainlink path/to/config.yaml

Python Interface

from chainlink import chainlink

chainlink(
    config: dict, ## dict with config details
    config_path: str | Path = DIR / "configs/config.yaml", ## path to store dict post processing
)

Metadata

Release files for mi-chainlink 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mi-chainlink 0.0.11
File Size Uploaded Provenance Actions
mi_chainlink-0.0.11.tar.gz 46.1 kB With provenance Details for mi_chainlink-0.0.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mi-chainlink 0.0.11
File Interpreter ABI Platform Actions
mi_chainlink-0.0.11-py3-none-any.whl Python 3 none any Details for mi_chainlink-0.0.11-py3-none-any.whl

Total release size: 87.2 kB

Security for mi-chainlink 0.0.11

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

A 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.

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