Skip to content

Registry

pipelines.enrichment.shared.registry

Summary

Registry mapping enrichment family → composition root.


Enrichment has two families (entity, tags); each has a single default root (no per-bank variants) so the family is the root, living in the family's impl.py. Callers use resolve_enrichment_root instead of hand-rolled maps.

Classes

Functions

known_enrichment_roots

known_enrichment_roots() -> list

List the registered enrichment family names.

Returns:

Name Type Description
list list

The known family names.

resolve_enrichment_root

resolve_enrichment_root(family: str) -> type

Return the composition root class for an enrichment family.

Parameters:

Name Type Description Default
family str

Enrichment family name ("entity" or "tags").

required

Returns:

Name Type Description
type type

The composition root class for the family.

Raises:

Type Description
ValueError

When the family has no registered enrichment root.