-
-
Notifications
You must be signed in to change notification settings - Fork 13
Streaming
Match new records against existing data in real time. GoldenMatch supports single-record matching, micro-batch streaming, and CLI-based incremental matching.
Incremental record matching with immediate or micro-batch processing. Wraps match_one and add_to_cluster for continuous operation.
import goldenmatch as gm
processor = gm.StreamProcessor(existing_df, config)
# Process a single record immediately
matches = processor.process_record({"name": "John Smith", "zip": "10001"})
# Micro-batch mode: buffer records and process in batches
for record in incoming_records:
processor.add_record(record)
# Flush the buffer
results = processor.flush()Each record is matched and clustered as it arrives:
processor = gm.StreamProcessor(df, config)
result = processor.process_record(new_record)
# result includes matches and updated cluster assignmentsBuffer records and process them together for better throughput:
processor = gm.StreamProcessor(df, config)
for record in batch:
processor.add_record(record)
batch_results = processor.flush()Match new CSV records against an existing base dataset:
goldenmatch incremental base.csv --new new_records.csv --config config.yamlThe incremental CLI handles exact and fuzzy matchkeys separately:
- Exact matchkeys: Polars join between new and base records (fast)
-
Fuzzy matchkeys:
match_onebrute-force against the base (thorough)
Continuously monitor a database table for new records and match them incrementally:
goldenmatch watch --table customers --connection-string "$DATABASE_URL" --interval 30Run watch as a background service with health endpoint and PID file:
goldenmatch watch --table customers --connection-string "$DATABASE_URL" --daemonDaemon mode adds:
- HTTP health endpoint at
/health - PID file for process management
- SIGTERM handling for graceful shutdown
Run a streaming pipeline programmatically:
import goldenmatch as gm
result = gm.run_stream(existing_df, config, new_records)⚡ GoldenMatch — Entity resolution toolkit | PyPI | GitHub | Open in Colab | MIT License
🟡 Golden Suite (Monorepo)
Suite Packages
- GoldenCheck · data quality
- GoldenFlow · transforms
- GoldenPipe · orchestrator
- InferMap · schema mapping
Getting Started
- Installation
- Quick Start
- Auto-Config Controller · enhanced through v1.12
- Configuration
- Verification · new in v1.5
- CLI Reference
Core Concepts
AI Integration
Advanced
- PPRL
- Domain Packs
- Streaming / CDC
- Database Integration
- GPU & Vertex AI
- REST API
- Interactive TUI
- Web UI · new in v1.7
- Evaluation
Reference
pip install goldenmatch
npm install goldenmatch