API referenceΒΆ

Each class is importable from its module, e.g. from espncricinfo.match import Match. Every public attribute is typed, and the package ships a py.typed marker, so type checkers and editors see the same types shown here.

match.Match

One match, loaded from its ESPNcricinfo full-scorecard page.

match_ref.MatchRef

A lightweight reference to an ESPN Cricinfo match.

summary.Summary

Recent matches as MatchRef objects.

player.Player

A player, loaded from the ESPN core API athlete record.

series.Series

A series or league, with its seasons, teams and matches.

seasons.Season

One season of a series, with its teams and matches.

teams.Team

A team as it appears in one series.

grounds.Ground

A cricket ground.