Metadata-Version: 2.1
Name: league-client
Version: 1.0.10
Summary: Python package to communicate with riot client and league client
Home-page: https://github.com/sandbox-pokhara/league-client
Author: Pradish Bijukchhe
Author-email: pradishbijukchhe@gmail.com
Project-URL: Bug Tracker, https://github.com/sandbox-pokhara/league-client/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# league-client

league-client is a python package to communicate with riot client and league client.

## Installation

```
pip install league-client
```

## 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}
```
