Skip to content

Script for rating League of Legends summoners

License

Notifications You must be signed in to change notification settings

jwtr/lol-summoner-rating

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LoL Summoner Rating

This script generates a rating for a LoL summoner based on recent solo queue performance.

All matches are scored based on individual and team data, focusing on key metrics.

Please note: Request failures due to rate limiting are not automatically retried.

Requirements

Python 3.9 or higher

Pipenv

Installation

git clone https://github.com/jwtr/lol-summoner-rating.git
cd lol-summoner-rating
pipenv install

Usage

First you need to add your Riot API key, a summoner name and region to the config, for example:

config = {
    "riot_api_key": "YOUR-API-KEY",
    "summoner_region": "euw1",
    "summoner_name": "Odoamne",
}

Then run:

python3 rate_summoner.py

Before running: A note on Pipenv

You can use the following to spawn a shell for the virtualenv:

pipenv shell

Or prefix all python3 commands with:

pipenv run

Example Output

Odoamne has a "Josh Rating" of 12921

Testing

The code can be tested by running the following:

python3 tests.py

Code Coverage

A code coverage report can be generated by running:

coverage report -m

Linting

Lint the code using Flake8:

flake8 rate_summoner.py

Use Black to autoformat the code:

black --line-length 79 rate_summoner.py

License

MIT

About

Script for rating League of Legends summoners

Topics

Resources

License

Stars

Watchers

Forks

Languages