Skip to main content

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,
...     )
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}

Project details


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.35.tar.gz (23.9 kB view hashes)

Uploaded Source

Built Distribution

league_client-1.0.35-py3-none-any.whl (34.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page