/pyStatsBomb

Python port of the StatsBombR library

Primary LanguagePythonMozilla Public License 2.0MPL-2.0

pyStatsBomb

Documentation Status Updates

Python port of the StatsBombR library.

Features

  • Free data access
  • API data access (TODO)
  • Data cleaning helpers

StatsBombR compatibility

Free data

  • FreeCompetitions: pystatsbomb.free.get_competitions()
  • FreeMatches: pystatsbomb.free.get_matches(competition_ids)
  • StatsBombFreeEvents: pystatsbomb.free.get_events(matches=None)
  • StatsBombFreeLineups: pystatsbomb.free.get_lineups(matches=None)
  • get.lineupsFree: pystatsbomb.free.get_match_lineups(match)
  • get.matchFree: pystatsbomb.free.get_match_events(match)

API

  • MultiCompEvents: TODO
  • MultiCompMatches: TODO
  • MultiMatchLineupsClean: TODO
  • StagingMultiCompEvents: TODO
  • alllineups: TODO
  • allmatches: TODO
  • allstaging: TODO
  • competitions: TODO
  • get.lineups: TODO
  • get.match: TODO
  • get.matches: TODO
  • matchesvector: TODO
  • stagingcomps: TODO
  • stagingevents: TODO
  • stagingmatches: TODO

Data cleaning

  • allclean: pystatsbomb.helpers.all_clean(df)
  • cleanlocations: pystatsbomb.helpers.clean_locations(df)
  • defensiveinfo: TODO
  • formatelapsedtime: pystatsbomb.helpers.format_elapsed_time(df)
  • freezeframeinfo: pystatsbomb.helpers.freeze_frame_info(df)
  • get.gamestate: TODO
  • getOpposingTeam: pystatsbomb.helpers.get_opposing_team(df)
  • getminutesplayed: TODO
  • goalkeeperinfo: pystatsbomb.helpers.goalkeeper_info(df)
  • possessioninfo: pystatsbomb.helpers.possession_info(df)
  • shotinfo: pystatsbomb.helpers.shot_info(df)

Plotting

  • annotate_pitchSB: TODO
  • theme_SB: TODO

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.