Skip to main content

Transmute Riot API objects to the community-defined DTO format.

Project description

Code style: black

Riot transmute

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)
game_from_timeline = riot_transmute.match_timeline_to_game(match_timeline, game_id, platform_id)

Adding names to objects

Install extras

pip install riot_transmute[names]

Usage

game_witch_names = riot_transmute.match_to_game(match, add_names=True)

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

riot_transmute-0.1a6.tar.gz (7.0 kB view hashes)

Uploaded Source

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