Python package to communicate with riot client and league client
Project description
league-client
league-client is a python package to communicate with riot client and league client.
Installation
pip install league-client
Examples
Logging in (Riot Client)
from league_connection import LeagueConnection
from league_client.login import login
from league_process.process import open_league_client
from league_process.process import open_riot_client
DEFAULT_RIOT_EXE = 'C:\\Riot Games\\Riot Client\\RiotClientServices.exe'
DEFAULT_RIOT_LOCKFILE = 'C:\\Users\\sandbox\\AppData\\Local\\Riot Games\\Riot Client\\Config\\lockfile'
DEFAULT_LEAGUE_EXE = 'C:\\Riot Games\\League of Legends\\LeagueClient.exe'
DEFAULT_LEAGUE_LOCKFILE = 'C:\\Riot Games\\League of Legends\\lockfile'
def main():
'''Main function'''
open_riot_client(DEFAULT_RIOT_EXE)
riot_connection = LeagueConnection(DEFAULT_RIOT_LOCKFILE)
res = login(riot_connection, 'your_username', 'your_password')
if not res['ok']:
print(res)
return
open_league_client(DEFAULT_LEAGUE_EXE)
if __name__ == '__main__':
main()
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
league-client-1.0.0.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for league_client-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f579ce5b82ecaa4005ba32689dd5b1f1473ad03e079bff004ac7f94b288e1bd |
|
MD5 | e94f191d83bcfc6c1952a41fe49aa414 |
|
BLAKE2b-256 | 7d77e66860fbcabc1ae33068a8ca3b2d4b7a4864e39773d2eaf724a5c40fe858 |