No project description provided
Project description
League Client Live Data Api
An async api wrapper for the game client api from league of legends. For every endpoint there is a pydantic BaseModel that represents the data from the response of the request.
Setup
Installation
git clone https://github.com/Plutokekz/LeagueClientLiveDataApi.git
poetry install
Usage
Get the events from your current game
from pathlib import Path
from live_client_data import LeagueClientLiveDataApi
if __name__ == "__main__":
config_file = Path("config.yaml")
api = LeagueClientLiveDataApi()
async def main():
while True:
data = await api.event_data()
print(data)
api.loop.run_until_complete(main())
Config
the config file contains currently 2 entries on for the api endpoint and one for the ssl certificate of riot games. You can download the file from here.
cert_file: "riotgames.pem"
url: "https://127.0.0.1:2999/liveclientdata"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
leagueclientlivedata-0.1.0.tar.gz
(17.9 kB
view hashes)
Built Distribution
Close
Hashes for leagueclientlivedata-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93c15d0092d9058f9517cee26e586945e6a8bd0714e27a92f2c4e3a79d416838 |
|
MD5 | 622b839a90929638d8e2edfd9b269c9b |
|
BLAKE2b-256 | d6567c994733f4def145e08099dbfeda10c10f489b4d23dcc22dc89df01c7933 |
Close
Hashes for leagueclientlivedata-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 966b9acd5ca565552f4f4f1669d2b1a4206b962df41f1f7e5ecff52b07a6a3e0 |
|
MD5 | 726c4d0a05c93964d184305d708f6268 |
|
BLAKE2b-256 | 776747ec9020aa539c9e72d837429053151910970478f589bb413fb8bc721106 |