Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 2 KB

README.rst

File metadata and controls

58 lines (37 loc) · 2 KB

Pyrez: Easily way to connect to Hi-Rez API

https://readthedocs.org/projects/pyrez/badge/?version=latest

PyRez is an open-source Python-based wrapper for Hi-Rez API that supports Paladins, Realm Royale and Smite.

Requeriments

  • Python 3.5(or higher).
  • The following libraries are required: Requests and requests-aeaweb.
  • Access to Hi-Rez Studios API.

Installation

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

Example

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.