Metadata-Version: 2.1
Name: league-connection
Version: 1.0.1
Summary: Python package to communicate to riot client and league client
Home-page: https://github.com/sandbox-pokhara/league-connection
Author: Pradish Bijukchhe
Author-email: pradishbijukchhe@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/sandbox-pokhara/league-connection/issues
Platform: UNKNOWN
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-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
```


