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
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
Close
Hashes for pokemon_showdown_replays-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac1e5147a2954f16809d67c60d0d49bc5902a6f32ac19c879314d58a754e53a7 |
|
MD5 | 6c71aa6711198c8feaa4ee05316025a5 |
|
BLAKE2b-256 | 932311f59e13350a19916be29da28c9e6fdee1b204ada17e519d782de3264330 |
Close
Hashes for pokemon_showdown_replays-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8dd648d82bed461e24a52ba0d473c284010d7913033c41cadc55e087289469b |
|
MD5 | d648184b4fb5791f20337284ad9e9a29 |
|
BLAKE2b-256 | 99697298c308821925f05729adc54629fcc7f671c4f9dca7290f789f1410a902 |