A tiny Riot-league of legends Api wrapper
Project description
LoL.py
A League Of Legends API Wrapper
from LoL import LoL
api_key = "API TOKEN"
lol = LoL(api_key, "euw")
user_data = lol.get_summoner("summoner_name")
summonerId = user_data['id'] # grab summoner id
puuid = user_data['puuid'] # grab ppuid
matches = lol. get_matches_by_puuid(puuid)
single_match = matches[0]
print(lol.get_all_champions())
print(lol.get_summoner(accountId="acc_id"))
print(lol.get_summoner(puuid="puuid"))
print(lol.get_summoner(summonerid="summoner_id"))
print(lol.get_champion_rotations())
print(lol.get_champions_mastery_by_summonerId(summonerId))
print(lol.get_champion_mastery_by_summonerId_and_championId(summonerId,17))
print(lol. get_matches_by_puuid(puuid))
print(lol.get_match_by_matchid(single_match))
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
Close
Hashes for LoL.py_Blackcool70-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 636163ee20bdeb3c0b6dd725b38b8dae6e1915b0d376d9e20b628caf5c7a308c |
|
MD5 | 37c7d31cefa960dbc067b257443a2ddd |
|
BLAKE2b-256 | 9c1fab9a925715829bb7d5a63fce51c3a6c946986051020dd2ce01351ae6ef80 |