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.
Installation
pip install league-connection
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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e21f5e60f4a534efaf564d984b16ad63c745b85731c31cc66204a166790dddd |
|
MD5 | 32ef6f325195ccad5c52fe0aed44c4d8 |
|
BLAKE2b-256 | a2d33ca1f588252f96926f15b564248387a258a32bede93712007dfaf63f09b2 |