Lineups API
LineupReconstructionError
Bases: RuntimeError
Raised when play-by-play substitutions produce an impossible lineup.
LineupState
Bases: BaseModel
validate()
Retained as an explicit assertion hook for callers and tests.
normalize_lineup(player_ids)
Return a stable five-player lineup key independent of player order.
reconstruct_lineups(events, boxscore_payload, *, validate_boxscore_minutes=True, minute_tolerance_seconds=2.0)
Reconstruct event-level lineups and stable lineup stints.