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
Known Limitations
- RSO does not work in python3.6
Example
Define paths
>>> riot_exe = 'C:\\Riot Games\\Riot Client\\RiotClientServices.exe'
>>> riot_lockfile = 'C:\\Users\\sandbox\\AppData\\Local\\Riot Games\\Riot Client\\Config\\lockfile'
>>> league_lockfile = 'C:\\Riot Games\\League of Legends\\lockfile'
Log in
>>> from league_client.shortcuts import login
>>> login(
... 'username',
... 'password',
... riot_exe,
... riot_lockfile,
... league_lockfile,
... captcha_service,
... captcha_api_key,
... )
05/10/2022 12:18:09 PM - INFO - Logging in...
05/10/2022 12:18:18 PM - INFO - Waiting for session...
05/10/2022 12:18:22 PM - INFO - Session state: IN_PROGRESS
05/10/2022 12:18:28 PM - INFO - Session state: SUCCEEDED
05/10/2022 12:18:28 PM - INFO - Checking username...
{'ok': True}
Change Log
- Add option to pass custom user agent and cookies.
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.64.tar.gz
(26.2 kB
view hashes)
Built Distribution
Close
Hashes for league_client-1.0.64-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2484b913e2a69147d3478eab391821cafb25642195088164d4f6d87bcee4c15c |
|
MD5 | d487a7491dafde34ed965ccf01dcaee8 |
|
BLAKE2b-256 | 4ee59cefa1b0969685810e30b09c6e8d5ea8307805690d31e64c578fb61c4f9a |