mrtolkien / riot_transmute

A simple wrapper to cast Riot API acquired data to the community-defined LoL DTO format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Riot Transmute

Code style: black pre-commit enabled codecov Python Tests

A simple wrapper to cast Riot API data to the community-defined LoL DTO format.

I recommend using riotwatcher or pantheon to acquire objects from the Riot API.

Installation

pip install riot_transmute

Usage

import riot_transmute

game_from_match = riot_transmute.match_to_game(match_dto)
game_from_timeline = riot_transmute.match_timeline_to_game(match_timeline_dto, game_id, platform_id)

Adding names to objects

Install lol_dto extras

pip install riot_transmute lol_dto[names]

Names usage

game_with_names = riot_transmute.match_to_game(match)

About

A simple wrapper to cast Riot API acquired data to the community-defined LoL DTO format.

License:MIT License


Languages

Language:Python 100.0%