Skip to main content

A package for generating pokemon showdown replays from pokemon showdown logs

Project description

Pokémon Showdown! Replays

Usage

To create a replay you will need a log file produced by a Pokémon Showdown! server.

Installation

pip install pokemon_showdown_replays

Creating replay.pokemonshowdown.com replays

from pokemon_showdown_replays import Replay, Upload

replay_object = Replay.create_replay_object(log, show_full_damage = False)
html = Upload.create_replay(replay_object)

Creating play.pokemonshowdown.com download replays

from pokemon_showdown_replays import Replay, Download

replay_object = Replay.create_replay_object(log, show_full_damage = False)
html = Download.create_replay(replay_object)

The show_full_damage parameter is optional and defaults to False. When it is True and the log produced by the Pokémon Showdown! server has health shown in full (ie. 347/550 and not 64/100), the replay will show the exact damage dealt by a move and the exact percentage of health a pokemon has left. For example: 347 / 550 will be shown as 63.1% hp when it is enabled and 64% hp when it is disabled. It will also be 64/100 in the replay's log.

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

pokemon_showdown_replays-0.1.0.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

pokemon_showdown_replays-0.1.0-py3-none-any.whl (6.9 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