Metadata-Version: 2.1
Name: statsbombpy-local
Version: 0.2.1
Summary: statsbombpy uses local open-data
Home-page: https://github.com/tanzhijian/statsbombpy-local
License: MIT
Author: tanzhijian
Author-email: tanzhijianorg@outlook.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
Requires-Dist: statsbombpy (>=1.12.0,<2.0.0)
Project-URL: Repository, https://github.com/tanzhijian/statsbombpy-local
Description-Content-Type: text/markdown

# 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.

