Metadata-Version: 2.1
Name: rustat-python-api
Version: 0.4.8
Summary: A Python wrapper for RuStat API
Home-page: https://github.com/dailydaniel/rustat-python-api
Author: Daniel Zholkovsky
Author-email: daniel@zholkovsky.com
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests==2.32.3
Requires-Dist: pandas==2.2.3
Requires-Dist: tqdm==4.66.5

# rustat-python-api

### Python wrapper for the Rustat API
### Example of usage:
0. Install the package:
```bash
pip install rustat-python-api
```
1. Usage:
```python
from rustat_python_api import RuStatParser

user = "your_login"
password = "your_password"

parser = RuStatParser(user, password)

info = parser.get_rpl_info()
keys = list(info.keys())
season_id, team_id = keys[-1], info[keys[-1]]["season_teams"][0]["id"]

schedule = parser.get_schedule(team_id, season_id)
keys = list(schedule.keys())
match_id = keys[-1]

events, subs = parser.get_events(match_id, process=True, return_subs=True)

stats = parser.get_match_stats(match_id)

tracking = parser.get_tracking(match_id)
```
