/pyriot

Python wrapper for the League of Legends API.

Primary LanguagePython

pyriot

/!\ Work In Progress

Python wrapper for the League of Legends API.

The API documentation can be found here : https://developer.riotgames.com/api/methods.

Installation

You can install the package using pip. (pip install -e .)

Usage

from pyriot import PyRiot
api = PyRiot("na", "your-api-key") # get your api key from you developer account
api.summoner_by_name(summonerNames="RiotSchmick")

The method will return an object with all the attributes described in the documentation. (id, name, profileIconId, etc..)

If you forget to put the proper api key you will get a RiotException saying "Request failed".

TODO

  • finish tests
  • proper documentation