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 Distribution
Built Distribution
Close
Hashes for league_connection-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6da5dd07057e83ee7449450e290ed633b8fb654f07b90dfbcf32680210b37e84 |
|
MD5 | 174f6edf651ef9d02abdc0b91a947c6c |
|
BLAKE2b-256 | af4cbc0d48fb6b59c2e8ee8665b46d4dc139425bb41470494eb92933a7db8939 |