Skip to main content

A tiny Riot-league of legends Api wrapper

Project description

LoL.py

A Tiny League Of Legends API Wrapper

pip install LoL.py

lol = LoL(api_key, region)
#region can be [na, euw, eune, tr, ru, kr, jp, br, lan, las, oce]
from LoL import LoL

api_key = "API TOKEN" # https://developer.riotgames.com/

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_patch_version())

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lol_py-0.0.17.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

LoL.py-0.0.17-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page