Python package to communicate to riot client and league client
Project description
league-connection
league-connection is a python package to communicate to riot client and league client.
Examples
Logging in (Riot Client)
>>> import os
>>> from league_connection import LeagueConnection
>>> lockfile = os.path.expanduser('~\\AppData\\Local\\Riot Games\\Riot Client\\Config\\lockfile')
>>> connection = LeagueConnection(lockfile, timeout=10)
>>> data = {'username': 'yourusername', 'password': 'yourpassword', 'persistLogin': False}
>>> res = connection.put('/rso-auth/v1/session/credentials', json=data)
>>> res.status_code
201
Change summoner icon (League Client)
>>> from league_connection import LeagueConnection
>>> lockfile = 'C:\\Riot Games\\League of Legends\\lockfile'
>>> connection = LeagueConnection(lockfile, timeout=10)
>>> data = {'profileIconId': 1}
>>> res = connection.put('/lol-summoner/v1/current-summoner/icon', json=data)
>>> res.status_code
201
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for league_connection-0.0.2-py3.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1edf34969aa0914ef3652b5999a07aaf2ec109608edd3e3cfdebf2c7e53386ed |
|
MD5 | a5f81f75eeabccb29f8e1a9d69f2d193 |
|
BLAKE2b-256 | 7670eec2e0494cec2b8cf694c8963580332479fdfaa32100b971a79789a56d6a |