Skip to main content

Python package to communicate to riot client and league client

Project description

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

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-connection-1.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

league_connection-1.0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file league-connection-1.0.1.tar.gz.

File metadata

  • Download URL: league-connection-1.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.9

File hashes

Hashes for league-connection-1.0.1.tar.gz
Algorithm Hash digest
SHA256 eee8edd679ab7cbe69b5f7b43399030e45584ce1c9c8fc49b96b644eabeefeab
MD5 b15246c7408da63976296c3a5bf3a248
BLAKE2b-256 5688a92d0e98b76773bcb62a61ad711aa7ecae47e59d978cad1529667b32c73b

See more details on using hashes here.

File details

Details for the file league_connection-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: league_connection-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.9

File hashes

Hashes for league_connection-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e21f5e60f4a534efaf564d984b16ad63c745b85731c31cc66204a166790dddd
MD5 32ef6f325195ccad5c52fe0aed44c4d8
BLAKE2b-256 a2d33ca1f588252f96926f15b564248387a258a32bede93712007dfaf63f09b2

See more details on using hashes here.

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