Skip to main content

API reference

Every page here is generated from sportypy's docstrings on each build.

Surfaces​

One class per sport, and one subclass per league with that league's rule-book dimensions.

SportBase classLeague classes
BaseballBaseballField6
BasketballBasketballCourt6
CurlingCurlingSheet2
FootballFootballField4
HockeyHockeyRink11
LacrosseLacrosseField7
SoccerSoccerPitch5
SoftballSoftballField1
TennisTennisCourt6
VolleyballVolleyballCourt3

Shared methods​

Plotting and display: the plotting helpers (scatter, heatmap, contour, hexbin, arrow, ...) and the display methods every surface has.

Features​

The Features pages document the shapes each surface is drawn from: useful when adding a league or a sport.