PyRez is an open-source Python-based wrapper for Hi-Rez API that supports Paladins, Realm Royale and Smite.
- Python 3.5(or higher).
- The following libraries are required: Requests and requests-aeaweb.
- Access to Hi-Rez Studios API.
The easiest way to install Pyrez is using pip, Python's package manager:
pip install -U pyrez
The required dependencies will be installed automatically. After that, you can use the library using:
import pyrez
from pyrez.api import PaladinsAPI
paladinsAPI = PaladinsAPI(devId=1004, authKey="23DF3C7E9BD14D84BF892AD206B6755C")
championsRank = paladinsAPI.getGodRanks("FeyRazzle")
if championsRank is not None:
for championRank in championsRank:
print(championRank.getWinratio())
This example will print the winrate with every Champion of player FeyRazzle.