Skip to main content

Wrapper for the League of Legends Api

Project description

# Simple League of Legends Wrapper in Python It creates a small sqlite Database where it can saves multiple Api-Keys. Every Request returns the response from the server and the Api-Key object. This makes it possible to save the Data like the encryptedAccountId with the right Api-Key-ID and for further request where you use the encryptedAccountId you provide the corresponding Api-Key-ID. ## installation pip install ApiLeagueOfLegends

## usage save you Api-Keys to the local database `python from league_of_legends_api.Database.database import Database keys = ['RGAPI-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX', 'RGAPI-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX', 'RGAPI-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'] db = Database() db.save_keys_to_database(keys) ` use the saved keys ``python from league_of_legends_api.Database.database import Database from league_of_legends_api.Api.leaugue_api import SummonerV4 db = Database() keys = db.load_keys_in() summoner = SummonerV4(keys, region='euw1') response, key = summoner.get_summoner_by_name("SaItySurprise") print(response, key) `` {'id': str, 'accountId': str, 'puuid': str, 'name': 'SaItySurprise', 'profileIconId': 3552, 'revisionDate': 1556578547000, 'summonerLevel': 154, 'api_key_id': 4} ApiKey: key:RGAPI-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX, id: 4

Project details


Download files

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

Files for ApiLeagueOfLegends, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size ApiLeagueOfLegends-0.6.tar.gz (6.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page