Canonical entity resolution, aliasing, and merges for MetaSPN systems
Project description
metaspn-entities
Identity layer for MetaSPN systems.
Features
- Canonical entity IDs
- Deterministic identifier normalization + alias resolution
- Merge history and reversible soft undo
- SQLite backend using stdlib
sqlite3 - Event emission payloads for
EntityResolved,EntityMerged,EntityAliasAdded - Optional filesystem snapshot export
Quick usage
from metaspn_entities import EntityResolver
resolver = EntityResolver()
resolution = resolver.resolve("twitter_handle", "@some_handle")
events = resolver.drain_events()
print(resolution.entity_id, resolution.confidence)
API notes
resolve(identifier_type, value, context=None) -> EntityResolutionadd_alias(entity_id, identifier_type, value, ...)merge_entities(from_entity_id, to_entity_id, reason, ...)undo_merge(from_entity_id, to_entity_id, ...)(implemented as reverse merge with redirect correction)drain_events() -> list[EmittedEvent]export_snapshot(output_path)to inspect SQLite state as JSON
Event Contract Guarantees
drain_events() returns EmittedEvent objects whose event_type and payload are
schema-compatible with metaspn-schemas entity events.
EntityResolvedpayload keys:entity_id,resolver,resolved_at,confidence,schema_version
EntityMergedpayload keys:entity_id,merged_from,merged_at,reason,schema_version
EntityAliasAddedpayload keys:entity_id,alias,alias_type,added_at,schema_version
Datetime fields are emitted as UTC ISO-8601 strings for deterministic serialization.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 metaspn_entities-0.1.3.tar.gz.
File metadata
- Download URL: metaspn_entities-0.1.3.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
485516d0e37224f59c1efbef4662a0ee163422436120e88e7ad05b3afc46f26f
|
|
| MD5 |
3ab4844f9472e74133adde501998bc50
|
|
| BLAKE2b-256 |
0ed07ea2d13917ac6c649f62c9866335687450497ebdfe36cf98c0a4b4190a43
|
Provenance
The following attestation bundles were made for metaspn_entities-0.1.3.tar.gz:
Publisher:
publish.yml on MetaSPN/metaspn-entities
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metaspn_entities-0.1.3.tar.gz -
Subject digest:
485516d0e37224f59c1efbef4662a0ee163422436120e88e7ad05b3afc46f26f - Sigstore transparency entry: 921776222
- Sigstore integration time:
-
Permalink:
MetaSPN/metaspn-entities@ba3134d32f0a323b598ee97d5e2f3d3c6beb1ffb -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/MetaSPN
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ba3134d32f0a323b598ee97d5e2f3d3c6beb1ffb -
Trigger Event:
push
-
Statement type:
File details
Details for the file metaspn_entities-0.1.3-py3-none-any.whl.
File metadata
- Download URL: metaspn_entities-0.1.3-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd1680edd6ae54573ad4529c4e5aeb3aebbbc1096ce0d2ee0613e8b704e15db6
|
|
| MD5 |
88761ac4e127cd4613746800b4ee7b17
|
|
| BLAKE2b-256 |
41b57e77436918dcc42067c081ed24f2a3165ce22e6f0f82ffa317450772da5a
|
Provenance
The following attestation bundles were made for metaspn_entities-0.1.3-py3-none-any.whl:
Publisher:
publish.yml on MetaSPN/metaspn-entities
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metaspn_entities-0.1.3-py3-none-any.whl -
Subject digest:
dd1680edd6ae54573ad4529c4e5aeb3aebbbc1096ce0d2ee0613e8b704e15db6 - Sigstore transparency entry: 921776293
- Sigstore integration time:
-
Permalink:
MetaSPN/metaspn-entities@ba3134d32f0a323b598ee97d5e2f3d3c6beb1ffb -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/MetaSPN
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ba3134d32f0a323b598ee97d5e2f3d3c6beb1ffb -
Trigger Event:
push
-
Statement type: