A Python wrapper for RuStat API
Project description
rustat-python-api
Python wrapper for the Rustat API
Example of usage:
- Install the package:
pip install rustat-python-api
- Usage:
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 = parser.get_events(match_id, process=True)
stats = parser.get_match_stats(match_id)
tracking = parser.get_tracking(match_id)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rustat-python-api-0.3.3.tar.gz
.
File metadata
- Download URL: rustat-python-api-0.3.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8ea7080be4d4bb5ab13b1ed0521b0195264a3d42f6f2a0861942b9dc26aecd8 |
|
MD5 | 12a31bb87b9c0ef781241d1b626a16ce |
|
BLAKE2b-256 | e3273701147da4b6bb652c1eacfd3198e45a6284acbd7fff3c95eabd68e463e3 |
File details
Details for the file rustat_python_api-0.3.3-py3-none-any.whl
.
File metadata
- Download URL: rustat_python_api-0.3.3-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40ef5384b6040613182c74f4ab3099d06662c75b3bf9db1685e8df7b8382bd24 |
|
MD5 | 91c8dcede7e088d4ca7ebf018c5243dd |
|
BLAKE2b-256 | 4e5b057bdb81ff695bfbd4cc8ea51126f6641e2c07f47ac70069c17402ac54e2 |