Skip to main content

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


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.2.tar.gz (17.9 kB view hashes)

Uploaded Source

Built Distribution

leagueclientlivedata-0.1.2-py3-none-any.whl (21.1 kB view hashes)

Uploaded Python 3

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