semvec/pypi-packages huggingface dataset:
statsbombpy-local 0.2.1
statsbombpy uses local open-data
License: MIT
Requires Python: >=3.10,<4.0

# statsbombpy-local

statsbombpy uses local open-data.

If you have [open-data](https://github.com/statsbomb/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

```python
from statsbombpy_local import sb
```

Same as [statsbombpy](https://github.com/statsbomb/statsbombpy)

```python
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.