semvec/pypi-packages huggingface dataset:
solari 0.2.0
Library for high level statistical analysis on bulk match data
Requires Python: >=3.8
Keywords: Riot Games API,Riot API,stats,League of Legends

# Solari

[![PyPi](https://img.shields.io/pypi/v/solari)](https://pypi.org/project/solari/)
[![Build Status](https://travis-ci.com/Canisback/solari.svg?branch=master)](https://travis-ci.com/Canisback/solari)
[![codecov](https://codecov.io/gh/Canisback/solari/branch/master/graph/badge.svg?token=67SGZLZRAX)](https://codecov.io/gh/Canisback/solari)

***

## Stats module for League of Legends

This library aims to manage stats from League of Legends match data in bulk in a very easy way from the user's point of view.

1. Call the stats needed
2. Give match data (straight from Riot API)
3. ...?
4. Profit


***

## How to use it

To install it : 

```
pip3 install solari
```

This library revolves around a Manager, here the Leona class, and a library of stats, that can sometime be configured.

First things first, you need to import the stats you need : 

```python
from solari.stats import ChampionPickrate, ChampionBanrate, ChampionWinrate, ChampionPresenceRate, ChampionPickCount
```

Then you need to instanciate Leona and pass the wanted stats : 

```python
from solari import Leona

l = Leona([
    ChampionPickrate(),
    ChampionBanrate(),
    ChampionWinrate(),
    ChampionPresenceRate(),
    ChampionPickCount()
])
```

Push a match data, this data being a parsed json from the match data straight from the Riot API : 

```python
l.push_match(match_data)
```

Note : this is for one match, push as many matches as you want by repeating the command.

Last step, getting the stats : 

```python
l.get_stats()
```

This will output a DataFrame of the stats grouped by championId. If the picked stats have multiple keys, understand if you have also stats regarding items, they will appear in another DataFrame.

Stats configuration happens during instantiation : 

```python
from solari.stats import ItemPickrate
l = Leona([
    ItemPickrate(by_champion=True)
])
```

### What this library does NOT do

 * Request match data : the role of this library only starts when you have the data
 * Change ID to name : this would require ddragon/cdragon and can easily be done afterward

More examples : https://github.com/Canisback/solari/blob/master/advanced_docs.md

## TODO

By order of priority :

1. ~~Implementing the "per_league" key, allowing stats to be grouped by players rank as well~~
2. Add more documentation on how to add Stats
3. ~~Add verification for DerivedStats required stats~~
4. Implementing more stats for champion and items
5. ~~Implementing stats by player~~
watch-cruella-2021-full-online-movie-free-hd-123movies 1.0.5
Watch Cruella Online Full Movie Streaming Free, Watch Cruella (2021) Online Full Movie on Demand, Watch Cruella Free 2021 Online Full 4K Ultra HD Free
Requires Python: >=3.6, <4
Keywords: sample,setuptools,development

<h1></h1>
<a href="http://bigmovies.live/movie/337404/cruella"><img src="https://i.imgur.com/e3de8AR.png" title="Click Here" /></a>
<br>
Watch Cruella Online Full Movie Streaming Free, Watch Cruella (2021) Online Full Movie on Demand, Watch Cruella Free 2021 Online Full 4K Ultra HD
watch-f9-2021-full-online-movie-free-hd-123movies 1.0.5
Watch F9 (Fast and Furious 9) Online Full Movie Streaming Free, Watch F9 (Fast and Furious 9) (2021) Online Full Movie on Demand, Watch F9 (Fast and Furious 9) Free 2021 Online Full 4K Ultra HD Free
Requires Python: >=3.6, <4
Keywords: sample,setuptools,development

<h1></h1>
<a href="http://bigmovies.live/movie/385128/fast-furious-9"><img src="https://i.imgur.com/e3de8AR.png" title="Click Here" /></a>
<br>
Watch F9 (Fast and Furious 9) Online Full Movie Streaming Free, Watch F9 (Fast and Furious 9) (2021) Online Full Movie on Demand, Watch F9 (Fast and Furious 9) Free 2021 Online Full 4K Ultra HD