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
Built Distribution
File details
Details for the file leagueclientlivedata-0.1.2.tar.gz
.
File metadata
- Download URL: leagueclientlivedata-0.1.2.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.11.3 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a164c1ff9caa48769ba220cffab8f08384a14859bb5274bad9dbe5e0abb7a31 |
|
MD5 | 4c56ede97946c104f84dbbf9ae61a9bc |
|
BLAKE2b-256 | ec66401424fda5abc6ba2e4ac64f876ed0c115317bb9b7dfa648359e42ab99c7 |
File details
Details for the file leagueclientlivedata-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: leagueclientlivedata-0.1.2-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.11.3 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 510a8302cead7736bed166e2471891e5e72d1da816bced092313c79b915d774b |
|
MD5 | d7224e77288310a690300e84fe56925c |
|
BLAKE2b-256 | f4620208fdc822cdd1ebbd900361ade840e730907ad0399d67ed2e9640fbf3af |