Skip to content

tanzhijian/statsbombpy-local

Repository files navigation

statsbombpy-local

statsbombpy uses local open-data.

If you have open-data downloaded locally, you can use it.

Installation

pip install statsbombpy-local

Configuration

Write open-data path to .env or add environment variable: OPEN_DATA_REPO_PATH=your open-data repo path

Usage

from statsbombpy_local import sb

Same as statsbombpy

sb.competitions()
sb.matches(competition_id=2, season_id=44)
sb.lineups(match_id=3749068)["Arsenal"]
sb.events(match_id=3749068)
sb.frames(match_id=3788741)
sb.competition_events(country="Europe", division="UEFA Euro", season="2020")
sb.competition_frames(country="Europe", division="UEFA Euro", season="2020")

Note

  • "player_match_stats", "player_season_stats", "team_season_stats", have not been changed because they require credentials.

About

statsbombpy uses local open-data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published