Skip to content

betting_combat.feeds.registry

registry.py — today’s ids (betting_combat.rounds_*, the registry rounds.identity built and the live card run extends), read once to seed the catalog so every id we hold today is the same id tomorrow, byte for byte.

Registry the registry's rows, read from the database that holds them
Registry.seed() the catalog's first facts: events, fighters, bouts (our ids, the vendor
ids the registry bound), and what the later stages need: each UFCStats
bout side's fighter (``sides``) and each Kalshi winner ticker's bout

What the registry knows becomes the catalog’s; facts it never kept (results, physicals, card places, starts) come from the providers in the stages after it.

Classes

Registry

The registry’s tables (schema in the database db speaks to).

read

read(db: DBClient, schema: str = 'betting_combat') -> Registry

seed

seed(today: dt.date | None = None) -> Seed

Seed