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.

Source Distribution

ApiLeagueOfLegends-0.6.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file ApiLeagueOfLegends-0.6.tar.gz.

File metadata

  • Download URL: ApiLeagueOfLegends-0.6.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for ApiLeagueOfLegends-0.6.tar.gz
Algorithm Hash digest
SHA256 d56699b0a1cd1ae4a32046292ba3ea5d97e32c5e2fce709ced1e67992990a538
MD5 b63b4f9e5e1c5974d7f9eac1236e9226
BLAKE2b-256 adda1c6870dbab1b30a4cec2b82127e86c9b78a467a2ec9285d46eb7580f9230

See more details on using hashes here.

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