Skip to content

Possessions API

Possession

Bases: BaseModel

One team possession, independent of lineup changes within it.

EventPossession

Bases: BaseModel

Assignment of one substantive event to one possession.

PossessionSegment

Bases: BaseModel

A possession interval played by one fixed five-on-five lineup.

reconstruct_possessions(events, *, home_team_id, away_team_id)

Reconstruct team possessions from canonical NBA events.

build_possession_segments(events, possession_reconstruction, lineup_reconstruction)

Intersect possessions with atomic lineup substitution boundaries.