Skip to main content

Riot API Wrapper

Project description

League of Legends API Wrapper

lolwrapper is a Python wrapper for the Riot League of Legends API endpoints. lolwrapper works with Python >= 3.6

Installation

$ pip install lolwrapper

Usage

>>> from lol.riot import Riot
>>> 
>>> api = Riot('your-api-key')

Available Resources

>>> api.champion
>>> api.championmastery
>>> api.league
>>> api.lolstaticdata
>>> api.lolstatus
>>> api.masteries
>>> api.match
>>> api.runes
>>> api.spectator
>>> api.summoner
>>> api.thirdpartycode

Get a summoner

  • Get by name, encrypted account ID, encrypted summoner ID, or encrypted PUUID
>>> r = api.summoner.get(name='tenmo player', region='na')
>>> r = api.summoner.get(encrypted_account_id='account-id', region='na')
>>> r = api.summoner.get(encrypted_summoner_id='summoner-id', region='na')
>>> r = api.summoner.get(encrypted_puuid='puuid', region='na')
>>> r.json()

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

lolwrapper-1.2.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

lolwrapper-1.2-py3-none-any.whl (9.9 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